diff options
author | Robert Tari <robert@tari.in> | 2020-11-24 22:42:18 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2020-11-24 22:42:18 +0100 |
commit | 02f9598aadefffcd9e0370ecc2665d3f626e4afc (patch) | |
tree | afdc7f90793a57c53c3e9761656adf9b4e14af71 /src/idoremovablemenuitem.h | |
parent | d3bcb7d232dae74fbcf2506bdb4f1cd9edf62240 (diff) | |
download | ayatana-ido-02f9598aadefffcd9e0370ecc2665d3f626e4afc.tar.gz ayatana-ido-02f9598aadefffcd9e0370ecc2665d3f626e4afc.tar.bz2 ayatana-ido-02f9598aadefffcd9e0370ecc2665d3f626e4afc.zip |
Add a new menu item type: IDO Removable
Diffstat (limited to 'src/idoremovablemenuitem.h')
-rw-r--r-- | src/idoremovablemenuitem.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/idoremovablemenuitem.h b/src/idoremovablemenuitem.h new file mode 100644 index 0000000..045d579 --- /dev/null +++ b/src/idoremovablemenuitem.h @@ -0,0 +1,37 @@ +#ifndef __IDO_REMOVABLE_MENU_ITEM_H__ +#define __IDO_REMOVABLE_MENU_ITEM_H__ + +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +#define IDO_TYPE_REMOVABLE_MENU_ITEM (ido_removable_menu_item_get_type()) +#define IDO_REMOVABLE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), IDO_TYPE_REMOVABLE_MENU_ITEM, IdoRemovableMenuItem)) +#define IDO_IS_REMOVABLE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), IDO_TYPE_REMOVABLE_MENU_ITEM)) + +typedef struct _IdoRemovableMenuItem IdoRemovableMenuItem; +typedef struct _IdoRemovableMenuItemClass IdoRemovableMenuItemClass; + +struct _IdoRemovableMenuItemClass +{ + GtkMenuItemClass parent_class; +}; + + +struct _IdoRemovableMenuItem +{ + GtkMenuItem parent; +}; + + +GType ido_removable_menu_item_get_type()G_GNUC_CONST; +GtkWidget * ido_removable_menu_item_new(); +void idoRemovableMenuItemSetIcon(IdoRemovableMenuItem *self, GIcon *pIcon); +void idoRemovableMenuItemSetIconFromFile(IdoRemovableMenuItem *self, const char *sFilename); +void idoRemovableMenuItemSetText(IdoRemovableMenuItem *self, const char *sText); +void idoRemovableMenuItemUseMarkup(IdoRemovableMenuItem *self, gboolean bUse); +GtkMenuItem* ido_removable_menu_item_new_from_model(GMenuItem *pMenuItem, GActionGroup *pActionGroup); + +G_END_DECLS + +#endif |