diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2007-05-17 00:26:31 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-05-17 00:26:31 +0800 |
commit | 372008f78e3ea94a322e29cbdfe2b9c72b2433ae (patch) | |
tree | 9dc5cc42e6d3ce360ac7be635a7c3b0b59419d9e /libempathy-gtk/empathy-status-icon.c | |
parent | 979baa2249ea5918b1892b142fb5f5c4d8773bdc (diff) | |
download | gsoc2013-empathy-372008f78e3ea94a322e29cbdfe2b9c72b2433ae.tar gsoc2013-empathy-372008f78e3ea94a322e29cbdfe2b9c72b2433ae.tar.gz gsoc2013-empathy-372008f78e3ea94a322e29cbdfe2b9c72b2433ae.tar.bz2 gsoc2013-empathy-372008f78e3ea94a322e29cbdfe2b9c72b2433ae.tar.lz gsoc2013-empathy-372008f78e3ea94a322e29cbdfe2b9c72b2433ae.tar.xz gsoc2013-empathy-372008f78e3ea94a322e29cbdfe2b9c72b2433ae.tar.zst gsoc2013-empathy-372008f78e3ea94a322e29cbdfe2b9c72b2433ae.zip |
New object EmpathyIdle to manage autoaway and extended autoaway states.
2006-05-16 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/empathy-status-icon.c:
* libempathy/empathy-idle.c:
* libempathy/empathy-idle.h:
* libempathy/Makefile.am:
* po/POTFILES.in: New object EmpathyIdle to manage autoaway and
extended autoaway states.
svn path=/trunk/; revision=70
Diffstat (limited to 'libempathy-gtk/empathy-status-icon.c')
-rw-r--r-- | libempathy-gtk/empathy-status-icon.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-status-icon.c b/libempathy-gtk/empathy-status-icon.c index 5b764c6cf..21082276a 100644 --- a/libempathy-gtk/empathy-status-icon.c +++ b/libempathy-gtk/empathy-status-icon.c @@ -24,7 +24,6 @@ #include <string.h> -#include <glib/gi18n.h> #include <gtk/gtk.h> #include <glade/glade.h> @@ -33,6 +32,7 @@ #include <libempathy/gossip-debug.h> #include <libempathy/gossip-utils.h> #include <libempathy/gossip-conf.h> +#include <libempathy/empathy-idle.h> #include "empathy-status-icon.h" #include "gossip-presence-chooser.h" @@ -40,6 +40,7 @@ #include "gossip-ui-utils.h" #include "gossip-accounts-dialog.h" + #define GET_PRIV(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), \ EMPATHY_TYPE_STATUS_ICON, EmpathyStatusIconPriv)) @@ -48,6 +49,8 @@ struct _EmpathyStatusIconPriv { MissionControl *mc; GtkStatusIcon *icon; + EmpathyIdle *idle; + GtkWindow *window; GtkWidget *popup_menu; @@ -102,6 +105,7 @@ empathy_status_icon_init (EmpathyStatusIcon *icon) priv->icon = gtk_status_icon_new (); priv->mc = gossip_mission_control_new (); + priv->idle = empathy_idle_new (); status_icon_create_menu (icon); @@ -135,6 +139,7 @@ status_icon_finalize (GObject *object) g_object_unref (priv->mc); g_object_unref (priv->icon); g_object_unref (priv->window); + g_object_unref (priv->idle); } EmpathyStatusIcon * |