summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-action-button.c9
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