Re: Radio Buttons w/ Labels and RC STYLE



That did the trick :) I knew the GTK_LABEL was causing the warning just
didn't open my brain far enough. If I could just cut down all these
trees maybe I could see the forest you all are talking about.

Thanks,

Steve


Havoc Pennington wrote:

Steve & Patti Getzinger <steveandpatti wubs org> writes:

gtk_widget_modify_style(GTK_WIDGET(GTK_LABEL(radiobutton)->label), rc1_style);

...

Gtk-WARNING **: invalid cast from `GtkRadioButton' to `GtkLabel'


The cast GTK_LABEL(radiobutton) is a good guess at the problem ;-)

How about modify_style (GTK_BIN (radiobutton)->child, rc1_style)

Havoc

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

-- 
=========================================================
  WDI                          Steve & Patti Getzinger
  702 Lincolnway West          steveandpatti wubs org
  South Bend, IN  46616        http://www.wubs.org/
  219-287-4700 (Main Office)   317-535-0239 (Direct Line)
=========================================================




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