hobbit_yurka (hobbit_yurka) wrote in gtk,
hobbit_yurka
hobbit_yurka
gtk

radio buttons ...

declaring radio buttons in the header file :
static GtkRadioButton *radio_temper [LAST_TEMP];

than allocating memory for them in the main function and place them in the vbox:
for(i=0x00;i<LAST_TEMP;i++){ radio_temper[i] = g_object_new(GTK_TYPE_RADIO_BUTTON,"use-underline",TRUE,NULL); gtk_box_pack_start_defaults(GTK_BOX(vbox[RADIO]),GTK_WIDGET(radio_temper[i])); } till now (before calling gtk_main() method) G_IS_OBJECT(radio_temper[i]) is TRUE ; but while getting radio button status from callback function i'm getting : 'G_IS_OBJECT (object)' failed any ideas ? suggestions ... ?
  • Post a new comment

    Error

    default userpic
  • 0 comments