Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2006-07-17 19:44:13 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2006-07-17 19:44:13 (GMT)
commitdb4719bf8f445529477290060d64637f134329b2 (patch)
tree1023e8e97914f62260e0f7efdcbf70cab06526e2 /shell/ev-window.h
parent2d7173f26d1fd901723592e9e56f63c79d4cb985 (diff)
Add preview toolbar (hidden by default)
2006-07-17 Carlos Garcia Campos <carlosgc@gnome.org> * 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
Diffstat (limited to 'shell/ev-window.h')
-rw-r--r--shell/ev-window.h11
1 files changed, 10 insertions, 1 deletions
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);