aboutsummaryrefslogtreecommitdiff
path: root/src/libappindicator/app-indicator.c
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/libappindicator/app-indicator.c
parent16a9a730a4001585e87dc3c680081fd8b205b9a2 (diff)
downloadayatana-indicator-application-c80fe4d00d01c4498771c79419aa3c54567a1eec.tar.gz
ayatana-indicator-application-c80fe4d00d01c4498771c79419aa3c54567a1eec.tar.bz2
ayatana-indicator-application-c80fe4d00d01c4498771c79419aa3c54567a1eec.zip
Move g_signal_connect for the theme-changed signal to app_indicator_init ()
Diffstat (limited to 'src/libappindicator/app-indicator.c')
-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);