[gtksourceviewmm] Marked some wrapped methods as constversions.



commit 623e1cb2fcf78b882c6b2cbbb747bbc02dd62b34
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Sat Nov 13 23:26:30 2010 +0100

    Marked some wrapped methods as constversions.
    
    * gtksourceview/src/sourcecompletion.hg:
    * gtksourceview/src/sourcecompletionprovider.hg: Some methods are just const
    versions of other ones. So mark them as such.
    * codegen/m4/convert_gtksourceview.m4: Remove some now unneeded conversions.

 codegen/m4/convert_gtksourceview.m4           |    3 ---
 gtksourceview/src/sourcecompletion.hg         |    4 ++--
 gtksourceview/src/sourcecompletionprovider.hg |    3 ++-
 3 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/codegen/m4/convert_gtksourceview.m4 b/codegen/m4/convert_gtksourceview.m4
index f56cb37..4d2584b 100644
--- a/codegen/m4/convert_gtksourceview.m4
+++ b/codegen/m4/convert_gtksourceview.m4
@@ -36,8 +36,6 @@ _CONVERSION(`const Glib::RefPtr<const SourceCompletionContext>&',`GtkSourceCompl
 
 # GtkSourceCompletionInfo -> Gsv::SourceCompletionInfo
 _CONVERSION(`GtkSourceCompletionInfo*',`SourceCompletionInfo*',`Glib::wrap($3)')
-_CONVERSION(`GtkSourceCompletionInfo*',`const SourceCompletionInfo*',`Glib::wrap($3)')
-_CONVERSION(`GtkSourceCompletionInfo*',`const SourceCompletionInfo&',`(*(Glib::wrap($3)))')
 
 
 # Gsv::SourceCompletionInfo -> GtkSourceCompletionInfo
@@ -99,7 +97,6 @@ _CONVERSION(`const Glib::RefPtr<const SourceUndoManager>&',`GtkSourceUndoManager
 
 # GtkSourceView -> Gsv::SourceView
 _CONVERSION(`GtkSourceView*',`SourceView*',`Glib::wrap($3)')
-_CONVERSION(`GtkSourceView*',`const SourceView*',`Glib::wrap($3)')
 
 
 #
diff --git a/gtksourceview/src/sourcecompletion.hg b/gtksourceview/src/sourcecompletion.hg
index 819f60c..d181695 100644
--- a/gtksourceview/src/sourcecompletion.hg
+++ b/gtksourceview/src/sourcecompletion.hg
@@ -114,7 +114,7 @@ public:
    *
    * @newin{2,10}
    */
-  _WRAP_METHOD(const SourceCompletionInfo* get_info_window() const, gtk_source_completion_get_info_window)
+  _WRAP_METHOD(const SourceCompletionInfo* get_info_window() const, gtk_source_completion_get_info_window, constversion)
 
   /** Gets the SourceView associated with completion.
    *
@@ -130,7 +130,7 @@ public:
    *
    * @newin{2,10}
    */
-  _WRAP_METHOD(const SourceView* get_view() const, gtk_source_completion_get_view)
+  _WRAP_METHOD(const SourceView* get_view() const, gtk_source_completion_get_view, constversion)
 
   // TODO: Does "The reference being returned is a 'floating' reference, so if you invoke gtk_source_completion_show with this context you don't need to unref it." something mean for us? krnowak
   /** Create a new SourceCompletionContext for completion.
diff --git a/gtksourceview/src/sourcecompletionprovider.hg b/gtksourceview/src/sourcecompletionprovider.hg
index 5fac3f5..d4ed25f 100644
--- a/gtksourceview/src/sourcecompletionprovider.hg
+++ b/gtksourceview/src/sourcecompletionprovider.hg
@@ -115,7 +115,7 @@ public:
    *
    * @newin{2,10}
    */
-  _WRAP_METHOD(const Gtk::Widget* get_info_widget(const Glib::RefPtr<const SourceCompletionProposal>& proposal) const, gtk_source_completion_provider_get_info_widget)
+  _WRAP_METHOD(const Gtk::Widget* get_info_widget(const Glib::RefPtr<const SourceCompletionProposal>& proposal) const, gtk_source_completion_provider_get_info_widget, constversion)
 
   /** Update extra information shown in @a info for @a proposal.
    *
@@ -217,6 +217,7 @@ private:
 #m4 _CONVERSION(`GtkSourceCompletionProposal*', `const Glib::RefPtr<const SourceCompletionProposal>&', `Glib::wrap($3)')
 
 #m4 _CONVERSION(`GtkSourceCompletionProposal*', `const Glib::RefPtr<const SourceCompletionProposal>&', `Glib::wrap($3, true)')
+#m4 _CONVERSION(`GtkSourceCompletionInfo*',`const SourceCompletionInfo&',`(*(Glib::wrap($3)))')
   _WRAP_VFUNC(void update_info(const Glib::RefPtr<const SourceCompletionProposal>& proposal, const SourceCompletionInfo& info), update_info)
 #m4 _CONVERSION(`GtkSourceCompletionProposal*', `const Glib::RefPtr<const SourceCompletionProposal>&', `Glib::wrap($3)')
 



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