testcombo—Don’t set appears-as-list style property

List mode no longer exists, so this had no effect.
This commit is contained in:
Daniel Boles 2017-01-19 21:51:22 +00:00
parent c790724469
commit d7c3d86f02

View File

@ -1063,20 +1063,6 @@ main (int argc, char **argv)
if (g_getenv ("RTL")) if (g_getenv ("RTL"))
gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL); gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL);
if (g_getenv ("LISTMODE"))
{
GtkCssProvider *provider = gtk_css_provider_new ();
gtk_css_provider_load_from_data (provider,
"* { -GtkComboBox-appears-as-list: true; }",
-1);
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
GTK_STYLE_PROVIDER (provider),
GTK_STYLE_PROVIDER_PRIORITY_FALLBACK);
}
window = gtk_window_new (GTK_WINDOW_TOPLEVEL); window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_signal_connect (window, "destroy", gtk_main_quit, NULL); g_signal_connect (window, "destroy", gtk_main_quit, NULL);