diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-09-02 00:37:30 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-09-02 18:09:18 +0800 |
commit | 3172fd7585eef696197237c9e0d7dbd910a7af9f (patch) | |
tree | a97d42a2f962ab332ec04370f593c03353ae1556 /libempathy-gtk/empathy-individual-menu.h | |
parent | a92e47dd31f74bcbbf50d6c2285b7d82bf82c4be (diff) | |
download | gsoc2013-empathy-3172fd7585eef696197237c9e0d7dbd910a7af9f.tar gsoc2013-empathy-3172fd7585eef696197237c9e0d7dbd910a7af9f.tar.gz gsoc2013-empathy-3172fd7585eef696197237c9e0d7dbd910a7af9f.tar.bz2 gsoc2013-empathy-3172fd7585eef696197237c9e0d7dbd910a7af9f.tar.lz gsoc2013-empathy-3172fd7585eef696197237c9e0d7dbd910a7af9f.tar.xz gsoc2013-empathy-3172fd7585eef696197237c9e0d7dbd910a7af9f.tar.zst gsoc2013-empathy-3172fd7585eef696197237c9e0d7dbd910a7af9f.zip |
Make EmpathyIndividualMenu a proper GObject, derived from GtkMenu
Diffstat (limited to 'libempathy-gtk/empathy-individual-menu.h')
-rw-r--r-- | libempathy-gtk/empathy-individual-menu.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.h b/libempathy-gtk/empathy-individual-menu.h index a00de3dfb..41eac601b 100644 --- a/libempathy-gtk/empathy-individual-menu.h +++ b/libempathy-gtk/empathy-individual-menu.h @@ -39,6 +39,32 @@ typedef enum { EMPATHY_INDIVIDUAL_FEATURE_ALL = (1 << 7) - 1, } EmpathyIndividualFeatureFlags; +#define EMPATHY_TYPE_INDIVIDUAL_MENU (empathy_individual_menu_get_type ()) +#define EMPATHY_INDIVIDUAL_MENU(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \ + EMPATHY_TYPE_INDIVIDUAL_MENU, EmpathyIndividualMenu)) +#define EMPATHY_INDIVIDUAL_MENU_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), \ + EMPATHY_TYPE_INDIVIDUAL_MENU, EmpathyIndividualMenuClass)) +#define EMPATHY_IS_INDIVIDUAL_MENU(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), \ + EMPATHY_TYPE_INDIVIDUAL_MENU)) +#define EMPATHY_IS_INDIVIDUAL_MENU_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \ + EMPATHY_TYPE_INDIVIDUAL_MENU)) +#define EMPATHY_INDIVIDUAL_MENU_GET_CLASS(o) ( \ + G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_INDIVIDUAL_MENU, \ + EmpathyIndividualMenuClass)) + +typedef struct { + GtkMenu parent; + + /*<private>*/ + gpointer priv; +} EmpathyIndividualMenu; + +typedef struct { + GtkMenuClass parent_class; +} EmpathyIndividualMenuClass; + +GType empathy_individual_menu_get_type (void) G_GNUC_CONST; + GtkWidget * empathy_individual_menu_new (FolksIndividual *individual, EmpathyIndividualFeatureFlags features); GtkWidget * empathy_individual_add_menu_item_new (FolksIndividual *individual); |