From b3e192e3afdf498e64141a679e6aa525d6509063 Mon Sep 17 00:00:00 2001 From: Stefano Facchini Date: Sat, 21 Oct 2017 14:38:11 +0200 Subject: panel: remove the "apply_label" API It was used only by the Memory dialog, which can very well add the "Recalculate" button itself. --- src/ui/dialog/memory.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ui/dialog/memory.cpp') 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 #include +#include #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)); -- cgit v1.2.3