aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-session.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-11 13:18:17 -0600
committerTed Gould <ted@gould.cx>2010-02-11 13:18:17 -0600
commit70d29699c60a2507e457357a72eb484644f67dfd (patch)
tree718309fc76175d1df2587b1647cc169bce37ce3a /src/indicator-session.c
parentb1d66f9d77fa960d7e59353e1e33250060493ec6 (diff)
downloadayatana-indicator-session-70d29699c60a2507e457357a72eb484644f67dfd.tar.gz
ayatana-indicator-session-70d29699c60a2507e457357a72eb484644f67dfd.tar.bz2
ayatana-indicator-session-70d29699c60a2507e457357a72eb484644f67dfd.zip
Woot, a dbusmenu, much better.
Diffstat (limited to 'src/indicator-session.c')
-rw-r--r--src/indicator-session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 2017fff..840965e 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -52,7 +52,7 @@ struct _IndicatorSession {
IndicatorObject parent;
IndicatorServiceManager * service;
GtkImage * status_image;
- GtkMenu * menu;
+ DbusmenuGtkMenu * menu;
};
GType indicator_session_get_type (void);
@@ -99,7 +99,7 @@ indicator_session_init (IndicatorSession *self)
self->service = indicator_service_manager_new_version(INDICATOR_SESSION_DBUS_NAME, INDICATOR_SESSION_DBUS_VERSION);
self->status_image = GTK_IMAGE(gtk_image_new_from_icon_name("system-shutdown-panel", GTK_ICON_SIZE_MENU));
- self->menu = GTK_MENU(dbusmenu_gtkmenu_new(INDICATOR_SESSION_DBUS_NAME, INDICATOR_SESSION_DBUS_OBJECT));
+ self->menu = dbusmenu_gtkmenu_new(INDICATOR_SESSION_DBUS_NAME, INDICATOR_SESSION_DBUS_OBJECT);
return;
}
@@ -145,7 +145,7 @@ get_icon (IndicatorObject * io)
static GtkMenu *
get_menu (IndicatorObject * io)
{
- return INDICATOR_SESSION(io)->menu;
+ return GTK_MENU(INDICATOR_SESSION(io)->menu);
}