aboutsummaryrefslogtreecommitdiff
path: root/src/im-menu-item.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2009-09-10 10:39:01 -0400
committerKen VanDine <ken.vandine@canonical.com>2009-09-10 10:39:01 -0400
commit65744dcc0eb90957ecf3b9232041952ce3252b2c (patch)
treea5957eb5850fdbb2d8f6c024d50aae55d72ce0de /src/im-menu-item.c
parent452c5dd249ad4ef5d06f5bf343501ca4fb198a93 (diff)
parent87a4cbf74f50fe3b0093fe230d68eb4646d75e37 (diff)
downloadayatana-indicator-messages-65744dcc0eb90957ecf3b9232041952ce3252b2c.tar.gz
ayatana-indicator-messages-65744dcc0eb90957ecf3b9232041952ce3252b2c.tar.bz2
ayatana-indicator-messages-65744dcc0eb90957ecf3b9232041952ce3252b2c.zip
Adds in separators between application groups
Diffstat (limited to 'src/im-menu-item.c')
-rw-r--r--src/im-menu-item.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/im-menu-item.c b/src/im-menu-item.c
index f97436e..c2b3d12 100644
--- a/src/im-menu-item.c
+++ b/src/im-menu-item.c
@@ -125,12 +125,21 @@ im_menu_item_init (ImMenuItem *self)
g_debug("Building new IM Menu Item");
ImMenuItemPrivate * priv = IM_MENU_ITEM_GET_PRIVATE(self);
+ /* Set the variables to NULL, but they should be
+ configured further down the line. */
priv->listener = NULL;
priv->server = NULL;
priv->indicator = NULL;
+ /* A sane default, but look below */
priv->seconds = 0;
+ /* Set the seconds to be the time when the item was
+ created incase we're not given a better time. */
+ GTimeVal current_time;
+ g_get_current_time(&current_time);
+ priv->seconds = current_time.tv_sec;
+
return;
}