[gtkmm] Improve the use of _IGNORE.



commit 06c775803302e88f6b64597b127464930c379930
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Tue Sep 18 19:20:36 2012 +0200

    Improve the use of _IGNORE.
    
    * gtk/src/fontselection.hg:
    * gtk/src/targetlist.hg:
    * gtk/src/textview.hg: Correct an _IGNORE.
    * gtk/src/iconview.hg: Remove _IGNORE(gtk_tree_view_get_tooltip_context).
    * gtk/src/treemodelfilter.hg: Remove _IGNORE(gtk_tree_model_filter_new).

 ChangeLog                  |   10 ++++++++++
 gtk/src/fontselection.hg   |    2 +-
 gtk/src/iconview.hg        |    2 --
 gtk/src/targetlist.hg      |    2 +-
 gtk/src/textview.hg        |    2 +-
 gtk/src/treemodelfilter.hg |    4 +++-
 6 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b438836..a4ac60e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-09-18  Kjell Ahlstedt  <kjell ahlstedt bredband net>
+
+	Improve the use of _IGNORE.
+
+	* gtk/src/fontselection.hg:
+	* gtk/src/targetlist.hg:
+	* gtk/src/textview.hg: Correct an _IGNORE.
+	* gtk/src/iconview.hg: Remove _IGNORE(gtk_tree_view_get_tooltip_context).
+	* gtk/src/treemodelfilter.hg: Remove _IGNORE(gtk_tree_model_filter_new).
+
 2012-09-16  Murray Cumming  <murrayc murrayc com>
 
         Widget: Add has_visible_focus().
diff --git a/gtk/src/fontselection.hg b/gtk/src/fontselection.hg
index 21fb820..a48298e 100644
--- a/gtk/src/fontselection.hg
+++ b/gtk/src/fontselection.hg
@@ -105,7 +105,7 @@ class FontSelectionDialog : public Dialog
 {
   _CLASS_GTKOBJECT(FontSelectionDialog,GtkFontSelectionDialog,GTK_FONT_SELECTION_DIALOG,Gtk::Dialog,GtkDialog)
   _IS_DEPRECATED
-  _IGNORE(gtk_font_selection_dialog_get_font)
+  _IGNORE(gtk_font_selection_dialog_get_font_selection)
   _UNMANAGEABLE()
 public:
 
diff --git a/gtk/src/iconview.hg b/gtk/src/iconview.hg
index 76e9c5b..77f82e6 100644
--- a/gtk/src/iconview.hg
+++ b/gtk/src/iconview.hg
@@ -337,8 +337,6 @@ public:
    */
   void set_tooltip_cell(const Glib::RefPtr<Tooltip>& tooltip, const TreeModel::Path& path);
 
-  _IGNORE(gtk_tree_view_get_tooltip_context)
-
   /**
    * @param x: the x coordinate (relative to widget coordinates)
    * @param y: the y coordinate (relative to widget coordinates)
diff --git a/gtk/src/targetlist.hg b/gtk/src/targetlist.hg
index e89d5ed..cebb88d 100644
--- a/gtk/src/targetlist.hg
+++ b/gtk/src/targetlist.hg
@@ -33,7 +33,7 @@ class TargetList
   //GtkTargetList is actually registered as a boxed type, but it has custom
   //reference-counting instead of copy/free functions, so we use it via RefPtr.
   _CLASS_OPAQUE_REFCOUNTED(TargetList, GtkTargetList, NONE, gtk_target_list_ref, gtk_target_list_unref)
-  _IGNORE(gtk_selection_data_copy, gtk_selection_data_free)
+  _IGNORE(gtk_target_list_ref, gtk_target_list_unref)
 public:
   static Glib::RefPtr<Gtk::TargetList> create(const std::vector<TargetEntry>& targets);
 
diff --git a/gtk/src/textview.hg b/gtk/src/textview.hg
index f731d20..9cd880a 100644
--- a/gtk/src/textview.hg
+++ b/gtk/src/textview.hg
@@ -138,7 +138,7 @@ public:
                                             int window_x, int window_y,
                                             int& buffer_x, int& buffer_y) const, gtk_text_view_window_to_buffer_coords)
 
-  _IGNORE(gtk_text_view_get_hadjustment, gtk_tree_view_get_vadjustment) //deprecated
+  _IGNORE(gtk_text_view_get_hadjustment, gtk_text_view_get_vadjustment) //deprecated
 
   _WRAP_METHOD(Glib::RefPtr<Gdk::Window> get_window(TextWindowType win), gtk_text_view_get_window, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const Gdk::Window> get_window(TextWindowType win) const, gtk_text_view_get_window, refreturn, constversion)
diff --git a/gtk/src/treemodelfilter.hg b/gtk/src/treemodelfilter.hg
index c918be4..7202bd2 100644
--- a/gtk/src/treemodelfilter.hg
+++ b/gtk/src/treemodelfilter.hg
@@ -42,7 +42,9 @@ protected:
 
   explicit TreeModelFilter(const Glib::RefPtr<TreeModel>& child_model);
   explicit TreeModelFilter(const Glib::RefPtr<TreeModel>& child_model, const TreeModel::Path& virtual_root);
-  _IGNORE(gtk_tree_model_filter_new)
+  dnl // Don't _IGNORE(gtk_tree_model_filter_new). It's listed in gtk_methods.defs as
+  dnl // a method of GtkTreeModel. Ignoring it would make gmmproc think that this
+  dnl // file wraps GtkTreeModel, and it would list all GtkTreeModel methods as unwrapped.
 
 public:
 



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