X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=shell%2Fev-sidebar-links.c;h=03d445e803afabf343be14a2f4c64b0edf4717ec;hb=a92004b77fc73fe7ac2a781b5207249b2288b8c9;hp=4db11b668cfc642c051a2802c53317fd37a4b623;hpb=2d5fe16a0b4a8bbb85933e471a62550384446821;p=evince.git diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c index 4db11b66..03d445e8 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); } } }