]> www.fi.muni.cz Git - evince.git/commitdiff
cleanup
authorxbezdick <255993@mail.muni.cz>
Tue, 3 May 2011 21:36:53 +0000 (23:36 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 1 Jun 2011 11:09:22 +0000 (13:09 +0200)
shell/ev-dualscreen.c

index 2332d859f284e55bbd8d3567e94136473555c83e..648a1f2e759b416be8c7920869fbc0ac71556511 100644 (file)
@@ -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",