Re: radio button label







Dugas, Alan wrote:

It segfaulted when I tried that :-(  Does anyone know if that approach works
(i.e. successfully used it)?  It would help determine if it's my code or
not.  I do the following;

gchar **radio_button_label = (gchar **) NULL;
gtk_label_get(GTK_LABEL(label), radio_button_label);

^^^^^ This is the source of the seg fault.  Try this instead:

gchar *radio_button_label = NULL;
gtk_label_get(GTK_LABEL(label), &radio_button_label);



so I would expect GTK_LABEL() to produce an error if label were not pointing
to a gtklabel.  Does anyone know if GTK_LABEL() would execute before
gtk_label_get()?

GTK_LABEL() does execute first.



				-- Stupid Genius


----------
From: 	Jeff Shipman[SMTP:shippy cs nmt edu]
Sent: 	Thursday, October 19, 2000 5:12 PM
To: 	gtk-list gtk org
Subject: 	Re: radio button label

Well, GtkRadioButton is derived from GtkBin and I know you can
get the label widget from a button using GTK_BIN(button)->child,
so perhaps you could use the same method to grab the label from
a GtkRadioButton?

Dugas, Alan wrote:

 > How do you get a label from a gtkradiobutton?
 >
 >
 >
 > -- Stupid Genius
 >
 > _______________________________________________
 > gtk-list mailing list
 > gtk-list gnome org
 > http://mail.gnome.org/mailman/listinfo/gtk-list


--
Jeff "Shippy" Shipman     E-Mail: shippy cs nmt edu
CS Major / EE Minor       ICQ: 1786493
New Mexico Institute of Mining and Technology
Homepage: http://www.nmt.edu/~shippy


_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list



_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]