From db4719bf8f445529477290060d64637f134329b2 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 17 Jul 2006 19:44:13 +0000 Subject: Add preview toolbar (hidden by default) 2006-07-17 Carlos Garcia Campos * data/evince-toolbar.xml: Add preview toolbar (hidden by default) * shell/ev-application-service.xml: * shell/ev-application.[ch]: * shell/ev-jobs.[ch]: * shell/ev-window.[ch]: (ev_window_run_preview): * shell/main.c: Add preview mode to use evince as a printing previewer. It also adds other command line options for fullscreen and presentation modes. Fixes bugs #347822, #317031 --- (limited to 'shell/ev-window.h') diff --git a/shell/ev-window.h b/shell/ev-window.h index e54a62e..d2d5846 100644 --- a/shell/ev-window.h +++ b/shell/ev-window.h @@ -31,6 +31,13 @@ G_BEGIN_DECLS +typedef enum { + EV_WINDOW_MODE_NORMAL, + EV_WINDOW_MODE_FULLSCREEN, + EV_WINDOW_MODE_PRESENTATION, + EV_WINDOW_MODE_PREVIEW +} EvWindowRunMode; + typedef struct _EvWindow EvWindow; typedef struct _EvWindowClass EvWindowClass; typedef struct _EvWindowPrivate EvWindowPrivate; @@ -42,6 +49,7 @@ typedef struct _EvWindowPrivate EvWindowPrivate; #define EV_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_WINDOW)) #define EV_WINDOW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_WINDOW, EvWindowClass)) + struct _EvWindow { GtkWindow base_instance; EvWindowPrivate *priv; @@ -56,7 +64,8 @@ GtkWidget *ev_window_new (void); const char *ev_window_get_uri (EvWindow *ev_window); void ev_window_open_uri (EvWindow *ev_window, const char *uri, - EvLinkDest *dest); + EvLinkDest *dest, + EvWindowRunMode mode); void ev_window_goto_dest (EvWindow *ev_window, EvLinkDest *dest); gboolean ev_window_is_empty (const EvWindow *ev_window); -- cgit v0.9.1