[gtksourceviewmm] Change SourceMarkAttributes to MarkAttributes.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceviewmm] Change SourceMarkAttributes to MarkAttributes.
- Date: Sun, 27 Mar 2011 14:16:03 +0000 (UTC)
commit ecd17a8853bc8b2a5031623b958c4bbe340fda84
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Sun Mar 27 15:42:05 2011 +0200
Change SourceMarkAttributes to MarkAttributes.
* gtksourceview/src/sourcemarkattributes.[hg|ccg]: Ran source_truncate.pl
on these and renamed them to...
* gtksourceview/src/markattributes.[hg|ccg]: ...these
...sourcemarkattributes.ccg => markattributes.ccg} | 10 ++++----
.../{sourcemarkattributes.hg => markattributes.hg} | 24 ++++++++++----------
2 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/gtksourceview/src/sourcemarkattributes.ccg b/gtksourceview/src/markattributes.ccg
similarity index 77%
rename from gtksourceview/src/sourcemarkattributes.ccg
rename to gtksourceview/src/markattributes.ccg
index 97f201e..b3f45c0 100644
--- a/gtksourceview/src/sourcemarkattributes.ccg
+++ b/gtksourceview/src/markattributes.ccg
@@ -1,6 +1,6 @@
-/* sourcemarkattributes.cc
+/* markattributes.cc
*
- * Copyright (C) 2010 Krzesimir Nowak
+ * Copyright (C) 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
@@ -23,14 +23,14 @@
#include <gdkmm/pixbuf.h>
#include <gdkmm/rgba.h>
#include <gtkmm/widget.h>
-#include <gtksourceviewmm/sourcemark.h>
+#include <gtksourceviewmm/mark.h>
namespace Gsv
{
-bool SourceMarkAttributes::is_background_set() const
+bool MarkAttributes::is_background_set() const
{
- return gtk_source_mark_attributes_get_background(const_cast<SourceMarkAttributes*>(this)->gobj(), 0);
+ return gtk_source_mark_attributes_get_background(const_cast<MarkAttributes*>(this)->gobj(), 0);
}
} // namespace Gsv
diff --git a/gtksourceview/src/sourcemarkattributes.hg b/gtksourceview/src/markattributes.hg
similarity index 83%
rename from gtksourceview/src/sourcemarkattributes.hg
rename to gtksourceview/src/markattributes.hg
index 02c44a9..cad6b2b 100644
--- a/gtksourceview/src/sourcemarkattributes.hg
+++ b/gtksourceview/src/markattributes.hg
@@ -1,6 +1,6 @@
-/* sourcemarkattributes.h
+/* markattributes.h
*
- * Copyright (C) 2010 Krzesimir Nowak
+ * Copyright (C) 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
@@ -18,11 +18,11 @@
*/
/// \file
-/// \brief SourceMarkAttributes class
+/// \brief MarkAttributes class
#include <glibmm/object.h>
#include <glibmm/refptr.h>
-//#include <gtksourceviewmm/sourceview.h>
+//#include <gtksourceviewmm/view.h>
_DEFS(gtksourceviewmm,gtksourceview)
_PINCLUDE(glibmm/private/object_p.h)
@@ -52,12 +52,12 @@ class Widget;
namespace Gsv
{
-class SourceMark;
+class Mark;
// TODO: write docs.
-class SourceMarkAttributes : public Glib::Object
+class MarkAttributes : public Glib::Object
{
- _CLASS_GOBJECT(SourceMarkAttributes, GtkSourceMarkAttributes, GTK_SOURCE_MARK_ATTRIBUTES, Glib::Object, GObject)
+ _CLASS_GOBJECT(MarkAttributes, GtkSourceMarkAttributes, GTK_SOURCE_MARK_ATTRIBUTES, Glib::Object, GObject)
protected:
_CTOR_DEFAULT
public:
@@ -93,9 +93,9 @@ public:
_WRAP_METHOD(Glib::RefPtr<const Gdk::Pixbuf> render_icon(Gtk::Widget* widget, int size) const, gtk_source_mark_attributes_render_icon, refreturn)
- _WRAP_METHOD(Glib::ustring get_tooltip_text(const Glib::RefPtr<SourceMark>& mark) const, gtk_source_mark_attributes_get_tooltip_text)
+ _WRAP_METHOD(Glib::ustring get_tooltip_text(const Glib::RefPtr<Mark>& mark) const, gtk_source_mark_attributes_get_tooltip_text)
- _WRAP_METHOD(Glib::ustring get_tooltip_markup(const Glib::RefPtr<SourceMark>& mark) const, gtk_source_mark_attributes_get_tooltip_markup)
+ _WRAP_METHOD(Glib::ustring get_tooltip_markup(const Glib::RefPtr<Mark>& mark) const, gtk_source_mark_attributes_get_tooltip_markup)
_WRAP_PROPERTY("background", Gdk::RGBA)
@@ -107,11 +107,11 @@ public:
_WRAP_PROPERTY("gicon", Glib::RefPtr<Gio::Icon>)
-#m4 _CONVERSION(`GtkSourceMark*',`const Glib::RefPtr<SourceMark>&',`Glib::wrap($3, true)')
+#m4 _CONVERSION(`GtkSourceMark*',`const Glib::RefPtr<Mark>&',`Glib::wrap($3, true)')
#m4 _CONVERSION(`Glib::ustring',`const gchar*',`($3).c_str()')
- _WRAP_SIGNAL(Glib::ustring query_tooltip_text(const Glib::RefPtr<SourceMark>& mark), "query-tooltip-text", no_default_handler)
+ _WRAP_SIGNAL(Glib::ustring query_tooltip_text(const Glib::RefPtr<Mark>& mark), "query-tooltip-text", no_default_handler)
- _WRAP_SIGNAL(Glib::ustring query_tooltip_markup(const Glib::RefPtr<SourceMark>& mark), "query-tooltip-markup", no_default_handler)
+ _WRAP_SIGNAL(Glib::ustring query_tooltip_markup(const Glib::RefPtr<Mark>& mark), "query-tooltip-markup", no_default_handler)
};
} // namespace Gsv
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]