gtk+ r22307 - in trunk: . gtk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22307 - in trunk: . gtk
- Date: Wed, 11 Feb 2009 06:52:43 +0000 (UTC)
Author: matthiasc
Date: Wed Feb 11 06:52:43 2009
New Revision: 22307
URL: http://svn.gnome.org/viewvc/gtk+?rev=22307&view=rev
Log:
Fix emission of file-set signal
Modified:
trunk/ChangeLog
trunk/gtk/gtkfilechooserbutton.c
Modified: trunk/gtk/gtkfilechooserbutton.c
==============================================================================
--- trunk/gtk/gtkfilechooserbutton.c (original)
+++ trunk/gtk/gtkfilechooserbutton.c Wed Feb 11 06:52:43 2009
@@ -1011,6 +1011,8 @@
if (data->selected || data->uris[++data->i] == NULL)
{
+ g_signal_emit (data->button, file_chooser_button_signals[FILE_SET], 0);
+
g_object_unref (data->button);
g_object_unref (data->file);
g_strfreev (data->uris);
@@ -1096,6 +1098,7 @@
NULL);
g_object_unref (file);
g_free (text);
+ g_signal_emit (button, file_chooser_button_signals[FILE_SET], 0);
break;
default:
@@ -2694,7 +2697,9 @@
gtk_widget_set_sensitive (priv->combo_box, TRUE);
gtk_widget_hide (priv->dialog);
- g_signal_emit_by_name (user_data, "file-set");
+ if (response == GTK_RESPONSE_ACCEPT ||
+ response == GTK_RESPONSE_OK)
+ g_signal_emit (user_data, file_chooser_button_signals[FILE_SET], 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]