[gtksourceviewmm] Change SourceGutterRendererText to GutterRendererText.



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

    Change SourceGutterRendererText to GutterRendererText.
    
    * gtksourceview/src/sourcegutterrenderertext.[hg|ccg]: Ran source_truncate.pl
    on these and renamed them to...
    * gtksourceview/src/gutterrenderertext.[hg|ccg]: ...these

 ...tterrenderertext.ccg => gutterrenderertext.ccg} |    8 +++---
 ...gutterrenderertext.hg => gutterrenderertext.hg} |   22 ++++++++++----------
 2 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/gtksourceview/src/sourcegutterrenderertext.ccg b/gtksourceview/src/gutterrenderertext.ccg
similarity index 83%
rename from gtksourceview/src/sourcegutterrenderertext.ccg
rename to gtksourceview/src/gutterrenderertext.ccg
index 3681427..f25e16d 100644
--- a/gtksourceview/src/sourcegutterrenderertext.ccg
+++ b/gtksourceview/src/gutterrenderertext.ccg
@@ -1,6 +1,6 @@
-/* sourcegutterrenderertext.cc
+/* gutterrenderertext.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,14 +22,14 @@
 namespace Gsv
 {
 
-void SourceGutterRendererText::set_text(const SourceMarkup& markup)
+void GutterRendererText::set_text(const Markup& markup)
 {
   const Glib::ustring str(markup.get_string());
 
   gtk_source_gutter_renderer_text_set_markup(gobj(), str.c_str(), str.bytes());
 }
 
-void SourceGutterRendererText::set_text(const Glib::ustring& text)
+void GutterRendererText::set_text(const Glib::ustring& text)
 {
   gtk_source_gutter_renderer_text_set_text(gobj(), text.c_str(), text.bytes());
 }
diff --git a/gtksourceview/src/sourcegutterrenderertext.hg b/gtksourceview/src/gutterrenderertext.hg
similarity index 64%
rename from gtksourceview/src/sourcegutterrenderertext.hg
rename to gtksourceview/src/gutterrenderertext.hg
index 327404f..b87682a 100644
--- a/gtksourceview/src/sourcegutterrenderertext.hg
+++ b/gtksourceview/src/gutterrenderertext.hg
@@ -1,6 +1,6 @@
-/* sourcegutterrenderertext.h
+/* gutterrenderertext.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,33 +18,33 @@
  */
 
 /// \file
-/// \brief SourceGutterRendererText class
+/// \brief GutterRendererText class
 
-#include <gtksourceviewmm/sourcegutterrenderer.h>
-#include <gtksourceviewmm/sourcemarkup.h>
+#include <gtksourceviewmm/gutterrenderer.h>
+#include <gtksourceviewmm/markup.h>
 
 _DEFS(gtksourceviewmm,gtksourceview)
-_PINCLUDE(gtksourceviewmm/private/sourcegutterrenderer_p.h)
+_PINCLUDE(gtksourceviewmm/private/gutterrenderer_p.h)
 
 namespace Gsv
 {
 
 // TODO: write docs.
-class SourceGutterRendererText : public SourceGutterRenderer
+class GutterRendererText : public GutterRenderer
 {
-  _CLASS_GTKOBJECT(SourceGutterRendererText, GtkSourceGutterRendererText, GTK_SOURCE_GUTTER_RENDERER_TEXT, SourceGutterRenderer, GtkSourceGutterRenderer)
+  _CLASS_GTKOBJECT(GutterRendererText, GtkSourceGutterRendererText, GTK_SOURCE_GUTTER_RENDERER_TEXT, GutterRenderer, GtkSourceGutterRenderer)
 public:
   _CTOR_DEFAULT()
 
   // TODO: probably just set_text and set_markup will be better instead of funny overloads.
   _IGNORE(gtk_source_gutter_renderer_text_set_markup)
-  void set_text(const SourceMarkup& markup);
+  void set_text(const Markup& markup);
 
   _IGNORE(gtk_source_gutter_renderer_text_set_text)
   void set_text(const Glib::ustring& text);
 
-#m4 _CONVERSION(`const SourceMarkup&', `const gchar*', `($3).get_c_str()')
-  _WRAP_METHOD(void measure(const SourceMarkup& markup, int& width, int& height), gtk_source_gutter_renderer_text_measure_markup)
+#m4 _CONVERSION(`const Markup&', `const gchar*', `($3).get_c_str()')
+  _WRAP_METHOD(void measure(const Markup& markup, int& width, int& height), gtk_source_gutter_renderer_text_measure_markup)
 
   _WRAP_METHOD(void measure(const Glib::ustring& text, int& width, int& height), gtk_source_gutter_renderer_text_measure)
 



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