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

Re: Quick question re: gtkbutton and deactivating





button_w = gtk_button_new( );

gtk_widget_set_sensitive( button_w, FALSE );


FALSE greys out the button, TRUE enables it again.

This works with all kinds of widgets. If you do this on a top-level window,
for example, it greys out everything in the window. (Great for modal
dialogs!)


Happy hacking,


--Straker



On Sun, 31 Oct 1999, Jamie wrote:

> Hi,
> 
> a simple question I am sure. How do I disable a button so that it looks
> greyed out?
> 
> Thanks
> -- 
> 
> Jamie Love
>   jlove@clear.net.nz
>   jdl28@student.canterbury.ac.nz
> 
> 
> -- 
>          To unsubscribe: mail gtk-app-devel-list-request@redhat.com with 
>                        "unsubscribe" as the Subject.
> 
> 	Mailing list concerns should be mailed to <listmaster@redhat.com>
> 
> 

                       //,,    //,,
//=================// //////  ////// //==================================\\
 Straker Skunk     / //////  ////// /      Skunks are such wonderful
 <skunk@mit.edu>  / //////  ////// /     creatures... soft, and cuddly,
 -- -- -- -- -- --\ \\\\\\  \\\\\\ \      and if you annoy them they
 Daniel Richard G. \ \\\\\\  \\\\\\ \      make you stink like hell
 ========--====--==-\ \\\\\\  \\\\\\ \---------------=--==--====--========
 //mit.edu/straker  / //////  ////// / Furry|Course VI-3|MIT Class of 2001
 //skunk.mit.edu   / //////  ////// / 80% Beaver 90% Penguin 100% SKUNK!!!
\\===============// //////  ////// //====================================//
                     ''//    ''//



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