diff options
| author | Stefano Facchini <stefano.facchini@gmail.com> | 2017-10-21 12:38:11 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-01-16 20:46:09 +0000 |
| commit | b3e192e3afdf498e64141a679e6aa525d6509063 (patch) | |
| tree | 2b0980aab11c026bf220155becc3d9fb266d8ef5 /src/ui/dialog/memory.cpp | |
| parent | Remove obsolete build defines (diff) | |
| download | inkscape-b3e192e3afdf498e64141a679e6aa525d6509063.tar.gz inkscape-b3e192e3afdf498e64141a679e6aa525d6509063.zip | |
panel: remove the "apply_label" API
It was used only by the Memory dialog, which can very well add the
"Recalculate" button itself.
Diffstat (limited to 'src/ui/dialog/memory.cpp')
| -rw-r--r-- | src/ui/dialog/memory.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/dialog/memory.cpp b/src/ui/dialog/memory.cpp index 074a6a884..228701dab 100644 --- a/src/ui/dialog/memory.cpp +++ b/src/ui/dialog/memory.cpp @@ -20,6 +20,7 @@ #include <gtkmm/liststore.h> #include <gtkmm/treeview.h> +#include <gtkmm/dialog.h> #include "inkgc/gc-core.h" #include "debug/heap.h" @@ -207,13 +208,15 @@ void Memory::Private::stop_update_task() { } Memory::Memory() - : UI::Widget::Panel ("", "/dialogs/memory", SP_VERB_HELP_MEMORY, _("Recalculate")), + : UI::Widget::Panel ("", "/dialogs/memory", SP_VERB_HELP_MEMORY), _private(*(new Memory::Private())) { _getContents()->pack_start(_private.view); _private.update(); + addResponseButton(_("Recalculate"), Gtk::RESPONSE_APPLY); + show_all_children(); signal_show().connect(sigc::mem_fun(_private, &Private::start_update_task)); |
