GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Nov 28, 2015 4:39 pm

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to handle row sensitivity in GtkComboBox menus?
PostPosted: Mon Apr 28, 2008 9:56 pm 
Familiar Face

Joined: Tue Mar 25, 2008 9:41 pm
Posts: 7
Hi all,

Two questions regarding sensitivity in combobox menus:

1) How can I dinamically set a row in a GtkComboBox menu as sentitive/insensitive and know what is the current sensitive

Let's say user clicked on a button, as a result, row 0 should become insensitive and row 1 should become sensitive. How can I do this?

With widgets I would use:

gtk_widget_set_sensitive (menu_item, TRUE);

if (GTK_WIDGET_SENSITIVE (menu_item) == TRUE)

but store rows are not widgets... so this takes me to the second question:

2) is it possible to handle rows in combobox menus as widgets, so they work as menuitems in option menus?
I suppose this is not possible, but I would like to confirm...

I really need this to convert my option menus to combox menus... many, many, thanks for your help!


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: Yahoo [Bot] 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