X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-dualscreen.c;h=208fe349fc1084ccae9d0c39b3b7b56a96083547;hb=b43ae08397c06479da37a5bf094a0a071cb4d394;hp=f5dc1cb9fac4975df003f22ee65fb8b60fc41440;hpb=d3bc7b9497f6205eaa0c6dece068caff6411ce8c;p=evince.git diff --git a/shell/ev-dualscreen.c b/shell/ev-dualscreen.c index f5dc1cb9..208fe349 100644 --- a/shell/ev-dualscreen.c +++ b/shell/ev-dualscreen.c @@ -36,12 +36,14 @@ #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; @@ -313,8 +315,12 @@ ev_dscwindow_init (EvDSCWindow *ev_dscwindow) 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); }