Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-sidebar-links.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-01-13 17:49:01 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-01-13 17:49:01 (GMT)
commite0ca7880392b3d064e55406f270e2f68779e3cdc (patch)
tree684585ef2bc8531c2471490ffb5b130b7cc34f23 /shell/ev-sidebar-links.c
parentddc0ad5b3bd75a640ba362cdccde7449654bae61 (diff)
Add support for document links
2005-01-13 Marco Pesenti Gritti <marco@gnome.org> * backend/ev-document.c: (ev_document_get_link): * backend/ev-document.h: * pdf/xpdf/pdf-document.cc: * shell/ev-application.c: (ev_application_open): * shell/ev-application.h: * shell/ev-sidebar-links.c: (selection_changed_cb): * shell/ev-view.c: (ev_view_button_release_event), (go_to_link), (ev_view_go_to_link): Add support for document links
Diffstat (limited to 'shell/ev-sidebar-links.c')
-rw-r--r--shell/ev-sidebar-links.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c
index 4db11b6..03d445e 100644
--- a/shell/ev-sidebar-links.c
+++ b/shell/ev-sidebar-links.c
@@ -29,7 +29,7 @@
#include "ev-sidebar-links.h"
#include "ev-document-links.h"
-#include "ev-application.h"
+#include "ev-window.h"
/* Amount of time we devote to each iteration of the idle, in microseconds */
#define IDLE_WORK_LENGTH 5000
@@ -105,7 +105,6 @@ selection_changed_cb (GtkTreeSelection *selection,
if (gtk_tree_selection_get_selected (selection, &model, &iter)) {
EvLink *link;
- EvApplication *app;
GtkWidget *window;
GValue value = {0, };
@@ -118,9 +117,7 @@ selection_changed_cb (GtkTreeSelection *selection,
window = gtk_widget_get_ancestor (GTK_WIDGET (ev_sidebar_links),
EV_TYPE_WINDOW);
if (window) {
- app = ev_application_get_instance ();
- ev_application_open_link (app, EV_WINDOW (window),
- link, NULL);
+ ev_window_open_link (EV_WINDOW (window), link);
}
}
}