aboutsummaryrefslogtreecommitdiff
path: root/src/idousermenuitem.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-03-26 16:24:47 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-03-26 16:24:47 -0500
commit259c7ad0334a5c04873e4b62eb04890c76813fd0 (patch)
treec16ae7b3b05fd9cdf433c5166c5b2ebb658148ed /src/idousermenuitem.h
parent2d8eac6ae37a5615c846953410e1576faf5bc677 (diff)
downloadayatana-ido-259c7ad0334a5c04873e4b62eb04890c76813fd0.tar.gz
ayatana-ido-259c7ad0334a5c04873e4b62eb04890c76813fd0.tar.bz2
ayatana-ido-259c7ad0334a5c04873e4b62eb04890c76813fd0.zip
add properties to IdoUserMenuItem and remove its dependencies on DbusmenuMenuitem
Diffstat (limited to 'src/idousermenuitem.h')
-rw-r--r--src/idousermenuitem.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/idousermenuitem.h b/src/idousermenuitem.h
index ac115a8..7826718 100644
--- a/src/idousermenuitem.h
+++ b/src/idousermenuitem.h
@@ -20,7 +20,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#define __IDO_USER_MENU_ITEM_H__
#include <gtk/gtk.h>
-#include <libdbusmenu-gtk/menuitem.h>
G_BEGIN_DECLS
@@ -35,6 +34,12 @@ typedef struct _IdoUserMenuItem IdoUserMenuItem;
typedef struct _IdoUserMenuItemClass IdoUserMenuItemClass;
typedef struct _IdoUserMenuItemPrivate IdoUserMenuItemPrivate;
+/* property keys */
+#define IDO_USER_MENU_ITEM_PROP_LABEL "label"
+#define IDO_USER_MENU_ITEM_PROP_ICON "icon"
+#define IDO_USER_MENU_ITEM_PROP_IS_LOGGED_IN "is-logged-in"
+#define IDO_USER_MENU_ITEM_PROP_IS_CURRENT_USER "is-current-user"
+
struct _IdoUserMenuItemClass
{
GtkMenuItemClass parent_class;
@@ -48,7 +53,13 @@ struct _IdoUserMenuItem
};
GType ido_user_menu_item_get_type (void) G_GNUC_CONST;
-GtkWidget* ido_user_menu_item_new(DbusmenuMenuitem *twin_item);
+
+GtkWidget* ido_user_menu_item_new(void);
+
+void ido_user_menu_item_set_icon (IdoUserMenuItem * self, const char * icon_name);
+void ido_user_menu_item_set_logged_in (IdoUserMenuItem * self, gboolean is_logged_in);
+void ido_user_menu_item_set_current_user (IdoUserMenuItem * self, gboolean is_current_user);
+void ido_user_menu_item_set_label (IdoUserMenuItem * self, const char * label);
G_END_DECLS