static void
ev_dscwindow_page_changed_cb (EvDocumentModel *model,
- GParamSpec *pspec,
- EvDSCWindow *ev_dscwindow)
+ GParamSpec *pspec,
+ EvDSCWindow *ev_dscwindow)
{
ev_dscwindow_set_page (ev_dscwindow, ev_document_model_get_page (model));
}
static void
-ev_dscwindow_presentation_page_changed_cb (EvViewPresentation *pview,
- GParamSpec *pspec,
- EvDSCWindow *ev_dscwindow)
+ev_dscwindow_presentation_page_changed_cb (EvViewPresentation *pview,
+ GParamSpec *pspec,
+ EvDSCWindow *ev_dscwindow)
{
ev_dscwindow_set_page (ev_dscwindow, ev_view_presentation_get_current_page (pview));
}
"notify::page",
G_CALLBACK (ev_dscwindow_presentation_page_changed_cb),
ev_dscwindow);
- ev_presentation_timer_set_pages (EV_PRESENTATION_TIMER(ev_dscwindow->priv->timer), ev_document_get_n_pages (document));
+ ev_presentation_timer_set_pages (EV_PRESENTATION_TIMER(ev_dscwindow->priv->timer),
+ ev_document_get_n_pages (document));
ev_dscwindow_window_placement (ev_dscwindow);
}
ev_dscwindow->priv->model = ev_document_model_new ();
ev_document_model_set_continuous (ev_dscwindow->priv->model, FALSE);
ev_document_model_set_dual_page (ev_dscwindow->priv->model, FALSE);
- ev_document_model_set_sizing_mode (ev_dscwindow->priv->model, EV_SIZING_BEST_FIT);
+ ev_document_model_set_sizing_mode (ev_dscwindow->priv->model,
+ EV_SIZING_BEST_FIT);
ev_dscwindow->priv->sidebar = ev_sidebar_new ();
ev_sidebar_set_model (EV_SIDEBAR (ev_dscwindow->priv->sidebar),
ev_sidebar_add_page (EV_SIDEBAR (ev_dscwindow->priv->sidebar),
sidebar_widget);
- ev_dscwindow->priv->notesview_scrolled_window = GTK_WIDGET (
- g_object_new (GTK_TYPE_SCROLLED_WINDOW,"shadow-type",
- GTK_SHADOW_IN, NULL));
+ ev_dscwindow->priv->notesview_scrolled_window =
+ GTK_WIDGET (g_object_new(GTK_TYPE_SCROLLED_WINDOW,
+ "shadow-type",
+ GTK_SHADOW_IN,
+ NULL));
ev_dscwindow->priv->notesview = ev_view_new ();
gtk_container_add (GTK_CONTAINER (ev_dscwindow->priv->notesview_scrolled_window),
- ev_dscwindow->priv->notesview);
+ ev_dscwindow->priv->notesview);
ev_dscwindow->priv->notes_model = ev_dscwindow->priv->model;
- ev_view_set_model (EV_VIEW (ev_dscwindow->priv->notesview), ev_dscwindow->priv->notes_model);
- gtk_paned_pack1 (GTK_PANED (hpaned), ev_dscwindow->priv->sidebar, FALSE, TRUE);
- gtk_paned_pack2 (GTK_PANED (hpaned), ev_dscwindow->priv->notesview_scrolled_window, FALSE, FALSE);
+ ev_view_set_model (EV_VIEW (ev_dscwindow->priv->notesview),
+ ev_dscwindow->priv->notes_model);
+ gtk_paned_pack1 (GTK_PANED (hpaned),
+ ev_dscwindow->priv->sidebar,
+ FALSE,
+ TRUE);
+ gtk_paned_pack2 (GTK_PANED (hpaned),
+ ev_dscwindow->priv->notesview_scrolled_window,
+ FALSE,
+ FALSE);
gtk_box_pack_start(GTK_BOX(vbox),hpaned,TRUE,TRUE,0);
GtkWidget *toolbar = gtk_toolbar_new ();
GtkToolItem *b_switch = gtk_tool_button_new (NULL, _("Switch monitors"));
+ gtk_tool_item_set_tooltip_text (b_switch,
+ _("Switch monitors, In case of more than two monitor window placing has to be manual."));
gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (b_switch), "object-flip-horizontal");
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), b_switch, -1);
g_signal_connect (b_switch, "clicked",
GtkToolItem *b_notes = gtk_tool_button_new_from_stock (GTK_STOCK_OPEN);
gtk_tool_button_set_label (GTK_TOOL_BUTTON(b_notes), _("Load notes..."));
+ gtk_tool_item_set_tooltip_text (b_notes, _("Load your notes document"));
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), b_notes, -1);
g_signal_connect (b_notes, "clicked",
G_CALLBACK (ev_dscwindow_notes_interaction), ev_dscwindow);
GtkToolItem *b_close = gtk_tool_button_new_from_stock (GTK_STOCK_CLOSE);
gtk_tool_button_set_label (GTK_TOOL_BUTTON(b_close), _("End presentation"));
+ gtk_tool_item_set_tooltip_text (b_close, _("End presentation"));
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), b_close, -1);
g_signal_connect (b_close, "clicked",
G_CALLBACK (ev_dscwindow_end), NULL);
GtkToolItem *b_sidebar = gtk_tool_button_new_from_stock (GTK_STOCK_PAGE_SETUP);
gtk_tool_button_set_label (GTK_TOOL_BUTTON(b_sidebar), _("Show sidebar"));
+ gtk_tool_item_set_tooltip_text (b_sidebar, _("Show/hide sidebar"));
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), b_sidebar, -1);
g_signal_connect_swapped (b_sidebar, "clicked",
G_CALLBACK (ev_dscwindow_sidebar_visibility_cb), ev_dscwindow->priv->sidebar);
G_CALLBACK (ev_dscwindow_presentation_time_cb), ev_dscwindow);
gtk_container_add (GTK_CONTAINER (b_spinner), alignment);
gtk_container_add (GTK_CONTAINER (alignment), ev_dscwindow->priv->spinner);
+ gtk_tool_item_set_tooltip_text (b_spinner,
+ _("To enable timer, set presentation timer to expected time in minutes. Timer starts by changing from first slide to second one. Value -1 means disabled."));
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), b_spinner, -1);
gtk_container_add (GTK_CONTAINER (expander), toolbar);