From: joncruz Date: Sat, 17 Nov 2007 23:58:04 +0000 (+0000) Subject: Prevent CMS button from pinning space used by scrollbars X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7a906f55720b3bbbe2848ebcd846d1593052d17c;p=inkscape.git Prevent CMS button from pinning space used by scrollbars --- diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp index cdfac93f1..79e6fd33c 100644 --- a/src/widgets/desktop-widget.cpp +++ b/src/widgets/desktop-widget.cpp @@ -1023,9 +1023,11 @@ sp_desktop_widget_layout (SPDesktopWidget *dtw) if (prefs_get_int_attribute (fullscreen ? "fullscreen.scrollbars" : "window.scrollbars", "state", 1) == 0) { gtk_widget_hide_all (dtw->hscrollbar); gtk_widget_hide_all (dtw->vscrollbar_box); + gtk_widget_hide_all( dtw->cms_adjust ); } else { gtk_widget_show_all (dtw->hscrollbar); gtk_widget_show_all (dtw->vscrollbar_box); + gtk_widget_show_all( dtw->cms_adjust ); } if (prefs_get_int_attribute (fullscreen ? "fullscreen.rulers" : "window.rulers", "state", 1) == 0) { @@ -1370,10 +1372,12 @@ sp_desktop_widget_toggle_scrollbars (SPDesktopWidget *dtw) if (GTK_WIDGET_VISIBLE (dtw->hscrollbar)) { gtk_widget_hide_all (dtw->hscrollbar); gtk_widget_hide_all (dtw->vscrollbar_box); + gtk_widget_hide_all( dtw->cms_adjust ); prefs_set_int_attribute (dtw->desktop->is_fullscreen() ? "fullscreen.scrollbars" : "window.scrollbars", "state", 0); } else { gtk_widget_show_all (dtw->hscrollbar); gtk_widget_show_all (dtw->vscrollbar_box); + gtk_widget_show_all( dtw->cms_adjust ); prefs_set_int_attribute (dtw->desktop->is_fullscreen() ? "fullscreen.scrollbars" : "window.scrollbars", "state", 1); } }