[gnome-documents] application: ensure Gio.ThemedIcon gtype



commit d96a0937b251adaee2fd51da76bcb1d40a4df1a0
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Dec 2 12:02:14 2015 +0100

    application: ensure Gio.ThemedIcon gtype
    
    Otherwise the application will not be able to load the resource and it
    will not start.

 src/application.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 0373e26..066e3ea 100644
--- a/src/application.js
+++ b/src/application.js
@@ -31,6 +31,7 @@ const Gio = imports.gi.Gio;
 const Goa = imports.gi.Goa;
 const Gtk = imports.gi.Gtk;
 const GLib = imports.gi.GLib;
+const GObject = imports.gi.GObject;
 const Tracker = imports.gi.Tracker;
 const TrackerControl = imports.gi.TrackerControl;
 
@@ -118,6 +119,9 @@ const Application = new Lang.Class({
             appid = 'org.gnome.Documents';
         }
 
+        // needed by data/ui/view-menu.ui
+        GObject.type_ensure(Gio.ThemedIcon);
+
         this.parent({ application_id: appid,
                       inactivity_timeout: 12000 });
 


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