aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-08-11 23:45:00 +0200
committerThomas White <taw@bitwiz.org.uk>2011-08-11 23:45:00 +0200
commit26fd0b6c2057bd73a65df380a6baa4ee2d67387c (patch)
treeeda6f1d4a081d4da355a5218f88c4f9b34621e41 /src/mainwindow.c
parentaf7eb5322812b47a32ac3c246812fdc870163b6c (diff)
Use layout stuff
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index fe31ad4..7648f5a 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -145,6 +145,16 @@ void notify_slide_changed(struct presentation *p)
}
+void notify_slide_update(struct presentation *p)
+{
+ gdk_window_invalidate_rect(p->drawingarea->window, NULL, FALSE);
+
+ if ( p->slideshow != NULL ) {
+ notify_slideshow_slide_changed(p);
+ }
+}
+
+
static gint add_slide_sig(GtkWidget *widget, struct presentation *p)
{
struct slide *new;
@@ -573,6 +583,32 @@ static void draw_editing_bits(cairo_t *cr, struct presentation *p,
break;
}
+
+ if ( o->le != NULL ) {
+
+ cairo_move_to(cr, o->le->margin_left, -p->border_offs_y);
+ cairo_line_to(cr, o->le->margin_left,
+ p->slide_height+p->border_offs_y);
+
+ cairo_move_to(cr, p->slide_width-o->le->margin_right,
+ -p->border_offs_y);
+ cairo_line_to(cr, p->slide_width-o->le->margin_right,
+ p->slide_height+p->border_offs_y);
+
+ cairo_move_to(cr, -p->border_offs_x, o->le->margin_top);
+ cairo_line_to(cr, p->slide_width+p->border_offs_x,
+ o->le->margin_top);
+
+ cairo_move_to(cr, -p->border_offs_x,
+ p->slide_height-o->le->margin_bottom);
+ cairo_line_to(cr, p->slide_width+p->border_offs_x,
+ p->slide_height-o->le->margin_bottom);
+
+ cairo_set_source_rgb(cr, 0.2, 0.2, 0.2);
+ cairo_set_line_width(cr, 1.0);
+ cairo_stroke(cr);
+
+ }
}