[gtkmm] Gtk::Adjustment: Deprecate changed() and value_changed()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::Adjustment: Deprecate changed() and value_changed()
- Date: Sat, 16 May 2015 08:41:45 +0000 (UTC)
commit 44fc07b73500d89cee5c59bb6b943817b4d4744d
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Sat May 16 10:37:46 2015 +0200
Gtk::Adjustment: Deprecate changed() and value_changed()
* gtk/src/adjustment.hg: Deprecate changed() and value_changed().
The corresponding gtk+ functions have been deprecated.
gtk/src/adjustment.hg | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/gtk/src/adjustment.hg b/gtk/src/adjustment.hg
index c3d5be8..56d2336 100644
--- a/gtk/src/adjustment.hg
+++ b/gtk/src/adjustment.hg
@@ -20,6 +20,10 @@
_DEFS(gtkmm,gtk)
_PINCLUDE(glibmm/private/object_p.h)
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#undef GTK_DISABLE_DEPRECATED
+#define GDK_DISABLE_DEPRECATION_WARNINGS 1
+#m4 _POP()
namespace Gtk
{
@@ -64,15 +68,16 @@ protected:
public:
_WRAP_CREATE(double value, double lower, double upper, double step_increment = 1, double page_increment =
10, double page_size = 0)
- _WRAP_METHOD(void changed(), gtk_adjustment_changed)
- _WRAP_METHOD(void value_changed(), gtk_adjustment_value_changed)
+ _WRAP_METHOD(void changed(), gtk_adjustment_changed,
+ deprecated "GTK+ emits a 'changed' signal itself whenever any of the properties (other than value)
change.")
+ _WRAP_METHOD(void value_changed(), gtk_adjustment_value_changed,
+ deprecated "GTK+ emits a 'value_changed' signal itself whenever the value changes.")
_WRAP_METHOD(void clamp_page(double lower, double upper), gtk_adjustment_clamp_page)
_WRAP_METHOD(void set_value(double value), gtk_adjustment_set_value)
_WRAP_METHOD(double get_value() const, gtk_adjustment_get_value)
-
_WRAP_METHOD(void set_lower(double lower), gtk_adjustment_set_lower)
_WRAP_METHOD(double get_lower() const, gtk_adjustment_get_lower)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]