diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-10-20 22:08:05 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-10-20 22:08:05 +0200 |
commit | 60ce618ae2365e9215686785b75f3071ce7ab12c (patch) | |
tree | 37b72f3c0902f97cbc8497ce115b0f1fb81a42a3 /src/slide_window.c | |
parent | 432e445204bc8e9f3d4e71c36d271ed0b51f1d44 (diff) |
Logical size stuff
Diffstat (limited to 'src/slide_window.c')
-rw-r--r-- | src/slide_window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slide_window.c b/src/slide_window.c index 380ed2e..febbe43 100644 --- a/src/slide_window.c +++ b/src/slide_window.c @@ -601,7 +601,7 @@ SlideWindow *slide_window_open(struct presentation *p, GApplication *app) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_add(GTK_CONTAINER(window), vbox); - sw->sceditor = sc_editor_new(sw->cur_slide->scblocks); + sw->sceditor = sc_editor_new(sw->cur_slide->scblocks, p->stylesheet); scroll = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll), GTK_POLICY_AUTOMATIC, @@ -612,6 +612,7 @@ SlideWindow *slide_window_open(struct presentation *p, GApplication *app) /* Size of SCEditor surface in pixels */ /* FIXME: Somewhat arbitrary. Should come from slide itself */ sc_editor_set_size(sw->sceditor, 1024, 768); + sc_editor_set_logical_size(sw->sceditor, 1024.0, 768.0); add_menu_bar(sw, vbox); gtk_box_pack_start(GTK_BOX(vbox), scroll, TRUE, TRUE, 0); |