summaryrefslogtreecommitdiff
path: root/src/book-view.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-07-12 11:39:48 +0200
committerJörg Frings-Fürst <debian@jff.email>2019-07-12 11:39:48 +0200
commitd3b3513c5f264d5d9b61f036e40fba818d2279c5 (patch)
tree3d8629fb2541195727c49658bfeed58bebd45318 /src/book-view.vala
parent01618ecd59eb344c087956a2633ec70f0df0d76d (diff)
parentd6e4c86952c77e816571c4bffe48d2ce27f109e8 (diff)
Merge branch 'release/debian/3.32.2.1-1'debian/3.32.2.1-1
Diffstat (limited to 'src/book-view.vala')
-rw-r--r--src/book-view.vala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/book-view.vala b/src/book-view.vala
index 3ffcdf8..782a011 100644
--- a/src/book-view.vala
+++ b/src/book-view.vala
@@ -99,11 +99,12 @@ public class BookView : Gtk.Box
drawing_area.set_size_request (200, 100);
drawing_area.can_focus = true;
drawing_area.events = Gdk.EventMask.POINTER_MOTION_MASK | Gdk.EventMask.BUTTON_PRESS_MASK | Gdk.EventMask.BUTTON_RELEASE_MASK | Gdk.EventMask.FOCUS_CHANGE_MASK | Gdk.EventMask.STRUCTURE_MASK | Gdk.EventMask.SCROLL_MASK;
- pack_start (drawing_area, true, true, 0);
+ drawing_area.vexpand = true;
+ add (drawing_area);
scroll = new Gtk.Scrollbar (Gtk.Orientation.HORIZONTAL, null);
adjustment = scroll.adjustment;
- pack_start (scroll, false, true, 0);
+ add (scroll);
drawing_area.configure_event.connect (configure_cb);
drawing_area.draw.connect (draw_cb);