Hi,
I was looking through the wireshark code to find a
way to set the label in a GtkButton with Gtk1.x and I've found this (in
gtk\simple_dialog.c):
#if GTK_MAJOR_VERSION >= 2
/* XXX - find a way to set the GtkButton label in GTK 1.x */ gtk_button_set_label(GTK_BUTTON(ask_cb), text); #endif So, I'm using this:
#if GTK_MAJOR_VERSION >= 2
/* XXX - find a way to set the GtkButton label in GTK 1.x */ gtk_button_set_label(GTK_BUTTON(ask_cb), text); #else /* Set the GtkButton label in
GTK 1.x */
gtk_label_set_text(GTK_LABEL(GTK_BIN(ask_cb)->child), text);
#endif
I know it is not so 'clean', but I think that it is
probably the only way to do that and for all GtkButton I use it works... Am
I right?
Giorgio Tino
|
_______________________________________________ Wireshark-dev mailing list Wireshark-dev@wireshark.org http://www.wireshark.org/mailman/listinfo/wireshark-dev