[gtkmm] Gtk::Scale: Remove calc_digits_()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::Scale: Remove calc_digits_()
- Date: Thu, 20 Jul 2017 17:12:13 +0000 (UTC)
commit f80c7f35d2b8b86ecd6945c45ae02f05345dcf62
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Thu Jul 20 19:04:53 2017 +0200
Gtk::Scale: Remove calc_digits_()
It was once used by the now removed HScale and VScale classes.
Remove unnecessary doxygen comments before _WRAP_PROPERTY().
They duplicate comments that gmmproc adds.
gtk/src/scale.ccg | 16 ----------------
gtk/src/scale.hg | 12 ------------
2 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/gtk/src/scale.ccg b/gtk/src/scale.ccg
index d7e2d83..bbeb665 100644
--- a/gtk/src/scale.ccg
+++ b/gtk/src/scale.ccg
@@ -40,20 +40,4 @@ Scale::Scale(const Glib::RefPtr<Adjustment>& adjustment, Orientation orientation
{
}
-int Scale::calc_digits_(double step) const
-{
- int digits = 0;
-
- //Copied from gtk_[h|v]scale_new_with_range():
- if (fabs (step) >= 1.0 || step == 0.0)
- digits = 0;
- else {
- digits = abs ((int) floor (log10 (fabs (step))));
- if (digits > 5)
- digits = 5;
- }
-
- return digits;
-}
-
} // namespace Gtk
diff --git a/gtk/src/scale.hg b/gtk/src/scale.hg
index f252242..212298d 100644
--- a/gtk/src/scale.hg
+++ b/gtk/src/scale.hg
@@ -106,22 +106,10 @@ dnl// See bug http://bugzilla.gnome.org/show_bug.cgi?id=168747.
#m4end
_WRAP_SIGNAL(Glib::ustring format_value(double value), "format_value")
- /** Number of displayed decimal digits.
- */
_WRAP_PROPERTY("digits", int)
-
- /** Whether to draw the value as a string next to slider.
- */
_WRAP_PROPERTY("draw-value", bool)
-
- /** The position in which the value is displayed.
- */
_WRAP_PROPERTY("value-pos", PositionType)
-
_WRAP_PROPERTY("has-origin", bool)
-
-protected:
- virtual int calc_digits_(double step) const;
};
} //namespace Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]