Re: MenuItem activate signal

2009-02-06 Thread Carlos Pereira
I am fairly experienced with sensitive/insensitive states in Menuitems 
in old Option Menus and new Combo Boxes, but I am not sure in which 
context your Menuitem appears...


Could you explain what is the parent of your MenuItems? perhaps with a 
very small bit of code showing how they are created?


Regards,
Carlos

I have a callback that is called when a MenuItem is selected, but in the
callback the paramenter is which is suppose to be the MenuItem is NULL.
 The callback signature is void user_function (GtkMenuItem *menuitem,
gpointer user_data).

What I want to do is set menuitem to be insensitive when sellected and
then sensitive when the task it calls is done.

Any ideas?

Thanks,

Dave
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

  


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


MenuItem activate signal

2009-02-06 Thread dhk
I have a callback that is called when a MenuItem is selected, but in the
callback the paramenter is which is suppose to be the MenuItem is NULL.
 The callback signature is void user_function (GtkMenuItem *menuitem,
gpointer user_data).

What I want to do is set menuitem to be insensitive when sellected and
then sensitive when the task it calls is done.

Any ideas?

Thanks,

Dave
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: MenuItem activate signal

2009-02-06 Thread dhk
Carlos Pereira wrote:
 I am fairly experienced with sensitive/insensitive states in Menuitems
 in old Option Menus and new Combo Boxes, but I am not sure in which
 context your Menuitem appears...
 
 Could you explain what is the parent of your MenuItems? perhaps with a
 very small bit of code showing how they are created?
 
 Regards,
 Carlos
 I have a callback that is called when a MenuItem is selected, but in the
 callback the paramenter is which is suppose to be the MenuItem is NULL.
  The callback signature is void user_function (GtkMenuItem *menuitem,
 gpointer user_data).

 What I want to do is set menuitem to be insensitive when sellected and
 then sensitive when the task it calls is done.

 Any ideas?

 Thanks,

 Dave
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

   
 
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
 
The menu is built from a Glade interface.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list