[gtkmm] Gtk::IconInfo, Widget: Deprecate API which is deprecated in gtk+



commit 6f50bf0e3673241a39ec0173097b5e97eb38adce
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Sun Jun 21 16:55:55 2015 +0200

    Gtk::IconInfo, Widget: Deprecate API which is deprecated in gtk+
    
    * gtk/src/iconinfo.hg: Deprecate get_builtin_pixbuf().
    * gtk/src/widget.hg: Deprecate drag_begin() without x,y coordinates.

 gtk/src/iconinfo.hg |    6 ++++--
 gtk/src/widget.hg   |    3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gtk/src/iconinfo.hg b/gtk/src/iconinfo.hg
index e24e26e..27c1db5 100644
--- a/gtk/src/iconinfo.hg
+++ b/gtk/src/iconinfo.hg
@@ -66,8 +66,10 @@ public:
   _WRAP_METHOD(int get_base_scale() const, gtk_icon_info_get_base_scale)
 
   _WRAP_METHOD(Glib::ustring get_filename() const, gtk_icon_info_get_filename)
-  _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> get_builtin_pixbuf(), gtk_icon_info_get_builtin_pixbuf, refreturn)
-  _WRAP_METHOD(Glib::RefPtr<const Gdk::Pixbuf> get_builtin_pixbuf() const, gtk_icon_info_get_builtin_pixbuf, 
refreturn, constversion)
+  _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> get_builtin_pixbuf(), gtk_icon_info_get_builtin_pixbuf, refreturn,
+               deprecated "Use Gtk::IconTheme::add_resource_path() instead of builtin icons.")
+  _WRAP_METHOD(Glib::RefPtr<const Gdk::Pixbuf> get_builtin_pixbuf() const, gtk_icon_info_get_builtin_pixbuf, 
refreturn, constversion,
+               deprecated "Use Gtk::IconTheme::add_resource_path() instead of builtin icons.")
   _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> load_icon() const, gtk_icon_info_load_icon, errthrow)
 
  #m4 _CONVERSION(`cairo_surface_t*',`::Cairo::RefPtr< ::Cairo::Surface>',`::Cairo::RefPtr< 
::Cairo::Surface>(new Cairo::Surface($3, true /* do not take reference */))')
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index 94ee364..850937f 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -564,7 +564,8 @@ _DEPRECATE_IFDEF_END
   _WRAP_METHOD(void drag_source_add_uri_targets(), gtk_drag_source_add_uri_targets)
   _WRAP_METHOD(void drag_source_add_image_targets(), gtk_drag_source_add_image_targets)
 
-  _WRAP_METHOD(Glib::RefPtr<Gdk::DragContext> drag_begin(const Glib::RefPtr<TargetList>& targets, 
Gdk::DragAction actions, int button, GdkEvent* event), gtk_drag_begin, refreturn)
+  _WRAP_METHOD(Glib::RefPtr<Gdk::DragContext> drag_begin(const Glib::RefPtr<TargetList>& targets, 
Gdk::DragAction actions, int button, GdkEvent* event), gtk_drag_begin, refreturn,
+               deprecated "Use the drag_begin() that takes x,y coordinates.")
   _WRAP_METHOD(Glib::RefPtr<Gdk::DragContext> drag_begin(const Glib::RefPtr<TargetList>& targets, 
Gdk::DragAction actions, int button, GdkEvent* event, int x, int y), gtk_drag_begin_with_coordinates, 
refreturn)
   _WRAP_METHOD(bool drag_check_threshold(int start_x, int start_y, int current_x, int current_y), 
gtk_drag_check_threshold)
 


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