aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-07-02 20:41:37 +0000
committerTarmac <Unknown>2013-07-02 20:41:37 +0000
commit03f03607c5d30eee372b68ccbc15d011744661eb (patch)
treee0dbf6e1c618d0a05a24d9fa693bdb2550b89ff3
parentc58fa92fbc37800d340d6eaacb13c4fd42df2857 (diff)
parent9df7720fabd9ee7cb98dfd7ea6736224daf26364 (diff)
downloadayatana-indicator-session-03f03607c5d30eee372b68ccbc15d011744661eb.tar.gz
ayatana-indicator-session-03f03607c5d30eee372b68ccbc15d011744661eb.tar.bz2
ayatana-indicator-session-03f03607c5d30eee372b68ccbc15d011744661eb.zip
I know the new session indicator is coming soon, but I think having this for the next week or so is worthwhile anyway. Not having the session indicator on the trailing edge of the panel is unnerving :).
Approved by PS Jenkins bot, Charles Kerr.
-rw-r--r--src/indicator-session.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 431292e..ada8c6e 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -93,8 +93,7 @@ static void indicator_session_init (IndicatorSession *self);
static void indicator_session_dispose (GObject *object);
static void indicator_session_finalize (GObject *object);
static GList* indicator_session_get_entries (IndicatorObject* obj);
-static guint indicator_session_get_location (IndicatorObject * io,
- IndicatorObjectEntry * entry);
+static gint indicator_session_get_position (IndicatorObject * io);
G_DEFINE_TYPE (IndicatorSession, indicator_session, INDICATOR_OBJECT_TYPE);
@@ -108,7 +107,7 @@ indicator_session_class_init (IndicatorSessionClass *klass)
IndicatorObjectClass * io_class = INDICATOR_OBJECT_CLASS(klass);
io_class->get_entries = indicator_session_get_entries;
- io_class->get_location = indicator_session_get_location;
+ io_class->get_position = indicator_session_get_position;
return;
}
@@ -201,11 +200,10 @@ indicator_session_get_entries (IndicatorObject* obj)
return g_list_append (NULL, &self->entry);
}
-static guint
-indicator_session_get_location (IndicatorObject * io,
- IndicatorObjectEntry * entry)
+static gint
+indicator_session_get_position (IndicatorObject * io)
{
- return 0;
+ return 10;
}
/* callback for the service manager state of being */