GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GtkCheckButton

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
bash88



Joined: 27 Aug 2007
Posts: 1

PostPosted: Mon Aug 27, 2007 10:11 pm    Post subject: GtkCheckButton Reply with quote

Hi,

I'm trying to create a GtkCheckButton ( gtk_check_button_new() ) but I don't want the users to check/uncheck it on the graphical interface. JI just want to be able to check/uncheck it via gtk_toggle_button_set_active(...). How can I do that?
Back to top
deusvede
Familiar Face


Joined: 13 Feb 2007
Posts: 29
Location: Madrid, Spain

PostPosted: Tue Aug 28, 2007 6:01 am    Post subject: Reply with quote

You have to set the 'sensitive' property of the GtkCheckButton to FALSE, so any clicking would be ignored. Since there are many ways to do this, you can use:
Code: (Plaintext)
1
void gtk_widget_set_sensitive (GtkWidget *widget, gboolean sensitive);

for example.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP