From 3002d85c7ceb0006e1603da173628bb050a56884 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Tue, 27 Apr 2010 11:33:38 +0100 Subject: 64bit tested and tweaked --- src/indicator-sound.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) mode change 100644 => 100755 src/indicator-sound.c (limited to 'src') diff --git a/src/indicator-sound.c b/src/indicator-sound.c old mode 100644 new mode 100755 index 03e1d7e..18f48d8 --- a/src/indicator-sound.c +++ b/src/indicator-sound.c @@ -310,7 +310,6 @@ new_slider_item(DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuC static void connection_changed (IndicatorServiceManager * sm, gboolean connected, gpointer userdata) { - // TODO: This could be safer. if (connected) { if (sound_dbus_proxy == NULL) { GError * error = NULL; @@ -347,6 +346,7 @@ connection_changed (IndicatorServiceManager * sm, gboolean connected, gpointer u } else { //TODO : will need to handle this scenario + // Not much can we do here really, if there is no dbus connection tis goosed. } return; @@ -401,9 +401,10 @@ prepare_blocked_animation() 0, 0, 1, 1, GDK_INTERP_BILINEAR, MIN(255, i * 5)); blocked_animation_list = g_list_append(blocked_animation_list, gdk_pixbuf_copy(blocked_buf)); } - g_object_unref(temp_image); - g_object_unref(mute_buf); - g_object_unref(blocked_buf); + g_object_ref_sink(mute_buf); + g_object_unref(mute_buf); + g_object_ref_sink(blocked_buf); + g_object_unref(blocked_buf); } @@ -756,6 +757,7 @@ static void style_changed_cb(GtkWidget *widget, gpointer user_data) { g_debug("Just caught a style change event"); + update_state(current_state); reset_mute_blocking_animation(); update_state(current_state); free_the_animation_list(); -- cgit v1.2.3