maemo: Register with the GtkIconTheme "changed" signal not until the GUI is initialized.
authorTobias Brunner <tobias@strongswan.org>
Mon, 7 Feb 2011 09:43:28 +0000 (10:43 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 7 Feb 2011 10:39:41 +0000 (11:39 +0100)
src/frontends/maemo/src/strongswan-status.c

index 951ce50..278ca08 100644 (file)
@@ -545,9 +545,6 @@ strongswan_status_init (StrongswanStatus *plugin)
 
        priv->conns = strongswan_connections_new ();
 
-       g_signal_connect_object (gtk_icon_theme_get_default (), "changed",
-                                                        G_CALLBACK (icon_theme_changed), plugin, 0);
-
        load_icons(priv);
 
        hd_status_plugin_item_set_status_area_icon (HD_STATUS_PLUGIN_ITEM (plugin),
@@ -571,6 +568,9 @@ strongswan_status_init (StrongswanStatus *plugin)
        g_signal_connect (button, "clicked", G_CALLBACK (button_clicked), plugin);
 
        gtk_widget_show_all (GTK_WIDGET (plugin));
+
+       g_signal_connect (gtk_icon_theme_get_default (), "changed",
+                                         G_CALLBACK (icon_theme_changed), plugin);
 }
 
 static void