After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 321542 - GtkComboBox doesn't emit "notify::active"
GtkComboBox doesn't emit "notify::active"
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
unspecified
Other FreeBSD
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-11-15 18:52 UTC by Benedikt Meurer
Modified: 2005-11-21 15:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Suggested fix (1.01 KB, patch)
2005-11-15 18:54 UTC, Benedikt Meurer
none Details | Review

Description Benedikt Meurer 2005-11-15 18:52:55 UTC
Create a simple GtkComboBox, connect to "notify::active" and change the selected
item. The handler won't be run.
Comment 1 Benedikt Meurer 2005-11-15 18:54:03 UTC
Created attachment 54791 [details] [review]
Suggested fix

This patch adds g_object_notify(combo_box,"active") to
gtk_combo_box_set_active_internal(), and also replaces g_signal_emit_by_name()
with g_signal_emit().
Comment 2 Matthias Clasen 2005-11-21 15:02:32 UTC
	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.