[sushi/wip/cosimoc/no-clutter: 12/66] html: return a GtkWidget



commit c078710e919ba43cd705bad9018fe336e1a1a29f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Apr 3 12:38:44 2017 -0700

    html: return a GtkWidget

 src/js/viewers/html.js | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/js/viewers/html.js b/src/js/viewers/html.js
index 2f90092..9f427aa 100644
--- a/src/js/viewers/html.js
+++ b/src/js/viewers/html.js
@@ -23,7 +23,6 @@
  *
  */
 
-const GtkClutter = imports.gi.GtkClutter;
 const Gtk = imports.gi.Gtk;
 const GLib = imports.gi.GLib;
 const Lang = imports.lang;
@@ -55,14 +54,11 @@ const HTMLRenderer = new Lang.Class({
 
         this._webView.load_uri(file.get_uri());
 
-        this._actor = new GtkClutter.Actor({ contents: this._webView });
-        this._actor.set_reactive(true);
-
         this._callback();
     },
 
     render : function() {
-        return this._actor;
+        return this._webView;
     },
 
     getSizeForAllocation : function(allocation) {


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