[gtksourceviewmm] Change SourceCompletionItem to CompletionItem.



commit ced703a4ebb09af12515a8c76cc25586e8a3793c
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Sun Mar 27 15:42:05 2011 +0200

    Change SourceCompletionItem to CompletionItem.
    
    * gtksourceview/src/sourcecompletionitem.[hg|ccg]: Ran source_truncate.pl
    on these and renamed them to...
    * gtksourceview/src/completionitem.[hg|ccg]: ...these

 ...sourcecompletionitem.ccg => completionitem.ccg} |   10 +++---
 .../{sourcecompletionitem.hg => completionitem.hg} |   38 ++++++++++----------
 2 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/gtksourceview/src/sourcecompletionitem.ccg b/gtksourceview/src/completionitem.ccg
similarity index 78%
rename from gtksourceview/src/sourcecompletionitem.ccg
rename to gtksourceview/src/completionitem.ccg
index 002ad43..28552e2 100644
--- a/gtksourceview/src/sourcecompletionitem.ccg
+++ b/gtksourceview/src/completionitem.ccg
@@ -1,6 +1,6 @@
-/* sourcecompletionitem.cc
+/* completionitem.cc
  *
- * Copyright (C) 2009, 2010 Krzesimir Nowak
+ * Copyright (C) 2009, 2010, 2011 Krzesimir Nowak
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -22,15 +22,15 @@
 namespace Gsv
 {
 
-SourceCompletionItem::SourceCompletionItem(const Glib::ustring& label, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info) :
+CompletionItem::CompletionItem(const Glib::ustring& label, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info) :
   _CONSTRUCT("label", label.c_str(), "text", text.c_str(), "icon", Glib::unwrap(icon), "info", (info.empty() ? 0 : info.c_str()))
 {}
 
-SourceCompletionItem::SourceCompletionItem(const SourceMarkup& markup, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info) :
+CompletionItem::CompletionItem(const Markup& markup, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info) :
   _CONSTRUCT("markup", markup.get_c_str(), "text", text.c_str(), "icon", Glib::unwrap(icon), "info", (info.empty() ? 0 : info.c_str()))
 {}
 
-SourceCompletionItem::SourceCompletionItem(const Glib::ustring& label, const Glib::ustring& text, const Gtk::StockID& stock, const Glib::ustring& info) :
+CompletionItem::CompletionItem(const Glib::ustring& label, const Glib::ustring& text, const Gtk::StockID& stock, const Glib::ustring& info) :
   _CONSTRUCT("text", text.c_str(), "info", (info.empty() ? 0 : info.c_str()))
 {
   GdkPixbuf* icon;
diff --git a/gtksourceview/src/sourcecompletionitem.hg b/gtksourceview/src/completionitem.hg
similarity index 64%
rename from gtksourceview/src/sourcecompletionitem.hg
rename to gtksourceview/src/completionitem.hg
index 70d61a4..cff61b9 100644
--- a/gtksourceview/src/sourcecompletionitem.hg
+++ b/gtksourceview/src/completionitem.hg
@@ -1,6 +1,6 @@
-/* sourcecompletionitem.h
+/* completionitem.h
  *
- * Copyright (C) 2009, 2010 Krzesimir Nowak
+ * Copyright (C) 2009, 2010, 2011 Krzesimir Nowak
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -17,8 +17,8 @@
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <gtksourceviewmm/sourcemarkup.h>
-#include <gtksourceviewmm/sourcecompletionproposal.h>
+#include <gtksourceviewmm/markup.h>
+#include <gtksourceviewmm/completionproposal.h>
 
 #include <gtkmm/stock.h>
 
@@ -30,23 +30,23 @@ namespace Gsv
 {
 
 // TODO: need docs here. krnowak
-/** SourceCompletionItem
+/** CompletionItem
  *
  * @newin{2,10}
  */
-class SourceCompletionItem
+class CompletionItem
 :
   public Glib::Object,
-  public SourceCompletionProposal
+  public CompletionProposal
 {
-  _CLASS_GOBJECT(SourceCompletionItem, GtkSourceCompletionItem, GTK_SOURCE_COMPLETION_ITEM, Glib::Object, GObject)
-  _IMPLEMENTS_INTERFACE(SourceCompletionProposal)
+  _CLASS_GOBJECT(CompletionItem, GtkSourceCompletionItem, GTK_SOURCE_COMPLETION_ITEM, Glib::Object, GObject)
+  _IMPLEMENTS_INTERFACE(CompletionProposal)
 protected:
-  explicit SourceCompletionItem(const Glib::ustring& label, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info);
-  explicit SourceCompletionItem(const SourceMarkup& markup, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info);
-  explicit SourceCompletionItem(const Glib::ustring& label, const Glib::ustring& text, const Gtk::StockID& stock, const Glib::ustring& info);
+  explicit CompletionItem(const Glib::ustring& label, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info);
+  explicit CompletionItem(const Markup& markup, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info);
+  explicit CompletionItem(const Glib::ustring& label, const Glib::ustring& text, const Gtk::StockID& stock, const Glib::ustring& info);
 public:
-  /** Create a new SourceCompletionItem with label @a label, icon @a icon and
+  /** Create a new CompletionItem with label @a label, icon @a icon and
    *  extra information @a info.
    *;
    * If @a icon is empty, then there will be no icon shown. If @a info is empty,
@@ -57,13 +57,13 @@ public:
    * @param icon The item icon.
    * @param info The item extra information.
    *
-   * @return New SourceCompletionInfo.
+   * @return New CompletionInfo.
    *
    * @newin{2,10}
    */
   _WRAP_CREATE(const Glib::ustring& label, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info)
 
-  /** Create a new SourceCompletionItem with markup label @a markup, icon
+  /** Create a new CompletionItem with markup label @a markup, icon
    *  @a icon and extra information @a info.
    *
    * If @a icon is empty, then there will be no icon shown. If @a info is empty,
@@ -74,13 +74,13 @@ public:
    * @param icon The item icon.
    * @param info The item extra information.
    *
-   * @return New SourceCompletionInfo.
+   * @return New CompletionInfo.
    *
    * @newin{2,10}
    */
-  _WRAP_CREATE(const SourceMarkup& markup, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info)
+  _WRAP_CREATE(const Markup& markup, const Glib::ustring& text, const Glib::RefPtr<const Gdk::Pixbuf>& icon, const Glib::ustring& info)
 
-  /** Creates a new SourceCompletionItem from a stock item.
+  /** Creates a new CompletionItem from a stock item.
    *
    * If @a label is empty, then stock label will be used.
    *
@@ -89,7 +89,7 @@ public:
    * @param stock The stock icon.
    * @param info The item extra information.
    *
-   * @return New SourceCompletionInfo.
+   * @return New CompletionInfo.
    *
    * @newin{2,10}
    */



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