set progressbar minimal width/height to 4px so that it looks like with gtk+2

master
Landry Breuil 2016-06-19 14:58:43 +02:00
parent 91bc38e84d
commit d35e3a59a6
1 changed files with 3 additions and 1 deletions

View File

@ -549,7 +549,9 @@ static void set_progressbar_csscolor(GtkWidget* pbar, GdkRGBA* color)
GtkCssProvider *css_provider; GtkCssProvider *css_provider;
gchar * css; gchar * css;
#if GTK_CHECK_VERSION (3, 20, 0) #if GTK_CHECK_VERSION (3, 20, 0)
css = g_strdup_printf("progressbar progress { background-color: %s; background-image: none; }", css = g_strdup_printf("progressbar trough { min-width: 4px; min-height: 4px; } \
progressbar progress { min-width: 4px; min-height: 4px; \
background-color: %s; background-image: none; }",
#else #else
css = g_strdup_printf(".progressbar { background-color: %s; background-image: none; }", css = g_strdup_printf(".progressbar { background-color: %s; background-image: none; }",
#endif #endif