diff options
author | Andre Miranda <andreldm@xfce.org> | 2017-11-19 15:02:23 -0300 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2017-11-19 15:02:23 -0300 |
commit | fb32b8e48e49224ef94675c1a3b84c3d6f1c3cbe (patch) | |
tree | aeac87ed3777153f601620c1427bdf655f431ea9 /thunarx/thunarx-menu-item.h | |
parent | 0cb9fb73930ee91f75d9ba1d1b2ce8f915d7e496 (diff) | |
download | thunar-fb32b8e48e49224ef94675c1a3b84c3d6f1c3cbe.tar.gz |
Introduce ThunarxMenu
Also refactoring some menu related code into thunar-menu-util.c
Diffstat (limited to 'thunarx/thunarx-menu-item.h')
-rw-r--r-- | thunarx/thunarx-menu-item.h | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/thunarx/thunarx-menu-item.h b/thunarx/thunarx-menu-item.h index 3eaed6b4..00550906 100644 --- a/thunarx/thunarx-menu-item.h +++ b/thunarx/thunarx-menu-item.h @@ -23,46 +23,6 @@ #ifndef __THUNARX_MENU_ITEM_H__ #define __THUNARX_MENU_ITEM_H__ -#include <glib-object.h> - -G_BEGIN_DECLS; - -typedef struct _ThunarxMenuItemPrivate ThunarxMenuItemPrivate; -typedef struct _ThunarxMenuItemClass ThunarxMenuItemClass; -typedef struct _ThunarxMenuItem ThunarxMenuItem; - -#define THUNARX_TYPE_MENU_ITEM (thunarx_menu_item_get_type ()) -#define THUNARX_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUNARX_TYPE_MENU_ITEM, ThunarxMenuItem)) -#define THUNARX_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), THUNARX_TYPE_MENU_ITEM, ThunarxMenuItemClass)) -#define THUNARX_IS_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUNARX_TYPE_MENU_ITEM)) -#define THUNARX_IS_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), THUNARX_TYPE_MENU_ITEM)) -#define THUNARX_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), THUNARX_TYPE_MENU_ITEM)) - -struct _ThunarxMenuItemClass { - GObjectClass __parent__; - void (*activate) (ThunarxMenuItem *item); -}; - -struct _ThunarxMenuItem { - GObject __parent__; - - /*< private >*/ - ThunarxMenuItemPrivate *priv; -}; - -GType thunarx_menu_item_get_type (void) G_GNUC_CONST; - -ThunarxMenuItem *thunarx_menu_item_new (const gchar *name, - const gchar *label, - const gchar *tip, - const gchar *icon) G_GNUC_MALLOC; - -void thunarx_menu_item_activate (ThunarxMenuItem *item); - -gboolean thunarx_menu_item_get_sensitive (ThunarxMenuItem *item); -void thunarx_menu_item_set_sensitive (ThunarxMenuItem *item, - gboolean sensitive); - -G_END_DECLS; +#include "thunarx-menu.h" #endif /* !__THUNARX_MENU_ITEM_H__ */ |