How to set the bar height of a progressbar in Gtk3

Hello out there,

i want to set the height of the bar of a GtkProgressbar in GTK3.
i can’t find out in Glade or Code the set function, so i get a very thin bar.

i found it… i should use css

// Set minimum height of the trough (background) and progress (blue bar)
GtkCssProvider *provider = gtk_css_provider_new();
GdkDisplay *display = gdk_display_get_default();
GdkScreen *screen = gdk_display_get_default_screen(display);
gtk_style_context_add_provider_for_screen(screen, GTK_STYLE_PROVIDER(provider),
gtk_css_provider_load_from_data(provider, "progress, trough { min-height: 25px; }", -1, NULL);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.