[gtksourceviewmm/devel] Some work in SourceCompletionItem.



commit 46abae3d2600a94deb9b19c05b6203f6f75a7a14
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Sun Jan 10 17:52:23 2010 +0100

    Some work in SourceCompletionItem.
    
    * gtksourceview/src/sourcecompletionitem.hg: Fixed typos in
    constructor wrappers, added some conversions and missing includes.

 gtksourceview/src/sourcecompletionitem.hg |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/gtksourceview/src/sourcecompletionitem.hg b/gtksourceview/src/sourcecompletionitem.hg
index fb2ca0f..91503a9 100644
--- a/gtksourceview/src/sourcecompletionitem.hg
+++ b/gtksourceview/src/sourcecompletionitem.hg
@@ -18,6 +18,9 @@
  */
 
 #include <gtksourceviewmm/sourcemarkup.h>
+#include <gtksourceviewmm/sourcecompletionproposal.h>
+
+#include <gtkmm/stock.h>
 
 _DEFS(gtksourceviewmm,gtksourceview)
 _PINCLUDE(glibmm/private/object_p.h)
@@ -31,13 +34,15 @@ class SourceCompletionItem : public Glib::Object
   _CLASS_GOBJECT(SourceCompletionItem, GtkSourceCompletionItem, GTK_SOURCE_COMPLETION_ITEM, Glib::Object, GObject)
   _IMPLEMENTS_INTERFACE(SourceCompletionProposal)
 protected:
+#m4 _CONVERSION(`const Glib::RefPtr<const Gdk::Pixbuf>&',`GdkPixbuf*',`const_cast<GdkPixbuf*>(($3)->gobj())')
+#m4 _CONVERSION(`const SourceMarkup&',`const gchar*',`($3).get_c_str()')
   _WRAP_CTOR(SourceCompletionItem(const Glib::ustring& label, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info), gtk_source_completion_item_new)
-  _WRAP_CTOR(SourceCompletionItem(const SourceMarkup& markup, const Glib::ustring& text const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info), gtk_source_completion_item_new_with_markup)
-  _WRAP_CTOR(SourceCompletionItem(const SourceMarkup& markup, const Glib::ustring& text const Gtk::StockID& stock, const Glib::ustring& info), gtk_source_completion_item_new_from_stock)
+  _WRAP_CTOR(SourceCompletionItem(const SourceMarkup& markup, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info), gtk_source_completion_item_new_with_markup)
+  _WRAP_CTOR(SourceCompletionItem(const SourceMarkup& markup, const Glib::ustring& text, const Gtk::StockID& stock, const Glib::ustring& info), gtk_source_completion_item_new_from_stock)
 public:
-  _WRAP_CTOR(const Glib::ustring& label, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info)
-  _WRAP_CTOR(SourceCompletionItem(const SourceMarkup& markup, const Glib::ustring& text const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info)
-  _WRAP_CTOR(const SourceMarkup& markup, const Glib::ustring& text const Gtk::StockID& stock, const Glib::ustring& info)
+  _WRAP_CREATE(const Glib::ustring& label, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info)
+  _WRAP_CREATE(const SourceMarkup& markup, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info)
+  _WRAP_CREATE(const SourceMarkup& markup, const Glib::ustring& text, const Gtk::StockID& stock, const Glib::ustring& info)
 
   _WRAP_PROPERTY("icon", Glib::RefPtr<Gdk::Pixbuf>)
   _WRAP_PROPERTY("info", Glib::ustring)



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