diff options
author | Ted Gould <ted@canonical.com> | 2009-08-26 10:33:04 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-26 10:33:04 -0500 |
commit | bfc3017b153193b71128a5e1b34d90991d3a8fc6 (patch) | |
tree | 336b15c125630eaad18ec64993c542c25a776b3c /src/messages-service.c | |
parent | c4a054f93a9fe1ac1330c891ecbc58a634b78c22 (diff) | |
parent | bd24e02220d5158b1b502771bbba3012848fcef5 (diff) | |
download | ayatana-indicator-messages-bfc3017b153193b71128a5e1b34d90991d3a8fc6.tar.gz ayatana-indicator-messages-bfc3017b153193b71128a5e1b34d90991d3a8fc6.tar.bz2 ayatana-indicator-messages-bfc3017b153193b71128a5e1b34d90991d3a8fc6.zip |
Merge from dot-and-hide branch
Diffstat (limited to 'src/messages-service.c')
-rw-r--r-- | src/messages-service.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/messages-service.c b/src/messages-service.c index e4982a2..6b11e8c 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -33,6 +33,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include "launcher-menu-item.h" #include "dbus-data.h" #include "dirs.h" +#include "messages-service-dbus.h" static IndicateListener * listener; static GList * serverList = NULL; @@ -41,6 +42,8 @@ static GList * launcherList = NULL; static DbusmenuMenuitem * root_menuitem = NULL; static GMainLoop * mainloop = NULL; +static MessageServiceDbus * dbus_interface = NULL; + static void server_count_changed (AppMenuItem * appitem, guint count, gpointer data); static void server_name_changed (AppMenuItem * appitem, gchar * name, gpointer data); @@ -438,7 +441,7 @@ server_count_changed (AppMenuItem * appitem, guint count, gpointer data) if (count != 0) { g_debug("Setting image to 'new'"); showing_new_icon = TRUE; - /* gtk_image_set_from_icon_name(GTK_IMAGE(main_image), "indicator-messages-new", DESIGN_TEAM_SIZE); */ + message_service_dbus_set_attention(dbus_interface, TRUE); return; } @@ -459,7 +462,7 @@ server_count_changed (AppMenuItem * appitem, guint count, gpointer data) if (!we_have_indicators) { g_debug("Setting image to boring"); showing_new_icon = FALSE; - /* gtk_image_set_from_icon_name(GTK_IMAGE(main_image), "indicator-messages", DESIGN_TEAM_SIZE); */ + message_service_dbus_set_attention(dbus_interface, FALSE); } return; @@ -986,6 +989,8 @@ main (int argc, char ** argv) return 1; } + dbus_interface = message_service_dbus_new(); + listener = indicate_listener_ref_default(); serverList = NULL; |