Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.h
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-02-16 03:38:12 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-02-16 03:38:12 (GMT)
commit6559e35a6d539a482c7363710b6153173966e8f9 (patch)
tree5a8fdf38bed5b4287bd56bc0cb12070f4dbdcd37 /shell/ev-view.h
parent93aa8e4aab21e59e633bf1fb81dc417383579783 (diff)
New function to canonicalize sizing/painting a border.
Tue Feb 15 22:27:13 2005 Jonathan Blandford <jrb@redhat.com> * backend/ev-document-misc.h: * backend/ev-document-misc.c: (ev_document_misc_get_page_border_size), (ev_document_misc_paint_one_page): New function to canonicalize sizing/painting a border. * shell/Makefile.am: Remove ev-page-view.c entirely as it's not used. * pdf/xpdf/pdf-document.cc: use new function * shell/ev-view.c: (ev_view_size_request), (expose_bin_window), (ev_view_init), (ev_view_set_mode), (ev_view_zoom), (ev_view_best_fit), (ev_view_fit_width): * shell/ev-view.h: * shell/ev-window.c: (update_sizing_buttons), (ev_window_setup_document), (ev_window_cmd_view_zoom_in), (ev_window_cmd_view_zoom_out), (ev_window_cmd_view_best_fit), (ev_window_cmd_view_page_width), (size_allocate_cb), (ev_window_set_sizing_mode), (ev_window_init): make the "best fit" and "fit width" values act as toggle buttons so they stay toggled. It's not 100% perfect, and it's a little slow, but it's good enough to commit I think.
Diffstat (limited to 'shell/ev-view.h')
-rw-r--r--shell/ev-view.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/ev-view.h b/shell/ev-view.h
index f108f9f..5feb0f7 100644
--- a/shell/ev-view.h
+++ b/shell/ev-view.h
@@ -31,6 +31,13 @@ G_BEGIN_DECLS
#define EV_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_VIEW, EvView))
#define EV_IS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_VIEW))
+
+typedef enum {
+ EV_SIZING_BEST_FIT,
+ EV_SIZING_FIT_WIDTH,
+ EV_SIZING_FREE,
+} EvSizingMode;
+
typedef struct _EvView EvView;
typedef struct _EvViewClass EvViewClass;
@@ -38,6 +45,8 @@ GType ev_view_get_type (void) G_GNUC_CONST;
GtkWidget* ev_view_new (void);
void ev_view_set_document (EvView *view,
EvDocument *document);
+void ev_view_set_mode (EvView *view,
+ EvSizingMode mode);
/* Clipboard */
void ev_view_copy (EvView *view);