#include "ev-dualscreen.h"
#include "ev-window.h"
#include "ev-view.h"
+#include "ev-utils.h"
struct _EvDSCWindowPrivate {
GtkWidget *main_box;
return control;
}
+
/*TODO: Fix me!*/
static void
ev_dscwindow_window_placement (EvDSCWindow *ev_dscwindow)
GdkScreen * screen = gtk_window_get_screen (presentation_window);
gint work_monitor = gdk_screen_get_monitor_at_window (screen,
- GTK_WIDGET (presentation_window)->window);
+ gtk_widget_get_window (GTK_WIDGET (presentation_window)));
gint presentation_monitor = (work_monitor + 1) % 2;
**/
void
ev_dscwindow_set_presentation (EvDSCWindow *ev_dscwindow,
- EvWindow *presentation_window)
+ EvWindow *presentation_window, EvDocument *document)
{
if (!EV_IS_WINDOW (presentation_window))
return;
ev_dscwindow->priv->presentation_document = document;
ev_document_model_set_document(ev_dscwindow->priv->model,
- presentation_window->priv->document);
+ document);
/* ev_view_set_document (EV_VIEW (priv->notesview),
priv->presentation_document);
ev_dscwindow_window_placement (self);
#include <glib/gi18n.h>
#include "ev-window.h"
#include "ev-document.h"*/
+#include "ev-window.h"
G_BEGIN_DECLS
GType ev_dscwindow_get_type (void);
GtkWidget *ev_dscwindow_new (void);
-void ev_dscwindow_set_presentation (EvDSCWindow * self,
- EvWindow *presentation_window);
-/*EvDSCWindow* ev_dscwindow_get_control (void);*/
+void ev_dscwindow_set_presentation (EvDSCWindow *ev_dscwindow,
+ EvWindow *presentation_window,
+ EvDocument *document);
+EvDSCWindow* ev_dscwindow_get_control (void);
G_END_DECLS
#include "ephy-zoom.h"
#include "ev-application.h"
+#include "ev-dualscreen.h"
#include "ev-document-factory.h"
#include "ev-document-find.h"
#include "ev-document-fonts.h"
}
static void
-ev_window_run_presentation_wrapper ()
+ev_window_run_presentation_wrapper (EvWindow *window)
{
- if ( get_num_monitors(GTK_WINDOW(window) > 1) {
+ if ( get_num_monitors(GTK_WINDOW(window)) > 1) {
EvWindow *presentation_window = window;
EvDSCWindow *control = ev_dscwindow_get_control();
- ev_dscwindow_set_presentation (control, presentation_window);
+ ev_dscwindow_set_presentation (control, presentation_window,
+ presentation_window->priv->document);
gtk_window_present (GTK_WINDOW (control));
} else
- ev_window_stop_presentation (window);
+ ev_window_stop_presentation (window, TRUE);
}
static void
-ev_window_stop_presentation_wrapper(){
+ev_window_stop_presentation_wrapper(EvWindow *window, gboolean unfullscreen_window)
+{
}
void