From 403a9d702a1f382808e0937dfb149f99fd9bb217 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 20 Feb 2011 12:54:15 +0100 Subject: Disable LdDiagramView scrollbars when not needed. --- src/ld-window-main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/ld-window-main.c b/src/ld-window-main.c index 1c1f7fe..1daf667 100644 --- a/src/ld-window-main.c +++ b/src/ld-window-main.c @@ -251,6 +251,8 @@ ld_window_main_init (LdWindowMain *self) priv->view = LD_DIAGRAM_VIEW (ld_diagram_view_new ()); priv->scrolled_window = gtk_scrolled_window_new (NULL, NULL); + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->scrolled_window), + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add (GTK_CONTAINER (priv->scrolled_window), GTK_WIDGET (priv->view)); -- cgit v1.2.3-70-g09d2