#include "ev-transition-animation.h"
#include "ev-view-cursor.h"
#include "ev-page-cache.h"
-#include "ev-view-marshal.h"
enum {
PROP_0,
GtkWidgetClass base_class;
/* signals */
- void (* page_changed) (EvViewPresentation *pview,
- gint old_page,
- gint new_page);
+ void (* page_changed) (EvViewPresentation *pview,
+ gint page);
void (* change_page) (EvViewPresentation *pview,
GtkScrollType scroll);
void (* finished) (EvViewPresentation *pview);
}
}
- g_signal_emit (pview, signals[PAGE_CHANGED], 0, pview->current_page);
-
+ g_signal_emit (pview, signals[PAGE_CHANGED], 0, page);
+ g_printf("pages: %d %d\n",page,pview->current_page;
pview->current_page = page;
if (pview->page_cache)
guint rotation,
gboolean inverted_colors);
guint ev_view_presentation_get_current_page (EvViewPresentation *pview);
-void ev_view_presentation_set_page (EvViewPresentation *pview,
- gint new_page);
+void ev_view_presentation_set_page (EvViewPresentation *pview,
+ gint new_page);
void ev_view_presentation_next_page (EvViewPresentation *pview);
void ev_view_presentation_previous_page (EvViewPresentation *pview);
void ev_view_presentation_set_rotation (EvViewPresentation *pview,
GtkWidget *notesview_scrolled_window;
GtkWidget *presentation_window;
- EvView *presentation_view;
+ EvViewPresentation *presentation_view;
EvDocument * presentation_document;
gint moveback_monitor;
};
**/
void
ev_dscwindow_set_presentation (EvDSCWindow *ev_dscwindow,
- EvWindow *presentation_window, EvDocument *document, GtkWidget *pview)
+ EvWindow *presentation_window, EvDocument *document, EvViewPresentation *pview)
{
if (!EV_IS_WINDOW (presentation_window))
return;
- ev_dscwindow->priv->presentation_window = presentation_window;
+ ev_dscwindow->priv->presentation_window = GTK_WIDGET(presentation_window);
ev_dscwindow->priv->presentation_document = document;
- ev_dscwindow->priv->presentation_view = pview;
+ ev_dscwindow->priv->presentation_view = EV_VIEW_PRESENTATION(pview);
g_signal_connect (ev_dscwindow->priv->presentation_view,
"notify::page",
G_CALLBACK (ev_dscwindow_presentation_page_changed_cb),
// ev_document_model_set_document (priv->model, NULL);
// ev_view_set_document (EV_VIEW (priv->overview), NULL);
- g_object_unref (priv->overview);
+// g_object_unref (priv->overview);
// }
// if (EV_IS_VIEW (priv->notesview)) {
// ev_view_set_document (EV_VIEW (priv->notesview), NULL);
// g_object_unref (priv->notesview);
// }
/*TODO: save fulscreen state*/
- ev_window_stop_presentation (priv->presentation_window, 0);
+ ev_window_stop_presentation (EV_WINDOW(priv->presentation_window), 0);
if (priv->moveback_monitor >= 0) {
GtkWindow * presentation_window = GTK_WINDOW (priv->presentation_window);
#include "ev-window.h"
#include "ev-document.h"*/
#include "ev-window.h"
+#include "ev-view-presentation.h"
G_BEGIN_DECLS
GType ev_dscwindow_get_type (void);
GtkWidget *ev_dscwindow_new (void);
-void ev_dscwindow_set_presentation (EvDSCWindow *ev_dscwindow,
- EvWindow *presentation_window,
- EvDocument *document,
- GtkWidget *pview);
+void ev_dscwindow_set_presentation (EvDSCWindow *ev_dscwindow,
+ EvWindow *presentation_window,
+ EvDocument *document,
+ EvViewPresentation *pview);
EvDSCWindow* ev_dscwindow_get_control (void);
G_END_DECLS
EvDSCWindow *control = ev_dscwindow_get_control();
ev_dscwindow_set_presentation (control, window,
window->priv->document,
- window->priv->presentation_view);
+ EV_VIEW_PRESENTATION(window->priv->presentation_view));
gtk_window_present (GTK_WINDOW (control));
//}
}