summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefano Facchini <stefano.facchini@gmail.com>2017-10-21 12:48:05 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-01-16 20:48:59 +0000
commit930b19928462479099eaba61cde4a7f6fdc9d332 (patch)
tree2c4462392353d102d4efa8d5d31e6db0fc33d00e /src
parentpanel: remove the "apply_label" API (diff)
downloadinkscape-930b19928462479099eaba61cde4a7f6fdc9d332.tar.gz
inkscape-930b19928462479099eaba61cde4a7f6fdc9d332.zip
Remove the dialog "showclose" option
All the dialogs have a top-right "close" button, so this is now useless.
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp3
-rw-r--r--src/ui/dialog/inkscape-preferences.h1
-rw-r--r--src/ui/dialog/panel-dialog.h13
3 files changed, 0 insertions, 17 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index d23ae5317..8a88043ba 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -731,7 +731,6 @@ void InkscapePreferences::initPageUI()
_win_hide_task.init ( _("Dialogs are hidden in taskbar"), "/options/dialogsskiptaskbar/value", true);
_win_save_viewport.init ( _("Save and restore documents viewport"), "/options/savedocviewport/value", true);
_win_zoom_resize.init ( _("Zoom when window is resized"), "/options/stickyzoom/value", false);
- _win_show_close.init ( _("Show close button on dialogs"), "/dialogs/showclose", false);
_win_ontop_none.init ( C_("Dialog on top", "None"), "/options/transientpolicy/value", 0, false, 0);
_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);
@@ -809,8 +808,6 @@ void InkscapePreferences::initPageUI()
_("Zoom drawing when document window is resized, to keep the same area visible (this is the default which can be changed in any window using the button above the right scrollbar)"));
_page_windows.add_line( true, "", _win_save_viewport, "",
_("Save documents viewport (zoom and panning position). Useful to turn off when sharing version controlled files."));
- _page_windows.add_line( true, "", _win_show_close, "",
- _("Whether dialog windows have a close button (requires restart)"));
this->AddPage(_page_windows, _("Windows"), iter_ui, PREFS_PAGE_UI_WINDOWS);
// Grids
diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h
index 89261cb91..782e96a82 100644
--- a/src/ui/dialog/inkscape-preferences.h
+++ b/src/ui/dialog/inkscape-preferences.h
@@ -254,7 +254,6 @@ protected:
UI::Widget::PrefCheckButton _win_hide_task;
UI::Widget::PrefCheckButton _win_save_viewport;
UI::Widget::PrefCheckButton _win_zoom_resize;
- UI::Widget::PrefCheckButton _win_show_close;
UI::Widget::PrefSpinButton _win_trans_focus; /**< The dialog transparency setting for when the dialog is focused. */
UI::Widget::PrefSpinButton _win_trans_blur; /**< The dialog transparency setting for when the dialog is out of focus. */
UI::Widget::PrefSpinButton _win_trans_time; /**< How much time to go from one transparency setting to another */
diff --git a/src/ui/dialog/panel-dialog.h b/src/ui/dialog/panel-dialog.h
index cd7d07790..60885d81d 100644
--- a/src/ui/dialog/panel-dialog.h
+++ b/src/ui/dialog/panel-dialog.h
@@ -23,7 +23,6 @@
#include "ui/dialog/swatches.h"
#include "ui/dialog/floating-behavior.h"
#include "ui/dialog/dock-behavior.h"
-#include "preferences.h"
#include "inkscape.h"
#include "desktop.h"
@@ -154,12 +153,6 @@ PanelDialog<B>::PanelDialog(Widget::Panel &panel, char const *prefs_path, int co
_document_replaced_connection =
desktop->connectDocumentReplaced(sigc::mem_fun(*this, &PanelDialog::_propagateDocumentReplaced));
- Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- if (prefs->getBool("/dialogs/showclose")) {
- // TODO: make the order of buttons obey the global preference
- panel.addResponseButton(_("_Close"), Gtk::RESPONSE_CLOSE);
- }
-
show_all_children();
}
@@ -199,12 +192,6 @@ PanelDialog<Behavior::FloatingBehavior>::PanelDialog(UI::Widget::Panel &panel, c
_document_replaced_connection =
desktop->connectDocumentReplaced(sigc::mem_fun(*this, &PanelDialog::_propagateDocumentReplaced));
- Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- if (prefs->getBool("/dialogs/showclose")) {
- // TODO: make the order of buttons obey the global preference
- panel.addResponseButton(_("_Close"), Gtk::RESPONSE_CLOSE);
- }
-
show_all_children();
}