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_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",