From: joelholdsworth Date: Sat, 22 Mar 2008 18:23:47 +0000 (+0000) Subject: Removed Win32 keep-dialogs-on-top preference, now set permanently to true X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3784fb08ea9073d4a32d18d67a9eb68d66c5a073;p=inkscape.git Removed Win32 keep-dialogs-on-top preference, now set permanently to true --- diff --git a/src/dialogs/dialog-events.cpp b/src/dialogs/dialog-events.cpp index 637f8ef57..3443a6ccb 100644 --- a/src/dialogs/dialog-events.cpp +++ b/src/dialogs/dialog-events.cpp @@ -157,11 +157,8 @@ sp_transientize (GtkWidget *dialog) gint transient_policy = prefs_get_int_attribute_limited ( "options.transientpolicy", "value", 1, 0, 2 ); -#ifdef WIN32 // FIXME: Temporary Win32 special code to enable transient dialogs - if (prefs_get_int_attribute ( "options.dialogsontopwin32", "value", 0)) - transient_policy = 2; - else - transient_policy = 0; +#ifdef WIN32 // Win32 special code to enable transient dialogs + transient_policy = 2; #endif if (transient_policy) { @@ -186,11 +183,8 @@ sp_transientize_callback ( Inkscape::Application * /*inkscape*/, { gint transient_policy = prefs_get_int_attribute_limited ( "options.transientpolicy", "value", 1, 0, 2); -#ifdef WIN32 // FIXME: Temporary Win32 special code to enable transient dialogs - if (prefs_get_int_attribute ( "options.dialogsontopwin32", "value", 0)) - transient_policy = 2; - else - return; +#ifdef WIN32 // Win32 special code to enable transient dialogs + transient_policy = 2; #endif if (!transient_policy) diff --git a/src/ui/dialog/dock-behavior.cpp b/src/ui/dialog/dock-behavior.cpp index 4f6fe64bc..6f3df89da 100644 --- a/src/ui/dialog/dock-behavior.cpp +++ b/src/ui/dialog/dock-behavior.cpp @@ -218,11 +218,8 @@ DockBehavior::onDesktopActivated(SPDesktop *desktop) { gint transient_policy = prefs_get_int_attribute_limited ( "options.transientpolicy", "value", 1, 0, 2); -#ifdef WIN32 // FIXME: Temporary Win32 special code to enable transient dialogs - if (prefs_get_int_attribute ( "options.dialogsontopwin32", "value", 0)) - transient_policy = 2; - else - return; +#ifdef WIN32 // Win32 special code to enable transient dialogs + transient_policy = 2; #endif if (!transient_policy) diff --git a/src/ui/dialog/floating-behavior.cpp b/src/ui/dialog/floating-behavior.cpp index 7e76b5211..f670c6410 100644 --- a/src/ui/dialog/floating-behavior.cpp +++ b/src/ui/dialog/floating-behavior.cpp @@ -97,11 +97,8 @@ FloatingBehavior::onDesktopActivated (SPDesktop *desktop) { gint transient_policy = prefs_get_int_attribute_limited ( "options.transientpolicy", "value", 1, 0, 2); -#ifdef WIN32 // FIXME: Temporary Win32 special code to enable transient dialogs - if (prefs_get_int_attribute ( "options.dialogsontopwin32", "value", 0)) - transient_policy = 2; - else - return; +#ifdef WIN32 // Win32 special code to enable transient dialogs + transient_policy = 2; #endif if (!transient_policy) diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index 7819faf71..5c451e005 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -484,11 +484,6 @@ void InkscapePreferences::initPageWindows() _win_ontop_normal.init ( _("Normal"), "options.transientpolicy", "value", 1, true, &_win_ontop_none); _win_ontop_agressive.init ( _("Aggressive"), "options.transientpolicy", "value", 2, false, &_win_ontop_none); -// FIXME: Temporary Win32 special code to enable transient dialogs -#ifdef WIN32 - _win_ontop_win32.init ( _("Dialogs stay on top (experimental!)"), "options.dialogsontopwin32", "value", false); -#endif - _page_windows.add_group_header( _("Saving window geometry (size and position):")); _page_windows.add_line( false, "", _win_save_geom_off, "", _("Let the window manager determine placement of all windows")); @@ -503,17 +498,15 @@ void InkscapePreferences::initPageWindows() _page_windows.add_line( true, "", _win_floating, "", _("Floating")); - _page_windows.add_group_header( _("Dialogs on top:")); -#ifndef WIN32 // FIXME: Temporary Win32 special code to enable transient dialogs +#ifndef WIN32 // non-Win32 special code to enable transient dialogs + _page_windows.add_group_header( _("Dialogs on top:")); + _page_windows.add_line( true, "", _win_ontop_none, "", _("Dialogs are treated as regular windows")); _page_windows.add_line( true, "", _win_ontop_normal, "", _("Dialogs stay on top of document windows")); _page_windows.add_line( true, "", _win_ontop_agressive, "", _("Same as Normal but may work better with some window managers")); -#else - _page_windows.add_line( false, "", _win_ontop_win32, "", - _("Whether dialogs should stay on top of document windows. Read the ReleaseNotes on this issue! (Rightclick the taskbar button and press 'Restore' to bring back a minimized document window)")); #endif _page_windows.add_group_header( _("Miscellaneous:")); diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h index 08dbcedf9..38ff1fa31 100644 --- a/src/ui/dialog/inkscape-preferences.h +++ b/src/ui/dialog/inkscape-preferences.h @@ -136,11 +136,6 @@ protected: PrefRadioButton _win_save_geom_off, _win_save_geom, _win_save_geom_prefs; PrefCheckButton _win_hide_task, _win_zoom_resize , _win_show_close; -// FIXME: Temporary Win32 special code to enable transient dialogs -#ifdef WIN32 - PrefCheckButton _win_ontop_win32; -#endif - PrefCheckButton _calligrapy_use_abs_size; PrefCheckButton _calligrapy_keep_selected;