summaryrefslogtreecommitdiffstats
path: root/src/ui/widget
diff options
context:
space:
mode:
authorStefano Facchini <stefano.facchini@gmail.com>2017-10-21 12:38:11 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-01-16 20:46:09 +0000
commitb3e192e3afdf498e64141a679e6aa525d6509063 (patch)
tree2b0980aab11c026bf220155becc3d9fb266d8ef5 /src/ui/widget
parentRemove obsolete build defines (diff)
downloadinkscape-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/widget')
-rw-r--r--src/ui/widget/panel.cpp8
-rw-r--r--src/ui/widget/panel.h4
2 files changed, 2 insertions, 10 deletions
diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp
index cc17262af..2d0a75d2b 100644
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
@@ -56,13 +56,12 @@ void Panel::prep() {
}
Panel::Panel(Glib::ustring const &label, gchar const *prefs_path,
- int verb_num, Glib::ustring const &apply_label,
+ int verb_num,
bool menu_desired) :
_prefs_path(prefs_path),
_menu_desired(menu_desired),
_desktop(SP_ACTIVE_DESKTOP),
_label(label),
- _apply_label(apply_label),
_verb_num(verb_num),
_temp_arrow(),
_menu(0),
@@ -543,11 +542,6 @@ int const &Panel::getVerb() const
return _verb_num;
}
-Glib::ustring const &Panel::getApplyLabel() const
-{
- return _apply_label;
-}
-
void Panel::setDesktop(SPDesktop *desktop)
{
_desktop = desktop;
diff --git a/src/ui/widget/panel.h b/src/ui/widget/panel.h
index 06b65dfbc..f90420913 100644
--- a/src/ui/widget/panel.h
+++ b/src/ui/widget/panel.h
@@ -70,7 +70,7 @@ public:
* @param verb_num the dialog verb.
*/
Panel(Glib::ustring const &label = "", gchar const *prefs_path = 0,
- int verb_num = 0, Glib::ustring const &apply_label = "",
+ int verb_num = 0,
bool menu_desired = false);
virtual ~Panel();
@@ -83,7 +83,6 @@ public:
void setLabel(Glib::ustring const &label);
Glib::ustring const &getLabel() const;
int const &getVerb() const;
- Glib::ustring const &getApplyLabel() const;
virtual void setOrientation(SPAnchorType how);
@@ -150,7 +149,6 @@ private:
SPDesktop *_desktop;
Glib::ustring _label;
- Glib::ustring _apply_label;
int _verb_num;
Gtk::HBox _top_bar;