[gtkmm/gtkmm-2-24: 6/7] Deprecate Ruler.
- From: Murray Cumming <murrayc src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtkmm/gtkmm-2-24: 6/7] Deprecate Ruler.
 
- Date: Thu, 25 Nov 2010 15:48:51 +0000 (UTC)
 
commit 7927124d60378b13fd0fddcd650460e03ca6b854
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Nov 25 12:51:29 2010 +0100
    Deprecate Ruler.
    
    * gtk/src/ruler.hg: Also use #undef to fix the build.
 ChangeLog        |    6 ++++++
 gtk/src/ruler.hg |    8 ++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7bf27b5..db3ff1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-11-25  Murray Cumming  <murrayc murrayc com>
 
+	Deprecate Ruler.
+
+	* gtk/src/ruler.hg: Also use #undef to fix the build.
+
+2010-11-25  Murray Cumming  <murrayc murrayc com>
+
 	Main: Deprecate signal_quit() and signal_run().
 
 	* gtk/src/main.[hg|ccg]: Also use #undef to fix the build.
diff --git a/gtk/src/ruler.hg b/gtk/src/ruler.hg
index 678ed52..a61c8c0 100644
--- a/gtk/src/ruler.hg
+++ b/gtk/src/ruler.hg
@@ -30,6 +30,10 @@ _PINCLUDE(gtkmm/private/widget_p.h)
 #undef GSEAL_ENABLE
 #m4 _POP()
 
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#undef GTK_DISABLE_DEPRECATED
+#m4 _POP()
+
 namespace Gtk
 {
 
@@ -44,10 +48,14 @@ namespace Gtk
  * Gtk::VRuler.  Users should only instantiate those types.
  *
  * @ingroup Widgets
+ *
+ * @deprecated: This has been removed from gtkmm-3.0 because it was unmaintained and too specialized.
+ * There is no replacement other than using the original GtkRuler and Gtk::Ruler source files in your application. 
  */
 class Ruler : public Widget
 {
   _CLASS_GTKOBJECT(Ruler,GtkRuler,GTK_RULER,Gtk::Widget,GtkWidget)
+  _IS_DEPRECATED
 protected:
   _CTOR_DEFAULT
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]