diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-11-21 14:34:52 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-11-21 14:34:52 +0000 |
commit | 02663e7121482e1f1f1fc7b2a24c3a70d7c76b43 (patch) | |
tree | 7bb53a206bb97365b83b6c0e751d0a9c10ada274 /gtk/gtkcombobox.c | |
parent | aff2923ad53f0ce1955dd9540c816dfa9c83a4b2 (diff) | |
download | gtk+-02663e7121482e1f1f1fc7b2a24c3a70d7c76b43.tar.gz |
Fix for bug #321542, Benedikt Meurer:
2005-11-21 Matthias Clasen <mclasen@redhat.com>
Fix for bug #321542, Benedikt Meurer:
* gtk/gtkcombobox.c (gtk_combo_box_set_active_internal):
Emit notify::active.
(gtk_combo_box_child_show, gtk_combo_box_child_hide): Use
g_signal_emit, not g_signal_emit_by_name.
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r-- | gtk/gtkcombobox.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 4be906aadb..1a2aa834fb 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -2127,8 +2127,7 @@ gtk_combo_box_child_show (GtkWidget *widget, gpointer user_data) { GtkComboBox *combo_box = GTK_COMBO_BOX (user_data); - - g_signal_emit_by_name (combo_box, "popup-show", NULL, NULL); + g_signal_emit (combo_box, combo_box_signals[POPUP_SHOW], 0); } static void @@ -2136,8 +2135,7 @@ gtk_combo_box_child_hide (GtkWidget *widget, gpointer user_data) { GtkComboBox *combo_box = GTK_COMBO_BOX (user_data); - - g_signal_emit_by_name (combo_box, "popup-hide", NULL, NULL); + g_signal_emit (combo_box, combo_box_signals[POPUP_HIDE], 0); } static gboolean @@ -4526,7 +4524,8 @@ gtk_combo_box_set_active_internal (GtkComboBox *combo_box, path); } - g_signal_emit_by_name (combo_box, "changed", NULL, NULL); + g_signal_emit (combo_box, combo_box_signals[CHANGED], 0); + g_object_notify (G_OBJECT (combo_box), "active"); } |