[sushi/wip/cosimoc/no-clutter: 11/66] font: return a GtkWidget
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/wip/cosimoc/no-clutter: 11/66] font: return a GtkWidget
- Date: Sat, 8 Jun 2019 18:41:04 +0000 (UTC)
commit efb832ff1f97d601b353d93ab2464bafdc57eb36
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 file changed, 1 insertion(+), 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]