diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/preferences-skeleton.h | 1 | ||||
| -rw-r--r-- | src/widgets/toolbox.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/preferences-skeleton.h b/src/preferences-skeleton.h index c334ae31e..dd925490e 100644 --- a/src/preferences-skeleton.h +++ b/src/preferences-skeleton.h @@ -343,6 +343,7 @@ static char const preferences_skeleton[] = " </group>\n" " <group id=\"workarounds\"\n" " colorsontop=\"0\"\n" +" floatallowed=\"0\"\n" " partialdynamic=\"0\"/>\n" " <group id=\"threading\" numthreads=\"1\"/>\n" " </group>\n" diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index c255e087b..b68d8404d 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -992,7 +992,8 @@ static GtkWidget* toolboxNewCommon( GtkWidget* tb, BarId id, GtkPositionType han gtk_widget_set_sensitive(tb, FALSE); GtkWidget *hb = 0; - if ( UXManager::getInstance()->isFloatWindowProblem() ) { + gboolean forceFloatAllowed = Inkscape::Preferences::get()->getBool("/options/workarounds/floatallowed", false); + if ( UXManager::getInstance()->isFloatWindowProblem() && !forceFloatAllowed ) { hb = gtk_event_box_new(); // A simple, neutral container. } else { hb = gtk_handle_box_new(); |
