From 5115e6d8b79f845c27c52e02c2a0d84a67a35797 Mon Sep 17 00:00:00 2001 From: xbezdick <255993@mail.muni.cz> Date: Tue, 3 May 2011 23:36:53 +0200 Subject: [PATCH] cleanup --- shell/ev-dualscreen.c | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/shell/ev-dualscreen.c b/shell/ev-dualscreen.c index 2332d859..648a1f2e 100644 --- a/shell/ev-dualscreen.c +++ b/shell/ev-dualscreen.c @@ -130,16 +130,16 @@ ev_dscwindow_presentation_time_cb (EvDSCWindow *ev_dscwindow) 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)); } @@ -255,7 +255,8 @@ ev_dscwindow_set_presentation (EvDSCWindow *ev_dscwindow, "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); } @@ -284,7 +285,8 @@ ev_dscwindow_init (EvDSCWindow *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), @@ -295,16 +297,25 @@ ev_dscwindow_init (EvDSCWindow *ev_dscwindow) 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); @@ -313,7 +324,8 @@ ev_dscwindow_init (EvDSCWindow *ev_dscwindow) 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", -- 2.43.5