[gnome-logs/wip/latest-mockup] Do not unref the default GtkCssProvider



commit b87ee66b7f07237ba917d37c721b7217eb8afdef
Author: David King <davidk gnome org>
Date:   Tue Oct 8 16:02:13 2013 +0100

    Do not unref the default GtkCssProvider

 src/gl-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gl-window.c b/src/gl-window.c
index b0a773e..cee2813 100644
--- a/src/gl-window.c
+++ b/src/gl-window.c
@@ -297,7 +297,7 @@ gl_window_init (GlWindow *window)
                                      G_N_ELEMENTS (actions), window);
 
     file = g_file_new_for_uri ("resource:///org/gnome/Logs/gl-style.css");
-    provider = gtk_css_provider_get_default ();
+    provider = gtk_css_provider_new ();
     g_signal_connect (provider, "parsing-error",
                       G_CALLBACK (on_provider_parsing_error), NULL);
     gtk_css_provider_load_from_file (provider, file, &err);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]