[sushi/alex-changes: 3/11] Import MimeHandler in all viewers
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/alex-changes: 3/11] Import MimeHandler in all viewers
- Date: Fri, 29 Apr 2011 14:27:20 +0000 (UTC)
commit 04697429a43bbbea47ac311577153f74abc7be7f
Author: Alexander Larsson <alexl redhat com>
Date: Fri Apr 29 08:26:42 2011 +0200
Import MimeHandler in all viewers
The load order of the viewers is essentially random, so we can't
rely on it being imported in only one viewer, as they all use it.
src/js/viewers/audio.js | 1 +
src/js/viewers/evince.js | 1 +
src/js/viewers/folder.js | 3 ++-
src/js/viewers/image.js | 1 +
4 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/js/viewers/audio.js b/src/js/viewers/audio.js
index 7020880..a5e2a08 100644
--- a/src/js/viewers/audio.js
+++ b/src/js/viewers/audio.js
@@ -1,3 +1,4 @@
+let MimeHandler = imports.ui.mimeHandler;
let Gst = imports.gi.Gst;
let Gio = imports.gi.Gio;
diff --git a/src/js/viewers/evince.js b/src/js/viewers/evince.js
index 65b446b..d61261e 100644
--- a/src/js/viewers/evince.js
+++ b/src/js/viewers/evince.js
@@ -1,3 +1,4 @@
+let MimeHandler = imports.ui.mimeHandler;
let EvDoc = imports.gi.EvinceDocument;
let EvView = imports.gi.EvinceView;
diff --git a/src/js/viewers/folder.js b/src/js/viewers/folder.js
index dccecb6..58ad92d 100644
--- a/src/js/viewers/folder.js
+++ b/src/js/viewers/folder.js
@@ -1,3 +1,4 @@
+let MimeHandler = imports.ui.mimeHandler;
let Gtk = imports.gi.Gtk;
let Gettext = imports.gettext.domain("sushi");
@@ -122,4 +123,4 @@ FolderRenderer.prototype = {
let handler = new MimeHandler.MimeHandler();
let renderer = new FolderRenderer();
-handler.registerMime("inode/directory", renderer);
\ No newline at end of file
+handler.registerMime("inode/directory", renderer);
diff --git a/src/js/viewers/image.js b/src/js/viewers/image.js
index 3b4d6a5..bba5651 100644
--- a/src/js/viewers/image.js
+++ b/src/js/viewers/image.js
@@ -1,3 +1,4 @@
+let MimeHandler = imports.ui.mimeHandler;
let GdkPixbuf = imports.gi.GdkPixbuf;
let GtkClutter = imports.gi.GtkClutter;
let Gtk = imports.gi.Gtk;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]