#include "ev-utils.h"
#include "ev-sidebar.h"
#include "ev-sidebar-thumbnails.h"
+#include "ev-presentation-timer.h"
struct _EvDSCWindowPrivate {
GtkWidget *main_box;
GtkWidget *menubar;
GtkWidget *sidebar;
GtkWidget *notesview;
+ GtkWidget *timer;
EvDocumentModel *model;
EvDocumentModel *notes_model;
EvDocument *presentation_document;
G_CALLBACK (ev_dscwindow_sidebar_visibility), ev_dscwindow->priv->sidebar);
gtk_container_add (GTK_CONTAINER (expander), toolbar);
- gtk_box_pack_end (GTK_BOX (vbox), expander, FALSE, TRUE, 0);
+ GtkWidget *hbox = gtk_hbox_new (FALSE,0);
+ gtk_box_pack_start (GTK_BOX (hbox), expander, FALSE, TRUE, 0);
+ ev_dscwindow->priv->timer = ev_presentation_timer_new ();
+ gtk_box_pack_end (GTK_BOX (hbox), ev_dscwindow->priv->timer, TRUE, TRUE, 0);
+ gtk_box_pack_end (GTK_BOX (vbox), hbox, FALSE, TRUE, 0);
gtk_widget_show_all(vbox);
gtk_container_add (GTK_CONTAINER (ev_dscwindow), vbox);
}
#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;
};
-struct _EvDSCWindowClass {
- GtkWindowClass base_class;
+struct _EvDSCWindow {
+ GtkWindow base_instance;
+ EvDSCWindowPrivate *priv;
};
GType ev_dscwindow_get_type (void);