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.
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_STYLE_PROVIDER_PRIORITY_APPLICATION);
gtk_css_provider_load_from_data(provider, "progress, trough { min-height: 25px; }", -1, NULL);