[gthumb/ext] use the image viewer for images
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] use the image viewer for images
- Date: Tue, 1 Sep 2009 22:21:31 +0000 (UTC)
commit b2c9873aea7c82670e3b6b5869c6bdd8449f3e33
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Sep 2 00:19:10 2009 +0200
use the image viewer for images
scan the viewer pages in reverse order in order to give to the
image viewer an higher priority than the generic file viewer.
.../image_viewer/image_viewer.extension.in.in | 2 +-
gthumb/gth-browser.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/image_viewer/image_viewer.extension.in.in b/extensions/image_viewer/image_viewer.extension.in.in
index 3ea72e2..0f995d6 100644
--- a/extensions/image_viewer/image_viewer.extension.in.in
+++ b/extensions/image_viewer/image_viewer.extension.in.in
@@ -6,6 +6,6 @@ Copyright=Copyright © 2009 The Free Software Foundation, Inc.
Version=1.0
[Loader]
-Requires=file_viewer
+After=file_viewer
Type=module
File=%LIBRARY%
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index d15ce77..dfb875d 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -4183,7 +4183,7 @@ _gth_browser_load_file (GthBrowser *browser,
_gth_browser_make_file_visible (browser, browser->priv->current_file);
if (browser->priv->viewer_pages == NULL)
- browser->priv->viewer_pages = gth_main_get_registered_objects (GTH_TYPE_VIEWER_PAGE);
+ browser->priv->viewer_pages = g_list_reverse (gth_main_get_registered_objects (GTH_TYPE_VIEWER_PAGE));
for (scan = browser->priv->viewer_pages; scan; scan = scan->next) {
GthViewerPage *registered_viewer_page = scan->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]