diff options
author | infirit <[email protected]> | 2014-11-22 16:53:01 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-22 18:43:04 +0100 |
commit | f2502e01f10dfe0d0d5e110001f86a7eab35bcd5 (patch) | |
tree | 6cfaa06ab2a8020ada397414c59eecd561f077a2 | |
parent | 15acb52121726d21bd09493ad871d800a4ff8d95 (diff) | |
download | mate-panel-f2502e01f10dfe0d0d5e110001f86a7eab35bcd5.tar.bz2 mate-panel-f2502e01f10dfe0d0d5e110001f86a7eab35bcd5.tar.xz |
Gtk3: panel-action-button: Port to GtkStyleContext
Based on gnome-panel commit: 3507d3ca74233d88f83df5f3f43a52ae2bc306d3
From: Carlos Garcia Campos <[email protected]>
-rw-r--r-- | mate-panel/panel-action-button.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mate-panel/panel-action-button.c b/mate-panel/panel-action-button.c index 0a2c9ff2..c8c81e75 100644 --- a/mate-panel/panel-action-button.c +++ b/mate-panel/panel-action-button.c @@ -701,7 +701,11 @@ panel_action_button_connect_to_gsettings (PanelActionButton *button) } static void +#if GTK_CHECK_VERSION (3, 0, 0) +panel_action_button_style_updated (PanelActionButton *button) +#else panel_action_button_style_set (PanelActionButton *button) +#endif { if (actions [button->priv->type].icon_name != NULL) button_widget_set_icon_name (BUTTON_WIDGET (button), actions [button->priv->type].icon_name); @@ -747,8 +751,13 @@ panel_action_button_load (PanelActionButtonType type, panel_action_button_connect_to_gsettings (button); +#if GTK_CHECK_VERSION (3, 0, 0) + g_signal_connect (button, "style-updated", + G_CALLBACK (panel_action_button_style_updated), NULL); +#else g_signal_connect (button, "style-set", G_CALLBACK (panel_action_button_style_set), NULL); +#endif } void |