summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-10 01:36:38 +0100
committerinfirit <[email protected]>2014-12-10 01:36:38 +0100
commitebef7a5b36db6d6b5e8b56eaea4926f745d48246 (patch)
tree2dedec2be9dfe8f9df7b447c4d5bf0e844b565b3 /libview
parent4130805895a7969e543203777c77c0cf4d040e5f (diff)
downloadatril-ebef7a5b36db6d6b5e8b56eaea4926f745d48246.tar.bz2
atril-ebef7a5b36db6d6b5e8b56eaea4926f745d48246.tar.xz
presentation: Make next/previous methods public
Taken from evince commit: f0361693221cdd168386509b6ffe97c72d21777a From: Carlos Garcia Campos <[email protected]>
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view-presentation.c6
-rw-r--r--libview/ev-view-presentation.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index d9386563..36632919 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -109,8 +109,6 @@ struct _EvViewPresentationClass
static guint signals[N_SIGNALS] = { 0 };
-static void ev_view_presentation_next_page (EvViewPresentation *pview);
-static void ev_view_presentation_previous_page (EvViewPresentation *pview);
static void ev_view_presentation_set_cursor_for_location (EvViewPresentation *pview,
gdouble x,
gdouble y);
@@ -516,7 +514,7 @@ ev_view_presentation_update_current_page (EvViewPresentation *pview,
gtk_widget_queue_draw (GTK_WIDGET (pview));
}
-static void
+void
ev_view_presentation_next_page (EvViewPresentation *pview)
{
guint n_pages;
@@ -541,7 +539,7 @@ ev_view_presentation_next_page (EvViewPresentation *pview)
ev_view_presentation_update_current_page (pview, new_page);
}
-static void
+void
ev_view_presentation_previous_page (EvViewPresentation *pview)
{
gint new_page = 0;
diff --git a/libview/ev-view-presentation.h b/libview/ev-view-presentation.h
index 2a0e063a..df8f6fc5 100644
--- a/libview/ev-view-presentation.h
+++ b/libview/ev-view-presentation.h
@@ -45,6 +45,8 @@ GtkWidget *ev_view_presentation_new (EvDocument *document,
guint rotation,
gboolean inverted_colors);
guint ev_view_presentation_get_current_page (EvViewPresentation *pview);
+void ev_view_presentation_next_page (EvViewPresentation *pview);
+void ev_view_presentation_previous_page (EvViewPresentation *pview);
G_END_DECLS