[9950] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] gtk_widget_set_state bug

daemon@ATHENA.MIT.EDU (david)
Sat Nov 7 19:13:43 1998

Date: Sat, 07 Nov 1998 21:50:27 +0100
From: david <dramboz@imaginet.fr>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Hello,

I've noticed that if you call
gtk_widget_set_state( widget, GTK_STATE_INSENSITIVE)
and later
gtk_widget_set_state( widget, GTK_STATE_NORMAL)
than the widget is no made sensitive.

Here a patch that will probably fix this:

--- gtkwidget.c Wed Oct 28 02:59:03 1998
+++  gtkwidget.c    Sat Nov  7 21:41:01 1998
@@ -2490,6 +2490,8 @@

   if (state == GTK_STATE_INSENSITIVE)
     gtk_widget_set_sensitive (widget, FALSE);
+  else if ( !GTK_WIDGET_SENSITIVE(widget) )
+      gtk_widget_set_sensitive (widget, TRUE);
   else
     {
       GtkStateData data;

david

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post