(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)
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),
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);
}