From 372008f78e3ea94a322e29cbdfe2b9c72b2433ae Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 16 May 2007 16:26:31 +0000 Subject: New object EmpathyIdle to manage autoaway and extended autoaway states. 2006-05-16 Xavier Claessens * 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 --- libempathy-gtk/empathy-status-icon.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libempathy-gtk/empathy-status-icon.c') 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 -#include #include #include @@ -33,6 +32,7 @@ #include #include #include +#include #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 * -- cgit v1.2.3