diff options
| author | Jabiertxo Arraiza Cenoz <jtx@jtx.markerlab.es> | 2018-07-24 18:01:31 +0000 |
|---|---|---|
| committer | Jabiertxo Arraiza Cenoz <jtx@jtx.markerlab.es> | 2018-07-24 18:01:31 +0000 |
| commit | 47c013e4cbec8817025b3d362057e0d6e4616ead (patch) | |
| tree | 8ddb6eb66d17c4c182a2cca5a86fe504e587f132 /src/ui/dialog/inkscape-preferences.cpp | |
| parent | Add themes inkscape folder abailable by the app (diff) | |
| download | inkscape-47c013e4cbec8817025b3d362057e0d6e4616ead.tar.gz inkscape-47c013e4cbec8817025b3d362057e0d6e4616ead.zip | |
Remove pointer
Diffstat (limited to 'src/ui/dialog/inkscape-preferences.cpp')
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index bc940bbe2..d106e7355 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -885,11 +885,9 @@ void InkscapePreferences::initPageUI() _page_theme.add_line(false, _("Secondary toolbar icon size:"), _misc_small_secondary, "", _("Set the size for the icons in secondary toolbars to use (requires restart)"), false); } - Glib::ustring const label = _("Now"); - Glib::ustring const tooltip = _("A bit slow process"); - _apply_theme = new UI::Widget::Button(label, tooltip); - _page_theme.add_line(false, _("Apply theme"), *_apply_theme, "", _("Apply theme"), false); - _apply_theme->signal_clicked().connect(sigc::ptr_fun(sp_ui_reload)); + _apply_theme.init(_("Now (slow)")); + _page_theme.add_line(false, _("Apply theme"), _apply_theme, "", _("Apply theme"), false); + _apply_theme.signal_clicked().connect(sigc::ptr_fun(sp_ui_reload)); this->AddPage(_page_theme, _("Theme"), iter_ui, PREFS_PAGE_UI_THEME); // Windows _win_save_geom.init ( _("Save and restore window geometry for each document"), "/options/savewindowgeometry/value", PREFS_WINDOW_GEOMETRY_FILE, true, nullptr); |
