Kaydet (Commit) 4316c18e authored tarafından Caolán McNamara's avatar Caolán McNamara

stop warning on older gtk3s

Change-Id: I57d0875acdaf3a1a14badb9e08e7c08fd726baea
üst 4fce8bd5
......@@ -625,7 +625,12 @@ void GtkSalMenu::ShowCloseButton(bool bShow)
"min-width: 18px;"
"min-height: 18px;"
"}";
gtk_css_provider_load_from_data(pProvider, data, -1, nullptr);
const gchar olddata[] = "* { "
"padding: 0;"
"margin-left: 8px;"
"margin-right: 8px;"
"}";
gtk_css_provider_load_from_data(pProvider, gtk_check_version(3, 20, 0) == nullptr ? data : olddata, -1, nullptr);
gtk_style_context_add_provider(pButtonContext,
GTK_STYLE_PROVIDER(pProvider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
......
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