[gtk+] gtk: Register GSK resources at startup



commit f8b6831c98da5da13a17528ce44d01e84f750568
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jan 18 22:41:20 2017 +0100

    gtk: Register GSK resources at startup
    
    That way they show up in the resource list in the inspector even when
    running with the Cairo renderer.

 gtk/gtkmain.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 31df09e..6aaee9e 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -92,6 +92,7 @@
 
 #include "gdk/gdk.h"
 #include "gdk/gdk-private.h"
+#include "gsk/gskprivate.h"
 
 #include <locale.h>
 
@@ -652,6 +653,7 @@ do_post_parse_initialization (void)
 
   gtk_widget_set_default_direction (gtk_get_locale_direction ());
 
+  gsk_ensure_resources ();
   _gtk_ensure_resources ();
 
   _gtk_accel_map_init ();


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