Commit 9893f397 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

use GTK_STYLE_CLASS_SUGGESTED_ACTION only if defined

parent b3fafa9b
......@@ -4399,7 +4399,9 @@ gth_browser_init (GthBrowser *browser)
NULL,
"win.apply-editor-changes",
NULL);
#ifdef GTK_STYLE_CLASS_SUGGESTED_ACTION
gtk_style_context_add_class (gtk_widget_get_style_context (button), GTK_STYLE_CLASS_SUGGESTED_ACTION);
#endif
}
/* fullscreen toolbar */
......
......@@ -238,7 +238,9 @@ gth_toolbox_init (GthToolbox *toolbox)
g_signal_connect (close_button, "clicked", G_CALLBACK (close_button_clicked_cb), toolbox);
ok_button = gtk_button_new_from_icon_name ("object-select-symbolic", GTK_ICON_SIZE_BUTTON);
#ifdef GTK_STYLE_CLASS_SUGGESTED_ACTION
gtk_style_context_add_class (gtk_widget_get_style_context (ok_button), GTK_STYLE_CLASS_SUGGESTED_ACTION);
#endif
gtk_widget_show (ok_button);
g_signal_connect (ok_button, "clicked", G_CALLBACK (ok_button_clicked_cb), toolbox);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment