From: Lukáš Bezdička <255993@mail.muni.cz> Date: Mon, 4 Apr 2011 19:17:17 +0000 (+0200) Subject: [shell] initial dualscreen support X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=evince.git;a=commitdiff_plain;h=dd1329596e725e96f991d9d0c1944ff0887f561a [shell] initial dualscreen support --- diff --git a/po/POTFILES.in b/po/POTFILES.in index d0893a48..5bc13bda 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -37,6 +37,7 @@ libview/ev-view.c shell/eggfindbar.c shell/ev-annotation-properties-dialog.c shell/ev-application.c +shell/ev-dualscreen.c shell/ev-history.c shell/ev-keyring.c shell/ev-navigation-action.c diff --git a/shell/Makefile.am b/shell/Makefile.am index 3ca29e4f..99b81571 100644 --- a/shell/Makefile.am +++ b/shell/Makefile.am @@ -39,6 +39,8 @@ evince_SOURCES= \ ev-bookmark-action.c \ ev-application.c \ ev-application.h \ + ev-dualscreen.h \ + ev-dualscreen.c \ ev-file-monitor.h \ ev-file-monitor.c \ ev-history.c \ diff --git a/shell/ev-dualscreen.h b/shell/ev-dualscreen.h new file mode 100644 index 00000000..c884f589 --- /dev/null +++ b/shell/ev-dualscreen.h @@ -0,0 +1,60 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; c-indent-level: 8 -*- */ +/* this file is part of evince, a gnome document viewer + * + * + * Evince is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Evince is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef EV_DUALSCREEN_H +#define EV_DUALSCREEN_H + +/*#include +#include +#include +#include "ev-window.h" +#include "ev-document.h"*/ + +G_BEGIN_DECLS + +typedef struct _EvDSCWindow EvDSCWindow; +typedef struct _EvDSCWindowClass EvDSCWindowClass; +typedef struct _EvDSCWindowPrivate EvDSCWindowPrivate; + +#define EV_TYPE_DSCWINDOW (ev_dscwindow_get_type()) +#define EV_DSCWINDOW(object) (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_DSCWINDOW, EvDSCWindow)) +#define EV_DSCWINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_DSCWINDOW, EvDSCWindowClass)) +#define EV_IS_DSCWINDOW(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_DSCWINDOW)) +#define EV_IS_DSCWINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_DSCWINDOW)) +#define EV_DSCWINDOW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_DSCWINDOW, EvDSCWindowClass)) + +struct _EvDSCWindow { + GtkWindow base_instance; + EvDSCWindowPrivate *priv; +}; + +struct _EvDSCWindowClass { + GtkWindowClass base_class; +}; + +GType ev_dscwindow_get_type (void); +GtkWidget *ev_dscwindow_new (void); +/*void ev_dscwindow_set_presentation (EvDSCWindow * self, + EvWindow *presentation_window, + EvDocument *document); +EvDSCWindow* ev_dscwindow_get_control (void);*/ + +G_END_DECLS + +#endif /* EV_DUALSCREEN_H */