Re: How do I `grey out' complex buttons?



learfox furry ao net writes:

If you set a container insensitive all its children will also appear
insensitive.

I tried settiog the following:


      GtkWidget *button = (GtkWidget *)data;
      if(button == NULL)
          return;

      GTK_WIDGET_UNSET_FLAGS(button, GTK_SENSITIVE);

The button is a return from gtk_button_new(), however the
label which is parented to an hbox which is parented to the button does
not get grey'ed out..


Try gtk_widget_set_sensitive().
                                        Owen




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