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

index a00338f2f12e8832e0f11d21ca87ccd09d1de04e..8d474aaa4df5b38d47a6a9769bb181965013b127 100644 (file)
@@ -63,7 +63,7 @@ struct _EvDSCWindowPrivate {
        (G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_DSCWINDOW, EvDSCWindowPrivate))
 #define PAGE_CACHE_SIZE 52428800 /* 50MB */
 #define SIDEBAR_DEFAULT_SIZE    300
-#define MAX_PRESENTATION_TIME   1440 /*60*24: ONE DAY*/
+#define MAX_PRESENTATION_TIME   1440 /*60*24 ONE DAY*/
 
 G_DEFINE_TYPE (EvDSCWindow, ev_dscwindow, GTK_TYPE_WINDOW)
 
@@ -176,10 +176,14 @@ ev_dscwindow_notes_interaction (GtkContainer *container, EvDSCWindow *ev_dscwind
                g_free (uri);
                if (error == NULL){
                        ev_dscwindow->priv->notes_model = ev_document_model_new ();
-                       ev_document_model_set_document (ev_dscwindow->priv->notes_model, ev_dscwindow->priv->notes_document);
-                       ev_document_model_set_continuous (ev_dscwindow->priv->notes_model, FALSE);
-                       ev_document_model_set_dual_page (ev_dscwindow->priv->notes_model, FALSE);
-                       ev_document_model_set_sizing_mode (ev_dscwindow->priv->notes_model, EV_SIZING_BEST_FIT);
+                       ev_document_model_set_document (ev_dscwindow->priv->notes_model,
+                                                       ev_dscwindow->priv->notes_document);
+                       ev_document_model_set_continuous (ev_dscwindow->priv->notes_model,
+                                                         FALSE);
+                       ev_document_model_set_dual_page (ev_dscwindow->priv->notes_model,
+                                                        FALSE);
+                       ev_document_model_set_sizing_mode (ev_dscwindow->priv->notes_model,
+                                                          EV_SIZING_BEST_FIT);
                        ev_document_model_set_page (ev_dscwindow->priv->notes_model,
                                ev_document_model_get_page (ev_dscwindow->priv->model));
                        ev_view_set_model(EV_VIEW(ev_dscwindow->priv->notesview),
index 5c8d21306b7451951f69fbcb27046d73ae6b326a..12c7d1be380e14a4629c7d4a8ef89f67398d8318 100644 (file)
@@ -65,8 +65,12 @@ ev_presentation_timer_draw(GtkWidget *timer, cairo_t *cr)
        cairo_stroke (cr);
        if(ev_timer->priv->running && ev_timer->priv->time > 0 && ev_timer->priv->remaining > 0)
        {
-               gdouble progress = ev_presentation_timer_progress (ev_timer->priv->time, ev_timer->priv->remaining)*(allocation.width);
-               cairo_rectangle (cr, allocation.width-progress, 10, (allocation.width-(allocation.width-progress))-10, allocation.height-5);
+               gdouble progress = ev_presentation_timer_progress (ev_timer->priv->time,
+                                                                  ev_timer->priv->remaining)*(allocation.width);
+               cairo_rectangle (cr, allocation.width-progress,
+                                10,
+                                (allocation.width-(allocation.width-progress))-10,
+                                allocation.height-5);
                cairo_stroke_preserve (cr);
                cairo_fill(cr);
        }