aboutsummaryrefslogtreecommitdiff
path: root/src/idoremovablemenuitem.h
blob: 045d579ed3725c94262f4cd142f718122c902af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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