+
+ context = gtk_widget_get_style_context (combo);
+
+ provider = gtk_css_provider_new ();
+ css_data = g_strdup_printf ("#%s { -GtkComboBox-appears-as-list: %s }",
+ name, is_list ? "true" : "false");
+ gtk_css_provider_load_from_data (provider, css_data, -1, NULL);
+ g_free (css_data);
+
+ gtk_style_context_add_provider (context,
+ GTK_STYLE_PROVIDER (provider),
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+