Menus

Name

Menus -- 

Synopsis



void        applet_widget_register_callback (AppletWidget *applet,
                                             const char *name,
                                             const char *menutext,
                                             AppletCallbackFunc func,
                                             gpointer data);
void        applet_widget_register_stock_callback
                                            (AppletWidget *applet,
                                             const char *name,
                                             const char *stock_type,
                                             const char *menutext,
                                             AppletCallbackFunc func,
                                             gpointer data);
void        applet_widget_unregister_callback
                                            (AppletWidget *applet,
                                             const char *name);
void        applet_widget_register_callback_dir
                                            (AppletWidget *applet,
                                             const char *name,
                                             const char *menutext);
void        applet_widget_register_stock_callback_dir
                                            (AppletWidget *applet,
                                             const char *name,
                                             const char *stock_type,
                                             const char *menutext);
void        applet_widget_unregister_callback_dir
                                            (AppletWidget *applet,
                                             const char *name);
void        applet_widget_callback_set_sensitive
                                            (AppletWidget *applet,
                                             const char *name,
                                             gboolean sensitive);

Description

Details

applet_widget_register_callback ()

void        applet_widget_register_callback (AppletWidget *applet,
                                             const char *name,
                                             const char *menutext,
                                             AppletCallbackFunc func,
                                             gpointer data);

Adds a menu item to the applet's context menu.

applet : AppletWidget to work on.
name : path to the menu item.
menutext : text for the menu item.
func : AppletCallbacFunc to call when the menu item is activated.
data : data passed to func.


applet_widget_register_stock_callback ()

void        applet_widget_register_stock_callback
                                            (AppletWidget *applet,
                                             const char *name,
                                             const char *stock_type,
                                             const char *menutext,
                                             AppletCallbackFunc func,
                                             gpointer data);

dds a menu item to the applet's context menu with a stock GNOME pixmap.

applet : AppletWidget to work on.
name : path to the menu item.
stock_type : GNOME_STOCK string to use for the pixmap
menutext : text for the menu item.
func : AppletCallbacFunc to call when the menu item is activated.
data : data passed to func.


applet_widget_unregister_callback ()

void        applet_widget_unregister_callback
                                            (AppletWidget *applet,
                                             const char *name);

Remove a menu item from the applet's context menu.

applet : AppletWidget to work on.
name : path to the menu item.


applet_widget_register_callback_dir ()

void        applet_widget_register_callback_dir
                                            (AppletWidget *applet,
                                             const char *name,
                                             const char *menutext);

Adds a submenu to the applet's context menu.

applet : AppletWidget to work on.
name : path to the menu item.
menutext : text for the menu item.


applet_widget_register_stock_callback_dir ()

void        applet_widget_register_stock_callback_dir
                                            (AppletWidget *applet,
                                             const char *name,
                                             const char *stock_type,
                                             const char *menutext);

Adds a submenu to the applet's context menu with a stock GNOME pixmap.

applet : AppletWidget to work on.
name : path to the menu item.
stock_type : GNOME_STOCK string to use for the pixmap
menutext : text for the menu item.


applet_widget_unregister_callback_dir ()

void        applet_widget_unregister_callback_dir
                                            (AppletWidget *applet,
                                             const char *name);

Removes a submenu from the applet's context menu.

applet : AppletWidget to work on.
name : path to the menu item.


applet_widget_callback_set_sensitive ()

void        applet_widget_callback_set_sensitive
                                            (AppletWidget *applet,
                                             const char *name,
                                             gboolean sensitive);

Sets the sensitivity of a menu item in the applet's context menu.

applet : AppletWidget to work on.
name : path to the menu item.
sensitive : whether menu item should be sensitive.