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 

How to handle row sensitivity in GtkComboBox menus?

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
carlos
Familiar Face


Joined: 25 Mar 2008
Posts: 7

PostPosted: Mon Apr 28, 2008 9:56 pm    Post subject: How to handle row sensitivity in GtkComboBox menus? Reply with quote

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
state?

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!

Carlos
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