aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKrzysztof Klimonda <kklimonda@syntaxhighlighted.com>2010-03-22 17:53:02 +0100
committerKrzysztof Klimonda <kklimonda@syntaxhighlighted.com>2010-03-22 17:53:02 +0100
commitc80fe4d00d01c4498771c79419aa3c54567a1eec (patch)
treeb8a841905742f146d42d27c7b118ea6542d06b9e /src
parent16a9a730a4001585e87dc3c680081fd8b205b9a2 (diff)
downloadlibayatana-appindicator-c80fe4d00d01c4498771c79419aa3c54567a1eec.tar.gz
libayatana-appindicator-c80fe4d00d01c4498771c79419aa3c54567a1eec.tar.bz2
libayatana-appindicator-c80fe4d00d01c4498771c79419aa3c54567a1eec.zip
Move g_signal_connect for the theme-changed signal to app_indicator_init ()
Diffstat (limited to 'src')
-rw-r--r--src/libappindicator/app-indicator.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index dc99936..43475fb 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -144,6 +144,8 @@ static void watcher_proxy_destroyed (GObject * object, gpointer data);
static void client_menu_changed (GtkWidget *widget, GtkWidget *child, AppIndicator *indicator);
static void submenu_changed (GtkWidget *widget, GtkWidget *child, gpointer data);
+static void theme_changed_cb (GtkIconTheme * theme, gpointer user_data);
+
/* GObject type */
G_DEFINE_TYPE (AppIndicator, app_indicator, G_TYPE_OBJECT);
@@ -335,6 +337,9 @@ app_indicator_init (AppIndicator *self)
}
dbus_g_connection_ref(priv->connection);
+ g_signal_connect(G_OBJECT(gtk_icon_theme_get_default()),
+ "changed", G_CALLBACK(theme_changed_cb), self);
+
self->priv = priv;
return;
@@ -834,8 +839,6 @@ fallback (AppIndicator * self)
G_CALLBACK(status_icon_changes), icon);
g_signal_connect(G_OBJECT(self), APP_INDICATOR_SIGNAL_NEW_ATTENTION_ICON,
G_CALLBACK(status_icon_changes), icon);
- g_signal_connect(G_OBJECT(gtk_icon_theme_get_default()),
- "changed", G_CALLBACK(theme_changed_cb), self);
status_icon_changes(self, icon);