[netspeed] Disconnect "changed" on icon theme upon destruction; Fixes #600579
- From: Jörgen Scheibengruber <mfcn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [netspeed] Disconnect "changed" on icon theme upon destruction; Fixes #600579
- Date: Sat, 5 Jun 2010 14:10:31 +0000 (UTC)
commit dfe9496a0da12f092043e0c90e3b5f6237f678af
Author: Jörgen Scheibengruber <mfcn gmx de>
Date: Sat Jun 5 15:25:44 2010 +0300
Disconnect "changed" on icon theme upon destruction; Fixes #600579
src/netspeed.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/netspeed.c b/src/netspeed.c
index cbb77e0..96008ec 100644
--- a/src/netspeed.c
+++ b/src/netspeed.c
@@ -1413,8 +1413,14 @@ applet_button_press(GtkWidget *widget, GdkEventButton *event, NetspeedApplet *ap
static void
applet_destroy(PanelApplet *applet_widget, NetspeedApplet *applet)
{
+ GtkIconTheme *icon_theme;
+
g_assert(applet);
+ icon_theme = gtk_icon_theme_get_default();
+ g_object_disconnect(G_OBJECT(icon_theme), "changed",
+ G_CALLBACK(icon_theme_changed_cb), (gpointer)applet,
+ NULL);
g_source_remove(applet->timeout_id);
applet->timeout_id = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]