diff options
author | Ted Gould <ted@canonical.com> | 2009-09-10 09:10:09 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-10 09:10:09 -0500 |
commit | ef890ecf3b942fa85a5630736c0e406c9120161b (patch) | |
tree | 123e600a3bb1d93d827bbd46cb2abf2c1590261e /src/im-menu-item.c | |
parent | 5439c24a959d39d9ab54e637d2db3bc3d1227d47 (diff) | |
parent | a30c0ed9436d96f59dab24c58e63a45a40e91628 (diff) | |
download | ayatana-indicator-messages-ef890ecf3b942fa85a5630736c0e406c9120161b.tar.gz ayatana-indicator-messages-ef890ecf3b942fa85a5630736c0e406c9120161b.tar.bz2 ayatana-indicator-messages-ef890ecf3b942fa85a5630736c0e406c9120161b.zip |
* Upstream 0.2.2 release
* Adds in separators between application groups
Diffstat (limited to 'src/im-menu-item.c')
-rw-r--r-- | src/im-menu-item.c | 9 |
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(¤t_time); + priv->seconds = current_time.tv_sec; + return; } |