GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Jul 30, 2014 7:04 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: disableing menubar and toolbar items
PostPosted: Mon Mar 17, 2008 6:19 pm 
Offline
Familiar Face

Joined: Mon Feb 11, 2008 12:28 pm
Posts: 15
Hey,

Does anybody know how to disable menu / toolbar items?

For example, if there is no text within a textview, how do you disable "Select All" or "Cut".

Thanks a million :)

Happy st patricks day!!!!!
woohooo kiss me im irish!!!! :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 17, 2008 7:15 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
It's somewhat tedious to learn at first, but look into the GtkActionGroup http://library.gnome.org/devel/gtk/stable/GtkActionGroup.html object.

Also, you can use gtk_widget_set_sensitive () on individual widgets.

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 18, 2008 12:19 am 
Offline
Familiar Face

Joined: Mon Feb 11, 2008 12:28 pm
Posts: 15
okay awesome. thanks ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group