[gtksourceviewmm] Change SourceGutterRenderer to GutterRenderer.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceviewmm] Change SourceGutterRenderer to GutterRenderer.
- Date: Sun, 27 Mar 2011 14:15:33 +0000 (UTC)
commit 0d247d78b357c9f00b7164f618b7f816815c7f96
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Sun Mar 27 15:42:05 2011 +0200
Change SourceGutterRenderer to GutterRenderer.
* gtksourceview/src/sourcegutterrenderer.[hg|ccg]: Ran source_truncate.pl
on these and renamed them to...
* gtksourceview/src/gutterrenderer.[hg|ccg]: ...these
...sourcegutterrenderer.ccg => gutterrenderer.ccg} | 6 ++--
.../{sourcegutterrenderer.hg => gutterrenderer.hg} | 28 ++++++++++----------
2 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/gtksourceview/src/sourcegutterrenderer.ccg b/gtksourceview/src/gutterrenderer.ccg
similarity index 88%
rename from gtksourceview/src/sourcegutterrenderer.ccg
rename to gtksourceview/src/gutterrenderer.ccg
index b283e53..f45fb04 100644
--- a/gtksourceview/src/sourcegutterrenderer.ccg
+++ b/gtksourceview/src/gutterrenderer.ccg
@@ -1,6 +1,6 @@
-/* sourcegutterrenderer.cc
+/* gutterrenderer.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,7 +22,7 @@
namespace Gsv
{
-bool SourceGutterRenderer::is_background_set() const
+bool GutterRenderer::is_background_set() const
{
return gtk_source_gutter_renderer_get_background(const_cast<GtkSourceGutterRenderer*>(gobj()), 0);
}
diff --git a/gtksourceview/src/sourcegutterrenderer.hg b/gtksourceview/src/gutterrenderer.hg
similarity index 86%
rename from gtksourceview/src/sourcegutterrenderer.hg
rename to gtksourceview/src/gutterrenderer.hg
index 95391d1..fa9a6e9 100644
--- a/gtksourceview/src/sourcegutterrenderer.hg
+++ b/gtksourceview/src/gutterrenderer.hg
@@ -1,6 +1,6 @@
-/* sourcegutterrenderer.h
+/* gutterrenderer.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 SourceGutterRenderer class
+/// \brief GutterRenderer class
#include <gtkmm/object.h>
#include <gtkmm/tooltip.h>
-#include <gtksourceviewmm/sourceview.h>
+#include <gtksourceviewmm/view.h>
_DEFS(gtksourceviewmm,gtksourceview)
_PINCLUDE(gtkmm/private/object_p.h)
@@ -30,14 +30,14 @@ _PINCLUDE(gtkmm/private/object_p.h)
namespace Gsv
{
-_WRAP_ENUM(SourceGutterRendererState, GtkSourceGutterRendererState)
+_WRAP_ENUM(GutterRendererState, GtkSourceGutterRendererState, s#^SOURCE_##)
-_WRAP_ENUM(SourceGutterRendererAlignmentMode, GtkSourceGutterRendererAlignmentMode)
+_WRAP_ENUM(GutterRendererAlignmentMode, GtkSourceGutterRendererAlignmentMode, s#^SOURCE_##)
// TODO: write docs.
-class SourceGutterRenderer : public Gtk::Object
+class GutterRenderer : public Gtk::Object
{
- _CLASS_GTKOBJECT(SourceGutterRenderer, GtkSourceGutterRenderer, GTK_SOURCE_GUTTER_RENDERER, Gtk::Object, GInitiallyUnowned)
+ _CLASS_GTKOBJECT(GutterRenderer, GtkSourceGutterRenderer, GTK_SOURCE_GUTTER_RENDERER, Gtk::Object, GInitiallyUnowned)
public:
#m4 _CONVERSION(`const Cairo::RefPtr<Cairo::Context>&', `cairo_t*', `(($3) ? ($3)->cobj() : 0)')
#m4 _CONVERSION(`Gtk::TextIter&',`GtkTextIter*',($3).gobj())
@@ -54,7 +54,7 @@ public:
const Gdk::Rectangle& cell_area,
Gtk::TextIter& start,
Gtk::TextIter& end,
- SourceGutterRendererState), gtk_source_gutter_renderer_draw)
+ GutterRendererState), gtk_source_gutter_renderer_draw)
_WRAP_METHOD(void end(), gtk_source_gutter_renderer_end)
@@ -78,9 +78,9 @@ public:
_WRAP_METHOD(void set_alignment(float xalign, float yalign), gtk_source_gutter_renderer_set_alignment)
- _WRAP_METHOD(SourceGutterRendererAlignmentMode get_alignment_mode() const, gtk_source_gutter_renderer_get_alignment_mode)
+ _WRAP_METHOD(GutterRendererAlignmentMode get_alignment_mode() const, gtk_source_gutter_renderer_get_alignment_mode)
- _WRAP_METHOD(void set_alignment_mode(SourceGutterRendererAlignmentMode mode), gtk_source_gutter_renderer_set_alignment_mode)
+ _WRAP_METHOD(void set_alignment_mode(GutterRendererAlignmentMode mode), gtk_source_gutter_renderer_set_alignment_mode)
_WRAP_METHOD(Gtk::TextWindowType get_window_type() const, gtk_source_gutter_renderer_get_window_type)
@@ -109,7 +109,7 @@ public:
_WRAP_PROPERTY("xalign", float)
_WRAP_PROPERTY("yalign", float)
_WRAP_PROPERTY("view", Gtk::TextView*)
- _WRAP_PROPERTY("alignment-mode", SourceGutterRendererAlignmentMode)
+ _WRAP_PROPERTY("alignment-mode", GutterRendererAlignmentMode)
_WRAP_PROPERTY("window-type", Gtk::TextWindowType)
_WRAP_PROPERTY("size", int)
_WRAP_PROPERTY("background-rgba", Gdk::RGBA)
@@ -135,7 +135,7 @@ public:
_WRAP_SIGNAL(void query_data(const Gtk::TextIter& start,
const Gtk::TextIter& end,
- SourceGutterRendererState state), "query-data")
+ GutterRendererState state), "query-data")
_WRAP_SIGNAL(bool query_activatable(const Gtk::TextIter& iter,
const Gdk::Rectangle& area,
@@ -158,7 +158,7 @@ protected:
const Gdk::Rectangle& cell_area,
Gtk::TextIter& start,
Gtk::TextIter& end,
- SourceGutterRendererState), draw)
+ GutterRendererState), draw)
_WRAP_VFUNC(void end(), end)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]