gtk_combo_box_new_text() returns a GtkComboBox, and you connect a
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 24 Apr 2011 19:38:12 +0000 (19:38 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 24 Apr 2011 19:38:12 +0000 (19:38 +0000)
function directly to its "changed" signal; GtkComboBox is a subclass of
GtkBin, but you don't connect to its child.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36837 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/capture_dlg.c

index 9cc4ab70bb7ddd5f565a9286054e6b65368e41e0..131b8d409a7e94f08876f452c1732f5e0a763013 100644 (file)
@@ -1993,7 +1993,7 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_)
 #endif
   gtk_box_pack_start (GTK_BOX(linktype_hb), linktype_combo_box, FALSE, FALSE, 0);
   g_object_set_data(G_OBJECT(cap_open_w), E_CAP_LT_CBX_KEY, linktype_combo_box);
-  g_signal_connect(gtk_bin_get_child(GTK_BIN(if_cb)), "changed",
+  g_signal_connect(GTK_COMBO_BOX(if_cb), "changed",
                    G_CALLBACK(capture_prep_interface_changed_cb), NULL);
 
   /* Promiscuous mode row */