[Glade-users] Disabling a context mkenu's menuitem!!



Hello,

We're making an application using gnome 2.0 that adds an icon on the
statusbar.We've added a context menu to display the menu when the icon
is clicked using the right mouse button.

Now we need to disable(i.e. gray the menuitem) a particular menu item
in this menu when a certain condition occurs.
We thought probably the following function wud be useful:

applet_widget_callback_set_sensitive defined in applet-widget.h but
this is for gnome 1.0
and when we include the .h in our application,a zillion errors are
generated!!!!!!!!

Then we tried applet_object_callback_set_sensitive which is defined for 2.0
But again we aren't able to compile it.Says the function used is
UNREFERENCED.Probably an extra header is required.


Could some1 pls help us with this ..........suggest how to remove the
eerror....orr disable the context menu's menuitem.

Any help would be appreciated.

Thanx..............

Richa




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]