diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-04-27 11:33:38 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-04-27 11:33:38 +0100 |
commit | 3002d85c7ceb0006e1603da173628bb050a56884 (patch) | |
tree | 0d91e22f93292717ba7f7e635b74ec561fe26463 /src | |
parent | 1bd0797b8597cb6657860d326483f0b6fc7957fc (diff) | |
download | ayatana-indicator-sound-3002d85c7ceb0006e1603da173628bb050a56884.tar.gz ayatana-indicator-sound-3002d85c7ceb0006e1603da173628bb050a56884.tar.bz2 ayatana-indicator-sound-3002d85c7ceb0006e1603da173628bb050a56884.zip |
64bit tested and tweaked
Diffstat (limited to 'src')
-rwxr-xr-x[-rw-r--r--] | src/indicator-sound.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c index 03e1d7e..18f48d8 100644..100755 --- 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(); |