Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-09-08 09:44:27 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-09-08 09:44:27 (GMT)
commit4942d62b873cfac27dc8e4bf3c800f22e0890d0c (patch)
tree7331de5002123b3e27eb8f0541954de95288ff78 /shell/ev-view.c
parentc9b59f59087e4a65eb67a93dbbae5b5589dc0fd8 (diff)
Add a signal for link activation.
2005-09-08 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-sidebar-links.c: (ev_sidebar_links_class_init), (selection_changed_callback): * shell/ev-sidebar-links.h: Add a signal for link activation. * shell/ev-view.c: (ev_view_goto_link), (ev_view_button_release_event): * shell/ev-view.h: * shell/ev-window.c: (sidebar_links_link_activated_cb), (ev_window_init): Implement the signal so that we can handle all link types. * shell/ev-page-cache.c: Remove unused set_link function
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index fa0f087..49b0be6 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -245,8 +245,6 @@ static void find_page_at_location (EvView
static EvLink* get_link_at_location (EvView *view,
gdouble x,
gdouble y);
-static void go_to_link (EvView *view,
- EvLink *link);
static char* tip_from_link (EvView *view,
EvLink *link);
@@ -1108,8 +1106,8 @@ scroll_to_xyz_link (EvView *view, EvLink *link)
gtk_adjustment_set_value (view->vadjustment, view_point.y);
}
-static void
-go_to_link (EvView *view, EvLink *link)
+void
+ev_view_goto_link (EvView *view, EvLink *link)
{
EvLinkType type;
const char *uri;
@@ -1641,7 +1639,7 @@ ev_view_button_release_event (GtkWidget *widget,
link = get_link_at_location (view, event->x + view->scroll_x, event->y + view->scroll_y);
if (link) {
- go_to_link (view, link);
+ ev_view_goto_link (view, link);
}
}