[sushi/wip/cosimoc/no-clutter: 28/67] font: return a GtkWidget



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

    font: return a GtkWidget

 src/js/viewers/font.js |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/js/viewers/font.js b/src/js/viewers/font.js
index 0f3426e..5e97df7 100644
--- a/src/js/viewers/font.js
+++ b/src/js/viewers/font.js
@@ -28,7 +28,6 @@ const Utils = imports.ui.utils;
 
 const Lang = imports.lang;
 
-const GtkClutter = imports.gi.GtkClutter;
 const Gtk = imports.gi.Gtk;
 const GLib = imports.gi.GLib;
 const Sushi = imports.gi.Sushi;
@@ -50,9 +49,6 @@ const FontRenderer = new Lang.Class({
         this._fontWidget.show();
         this._fontWidget.connect('loaded',
                                  Lang.bind(this, this._onFontLoaded));
-
-        this._fontActor = new GtkClutter.Actor({ contents: this._fontWidget });
-        Utils.alphaGtkWidget(this._fontActor.get_widget());
     },
 
     _onFontLoaded : function() {
@@ -60,7 +56,7 @@ const FontRenderer = new Lang.Class({
     },
 
     render : function() {
-        return this._fontActor;
+        return this._fontWidget;
     },
 
     getSizeForAllocation : function(allocation) {


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