I have GTK2 2.2.4. I am compiling from anon cvs... [search_cb.c v1.51, line 296]
void on_combobox_search_changed(GtkWidget *unused_widget, gpointer unused_udata) { #if 0 GtkComboBox *combo; #else void *combo; #endif const gchar *text; (void) unused_widget; (void) unused_udata; combo = GTK_COMBO_BOX(lookup_widget(main_window, "comboboxentry_search")); text = gtk_entry_get_text(GTK_ENTRY(GTK_BIN(combo)->child)); gtk_widget_set_sensitive( lookup_widget(main_window, "button_search"), '\0' != text[0]); } [end] The type "GtkComboBox" is undefined when I try to compile. Also, I have a gtkcombo.h with GTK_COMBO(obj), but I can not find a GTK_COMBO_BOX() macro. If I modify the function as above, I have linker errors.... ui/gtk/libgtk-common.a(settings.o)(.text+0x56ab): In function `settings_gui_init': /home/bpringle/gtk-gnutella-current/src/ui/gtk/settings.c:2871: undefined reference to `GTK_IS_COMBO_BOX' ui/gtk/libgtkx.a(search.o)(.text+0x22c7): In function `gui_search_history_add': /home/bpringle/gtk-gnutella-current/src/ui/gtk/gtk2/search.c:1537: undefined reference to `GTK_COMBO_BOX' ui/gtk/libgtkx.a(search.o)(.text+0x22cf):/home/bpringle/gtk-gnutella-current/src/ui/gtk/gtk2/search.c:1537: undefined reference to `gtk_combo_box_append_text' ui/gtk/libgtkx.a(search_cb.o)(.text+0x695): In function `on_combobox_search_changed': /home/bpringle/gtk-gnutella-current/src/ui/gtk/gtk2/search_cb.c:309: undefined reference to `GTK_COMBO_BOX' ui/gtk/libgtkx.a(interface-glade.o)(.text+0xa089): In function `create_main_window': /home/bpringle/gtk-gnutella-current/src/ui/gtk/gtk2/interface-glade.c:2686: undefined reference to `gtk_combo_box_entry_new_text' collect2: ld returned 1 exit status make[2]: *** [gtk-gnutella] Error 1 There are also pointer converted to integer "warnings". I think this is because "GTK_COMBO_BOX()" is undefined and the 'gcc' is creating an implicit prototype. Is "ComboBox" different than "Combo", or where things just renamed in some GTK 2 version? tia, Bill. ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Gtk-gnutella-devel mailing list Gtk-gnutella-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel