diff options
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/theme.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gtkext/theme.c b/src/gtkext/theme.c index 493692a..41e0b4a 100644 --- a/src/gtkext/theme.c +++ b/src/gtkext/theme.c @@ -54,19 +54,19 @@ static const char *_themes_directories[] = { bool load_extra_gtk_theme(void) { GdkScreen *screen; /* Ecran(s) concerné(s) */ - GtkCssProvider *provider; /* Fournisseur par défaut */ const char **iter_f; /* Boucle de parcours #1 */ bool done; /* Traitement d'un fichier */ const char **iter_d; /* Boucle de parcours #2 */ gchar *filename; /* Chemin d'accès constitué */ + GtkCssProvider *provider; /* Nouveau fournisseur CSS */ static const char *css_files[] = { "portions.css", + "segments.css", NULL }; screen = gdk_screen_get_default(); - provider = gtk_css_provider_get_default(); done = true; @@ -80,12 +80,15 @@ bool load_extra_gtk_theme(void) if (g_file_test(filename, G_FILE_TEST_EXISTS)) { + provider = gtk_css_provider_new(); done = gtk_css_provider_load_from_path(provider, filename, NULL); if (done) gtk_style_context_add_provider_for_screen(screen, GTK_STYLE_PROVIDER(provider), GTK_STYLE_PROVIDER_PRIORITY_USER); + g_object_unref(G_OBJECT(provider)); + } g_free(filename); |