diff options
-rw-r--r-- | src/slide_window.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/slide_window.c b/src/slide_window.c index 24fee88..33a4fe0 100644 --- a/src/slide_window.c +++ b/src/slide_window.c @@ -344,10 +344,17 @@ SlideWindow *slide_window_open(struct presentation *p, SCBlock *scblocks, gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(scroll)); /* Default size */ - gtk_window_set_default_size(GTK_WINDOW(sw->window), 1024, 768); + gtk_scrolled_window_set_min_content_width(GTK_SCROLLED_WINDOW(scroll), + 1024); + gtk_scrolled_window_set_min_content_height(GTK_SCROLLED_WINDOW(scroll), + 768); gtk_window_set_resizable(GTK_WINDOW(sw->window), TRUE); gtk_widget_show_all(window); + gtk_scrolled_window_set_min_content_width(GTK_SCROLLED_WINDOW(scroll), + 100); + gtk_scrolled_window_set_min_content_height(GTK_SCROLLED_WINDOW(scroll), + 100); return sw; } |