From: Tobias Brunner Date: Mon, 7 Feb 2011 09:43:28 +0000 (+0100) Subject: maemo: Register with the GtkIconTheme "changed" signal not until the GUI is initialized. X-Git-Tag: 4.5.1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=848b8e3545e99285e621a29192a481cdd5b7cfdc;p=thirdparty%2Fstrongswan.git maemo: Register with the GtkIconTheme "changed" signal not until the GUI is initialized. --- diff --git a/src/frontends/maemo/src/strongswan-status.c b/src/frontends/maemo/src/strongswan-status.c index 951ce50db1..278ca080dd 100644 --- a/src/frontends/maemo/src/strongswan-status.c +++ b/src/frontends/maemo/src/strongswan-status.c @@ -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