[sushi/wip/cosimoc/no-clutter: 30/67] text: return a GtkWidget



commit 9b997914b67e256da634fd7cd6e4fbb0909add9d
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 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/js/viewers/text.js b/src/js/viewers/text.js
index 2c4b616..4e844cf 100644
--- a/src/js/viewers/text.js
+++ b/src/js/viewers/text.js
@@ -24,7 +24,6 @@
  */
 
 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;
@@ -66,7 +65,7 @@ const TextRenderer = new Lang.Class({
     },
 
     render : function() {
-        return this._actor;
+        return this._scrolledWin;
     },
 
     _onBufferLoaded : function(loader, buffer) {
@@ -98,8 +97,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]