aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Conti <jason.conti@gmail.com>2012-04-04 21:14:55 -0400
committerJason Conti <jason.conti@gmail.com>2012-04-04 21:14:55 -0400
commit8e252e02c39aabc9d8dd769da73f41cfe5671b58 (patch)
tree8a5565dce5daf81d22e453ae9f6e9711330e549b /src
parent8d922591937231afbeb5271c450bd0547e2d8aac (diff)
downloadayatana-indicator-notifications-8e252e02c39aabc9d8dd769da73f41cfe5671b58.tar.gz
ayatana-indicator-notifications-8e252e02c39aabc9d8dd769da73f41cfe5671b58.tar.bz2
ayatana-indicator-notifications-8e252e02c39aabc9d8dd769da73f41cfe5671b58.zip
* Use style-updated intead of style-set to track style changes on GtkImage,
since style-set is deprecated and seems to be broken for GtkImage.
Diffstat (limited to 'src')
-rw-r--r--src/indicator-notifications.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/indicator-notifications.c b/src/indicator-notifications.c
index ac9b016..4c4f0c2 100644
--- a/src/indicator-notifications.c
+++ b/src/indicator-notifications.c
@@ -122,7 +122,7 @@ static void clear_item_activated_cb(GtkMenuItem *menuitem, gpointer user_data);
static void menu_visible_notify_cb(GtkWidget *menu, GParamSpec *pspec, gpointer user_data);
static void message_received_cb(DBusSpy *spy, Notification *note, gpointer user_data);
static void notification_clicked_cb(NotificationMenuItem *menuitem, gpointer user_data);
-static void style_changed_cb(GtkWidget *widget, GtkStyle *oldstyle, gpointer user_data);
+static void style_changed_cb(GtkWidget *widget, gpointer user_data);
/* Indicator Module Config */
INDICATOR_SET_VERSION
@@ -265,7 +265,7 @@ get_image(IndicatorObject *io)
gtk_image_set_from_pixbuf(self->priv->image, self->priv->pixbuf_read);
- g_signal_connect(G_OBJECT(self->priv->image), "style-set", G_CALLBACK(style_changed_cb), self);
+ g_signal_connect(G_OBJECT(self->priv->image), "style-updated", G_CALLBACK(style_changed_cb), self);
gtk_widget_show(GTK_WIDGET(self->priv->image));
}
@@ -574,7 +574,7 @@ message_received_cb(DBusSpy *spy, Notification *note, gpointer user_data)
* Called when the theme changes, and reloads the indicator icons.
**/
static void
-style_changed_cb(GtkWidget *widget, GtkStyle *oldstyle, gpointer user_data)
+style_changed_cb(GtkWidget *widget, gpointer user_data)
{
g_return_if_fail(GTK_IS_IMAGE(widget));
g_return_if_fail(IS_INDICATOR_NOTIFICATIONS(user_data));