[sushi] all: misc cleanups
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] all: misc cleanups
- Date: Wed, 20 Apr 2011 19:09:57 +0000 (UTC)
commit e7aed9345511bd7f982e8c8ec87123bcc136b3fc
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Apr 20 15:09:46 2011 -0400
all: misc cleanups
src/js/viewers/audio.js | 3 ---
src/js/viewers/evince.js | 3 ++-
src/js/viewers/gst.js | 10 ----------
src/js/viewers/image.js | 4 ++--
4 files changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/src/js/viewers/audio.js b/src/js/viewers/audio.js
index db9adcc..36342d7 100644
--- a/src/js/viewers/audio.js
+++ b/src/js/viewers/audio.js
@@ -230,9 +230,6 @@ AudioRenderer.prototype = {
return [ width[1], height[1] ];
},
- clear : function() {
- },
-
createToolbar : function () {
this._mainToolbar = new Gtk.Toolbar();
this._mainToolbar.get_style_context().add_class("np-toolbar");
diff --git a/src/js/viewers/evince.js b/src/js/viewers/evince.js
index aeb673e..ff5b72d 100644
--- a/src/js/viewers/evince.js
+++ b/src/js/viewers/evince.js
@@ -1,7 +1,8 @@
-const Sushi = imports.gi.Sushi;
const EvDoc = imports.gi.EvinceDocument;
const EvView = imports.gi.EvinceView;
+let Sushi = imports.gi.Sushi;
+
let Gettext = imports.gettext.domain("sushi");
let Utils = imports.ui.utils;
diff --git a/src/js/viewers/gst.js b/src/js/viewers/gst.js
index 596f86e..6af6608 100644
--- a/src/js/viewers/gst.js
+++ b/src/js/viewers/gst.js
@@ -136,16 +136,6 @@ GstRenderer.prototype = {
return Utils.getScaledSize(baseSize, allocation, true);
},
- clear : function() {
- if (this._videoSizeChangeId) {
- this._video.disconnect(this._videoSizeChangeId);
- delete this._videoSizeChangeId
- }
-
- delete this._videoWidth;
- delete this._videoHeight;
- },
-
createToolbar : function () {
this._mainToolbar = new Gtk.Toolbar({ "icon-size": Gtk.IconSize.MENU });
this._mainToolbar.get_style_context().add_class("np-toolbar");
diff --git a/src/js/viewers/image.js b/src/js/viewers/image.js
index 34ba805..78614b8 100644
--- a/src/js/viewers/image.js
+++ b/src/js/viewers/image.js
@@ -1,6 +1,6 @@
const GdkPixbuf = imports.gi.GdkPixbuf;
const GtkClutter = imports.gi.GtkClutter;
-const Gtk = imports.gi.Gtk;
+let Gtk = imports.gi.Gtk;
let Utils = imports.ui.utils;
@@ -34,7 +34,7 @@ ImageRenderer.prototype = {
return Utils.getScaledSize(baseSize, allocation, fullScreen);
},
- createToolbar : function () {
+ createToolbar : function() {
this._mainToolbar = new Gtk.Toolbar();
this._mainToolbar.get_style_context().add_class("np-toolbar");
this._mainToolbar.set_icon_size(Gtk.IconSize.MENU);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]