summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-12-10 13:41:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-12-10 13:41:00 (GMT)
commit16d37d997b84c75c1f9b877fe446b3b3e5ce2495 (patch)
tree4e2bcd38843810abc8fb81528c289fda1dc8de10 /src/gtkext
parentb95a7e2b3ea1a900ef6b1790be386e70d37bac7f (diff)
Loaded major segment properties for an external GTK3 theme and defined some new rendering categories.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@440 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/theme.c7
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);