[sushi/wip/cosimoc/no-clutter: 29/67] html: return a GtkWidget
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/wip/cosimoc/no-clutter: 29/67] html: return a GtkWidget
- Date: Mon, 30 Apr 2018 15:16:05 +0000 (UTC)
commit 248df7b1f55762ab77961c424ff44c7e5d2f81cf
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 files changed, 1 insertions(+), 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]