[gtkmm] MessageDialog: Deprecate get/set_image() and the property.



commit 5c63235bec5526ee699da941e1ec4ea713102ba7
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Feb 17 14:17:56 2014 +0100

    MessageDialog: Deprecate get/set_image() and the property.
    
    This has been deprecated in GTK+ for the usual (recently)
    unspecified design reasons.

 gtk/src/messagedialog.hg |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/gtk/src/messagedialog.hg b/gtk/src/messagedialog.hg
index 19d9b99..0a39de4 100644
--- a/gtk/src/messagedialog.hg
+++ b/gtk/src/messagedialog.hg
@@ -22,6 +22,11 @@
 _DEFS(gtkmm,gtk)
 _PINCLUDE(gtkmm/private/dialog_p.h)
 
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#undef GTK_DISABLE_DEPRECATED
+#define GDK_DISABLE_DEPRECATION_WARNINGS 1
+#m4 _POP()
+
 namespace Gtk
 {
 
@@ -51,9 +56,9 @@ public:
   MessageDialog(Gtk::Window& parent, const Glib::ustring& message, bool use_markup = false, MessageType type 
= MESSAGE_INFO, ButtonsType buttons = BUTTONS_OK, bool modal = false);
   _IGNORE(gtk_message_dialog_new, gtk_message_dialog_new_with_markup)
 
-  _WRAP_METHOD(void set_image(Widget& image), gtk_message_dialog_set_image)
-  _WRAP_METHOD(Widget* get_image(), gtk_message_dialog_get_image)
-  _WRAP_METHOD(const Widget* get_image() const, gtk_message_dialog_get_image, constversion)
+  _WRAP_METHOD(void set_image(Widget& image), gtk_message_dialog_set_image, deprecated "Use Dialog to create 
dialogs with images.")
+  _WRAP_METHOD(Widget* get_image(), gtk_message_dialog_get_image, deprecated "Use Dialog for dialogs with 
images.")
+  _WRAP_METHOD(const Widget* get_image() const, gtk_message_dialog_get_image, constversion, "Use Dialog for 
dialogs with images.")
 
   _IGNORE(gtk_message_dialog_set_markup)
 
@@ -85,7 +90,7 @@ public:
   _WRAP_PROPERTY("use-markup", bool)
   _WRAP_PROPERTY("secondary-text", Glib::ustring)
   _WRAP_PROPERTY("secondary-use-markup", bool)
-  _WRAP_PROPERTY("image", Widget*)
+  _WRAP_PROPERTY("image", Widget*, deprecated "Use Dialog to create dialogs with images.")
   _WRAP_PROPERTY("message-area", Box*)
 
 };


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