[sushi/wip/cosimoc/no-clutter: 13/66] text: return a GtkWidget



commit 7d45e9591ecedb7865c0f36e0e8c908cc826e1bc
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Apr 3 12:39:02 2017 -0700

    text: return a GtkWidget

 src/js/viewers/text.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/js/viewers/text.js b/src/js/viewers/text.js
index 9f50552..08bca94 100644
--- a/src/js/viewers/text.js
+++ b/src/js/viewers/text.js
@@ -26,7 +26,6 @@
 imports.gi.versions.GtkSource = '4';
 
 const Gdk = imports.gi.Gdk;
-const GtkClutter = imports.gi.GtkClutter;
 const Gtk = imports.gi.Gtk;
 const GLib = imports.gi.GLib;
 const GtkSource = imports.gi.GtkSource;
@@ -68,7 +67,7 @@ const TextRenderer = new Lang.Class({
     },
 
     render : function() {
-        return this._actor;
+        return this._scrolledWin;
     },
 
     _onBufferLoaded : function(loader, buffer) {
@@ -100,8 +99,6 @@ const TextRenderer = new Lang.Class({
         this._scrolledWin.add(this._view);
         this._scrolledWin.show_all();
 
-        this._actor = new GtkClutter.Actor({ contents: this._scrolledWin });
-        this._actor.set_reactive(true);
         this._callback();
     },
 


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