[gtkmm] Entry: Deprecate [set|get]_inner_border().



commit b6a19a3d1f64016650fa32add262b4afe56cee00
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date:   Wed Feb 1 13:08:35 2012 -0500

    Entry: Deprecate [set|get]_inner_border().
    
    	* gtk/src/entry.hg: Deprecate the methods because they have been
    	deprecated in gtk+ as well.  Also add #defines so the deprecated C API
    	can continue to be used as is done in Gtk::Widget and other classes.
    	Bug #669190.

 ChangeLog        |    9 +++++++++
 gtk/src/entry.hg |   11 +++++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d12dcbf..2f8f6fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-02-01  Josà Alburquerque  <jaalburquerque gmail com>
+
+	Entry: Deprecate [set|get]_inner_border().
+
+	* gtk/src/entry.hg: Deprecate the methods because they have been
+	deprecated in gtk+ as well.  Also add #defines so the deprecated C API
+	can continue to be used as is done in Gtk::Widget and other classes.
+	Bug #669190.
+
 2012-01-05  Murray Cumming  <murrayc murrayc com>
 
 	Deprecate some methods using Gdk::Color, to fix the build.
diff --git a/gtk/src/entry.hg b/gtk/src/entry.hg
index d53db60..2d1ba72 100644
--- a/gtk/src/entry.hg
+++ b/gtk/src/entry.hg
@@ -32,6 +32,13 @@
 _DEFS(gtkmm,gtk)
 _PINCLUDE(gtkmm/private/widget_p.h)
 
+#m4begin
+_PUSH(SECTION_CC_PRE_INCLUDES)
+#undef GTK_DISABLE_DEPRECATED
+#define GDK_DISABLE_DEPRECATION_WARNINGS 1
+_POP()
+#m4end
+
 namespace Gtk
 {
 
@@ -89,8 +96,8 @@ public:
   _WRAP_METHOD(void set_has_frame(bool setting = true), gtk_entry_set_has_frame)
   _WRAP_METHOD(bool get_has_frame() const, gtk_entry_get_has_frame)
 
-  _WRAP_METHOD(void set_inner_border(const Border& border), gtk_entry_set_inner_border)
-  _WRAP_METHOD(Border get_inner_border() const, gtk_entry_get_inner_border)
+  _WRAP_METHOD(void set_inner_border(const Border& border), gtk_entry_set_inner_border, deprecated "Use the standard border and padding CSS properties instead (through classes like StyleContext and CssProvider).")
+  _WRAP_METHOD(Border get_inner_border() const, gtk_entry_get_inner_border, deprecated "Use the standard border and padding CSS properties instead (through classes like StyleContext and CssProvider).")
 
   _WRAP_METHOD(void set_overwrite_mode(bool overwrite = true), gtk_entry_set_overwrite_mode)
   _WRAP_METHOD(bool get_overwrite_mode() const, gtk_entry_get_overwrite_mode)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]