summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2010-12-11 14:26:00 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2010-12-11 14:26:00 +0100
commit805089c38ff4dcac34017c8857f231e5ff8e43f0 (patch)
treeeaf2034ef7f06bb91028bde01e41fda411d06200
parentafacad693d5f137cb78836c5aa306bd2c0afe82d (diff)
downloadlogdiag-805089c38ff4dcac34017c8857f231e5ff8e43f0.tar.gz
logdiag-805089c38ff4dcac34017c8857f231e5ff8e43f0.tar.xz
logdiag-805089c38ff4dcac34017c8857f231e5ff8e43f0.zip
Rename local LdLuaSymbol methods.
Use a "real" prefix, as GTK+ does. Also make the implementations of virtual functions really static, as they prototypes were telling.
-rw-r--r--src/ld-lua-symbol.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/ld-lua-symbol.c b/src/ld-lua-symbol.c
index 5944c65..f7e37a4 100644
--- a/src/ld-lua-symbol.c
+++ b/src/ld-lua-symbol.c
@@ -35,10 +35,10 @@ G_DEFINE_TYPE (LdLuaSymbol, ld_lua_symbol, LD_TYPE_SYMBOL);
static void ld_lua_symbol_finalize (GObject *gobject);
-static const gchar *ld_lua_symbol_get_name (LdSymbol *symbol);
-static const gchar *ld_lua_symbol_get_human_name (LdSymbol *symbol);
-static void ld_lua_symbol_get_area (LdSymbol *symbol, LdSymbolArea *area);
-static void ld_lua_symbol_draw (LdSymbol *symbol, cairo_t *cr);
+static const gchar *ld_lua_symbol_real_get_name (LdSymbol *symbol);
+static const gchar *ld_lua_symbol_real_get_human_name (LdSymbol *symbol);
+static void ld_lua_symbol_real_get_area (LdSymbol *symbol, LdSymbolArea *area);
+static void ld_lua_symbol_real_draw (LdSymbol *symbol, cairo_t *cr);
static void
@@ -49,10 +49,10 @@ ld_lua_symbol_class_init (LdLuaSymbolClass *klass)
object_class = G_OBJECT_CLASS (klass);
object_class->finalize = ld_lua_symbol_finalize;
- klass->parent_class.get_name = ld_lua_symbol_get_name;
- klass->parent_class.get_human_name = ld_lua_symbol_get_human_name;
- klass->parent_class.get_area = ld_lua_symbol_get_area;
- klass->parent_class.draw = ld_lua_symbol_draw;
+ klass->parent_class.get_name = ld_lua_symbol_real_get_name;
+ klass->parent_class.get_human_name = ld_lua_symbol_real_get_human_name;
+ klass->parent_class.get_area = ld_lua_symbol_real_get_area;
+ klass->parent_class.draw = ld_lua_symbol_real_draw;
g_type_class_add_private (klass, sizeof (LdLuaSymbolPrivate));
}
@@ -87,22 +87,22 @@ ld_lua_symbol_finalize (GObject *gobject)
}
-const gchar *
-ld_lua_symbol_get_name (LdSymbol *symbol)
+static const gchar *
+ld_lua_symbol_real_get_name (LdSymbol *symbol)
{
g_return_val_if_fail (LD_IS_LUA_SYMBOL (symbol), NULL);
return LD_LUA_SYMBOL (symbol)->priv->name;
}
-const gchar *
-ld_lua_symbol_get_human_name (LdSymbol *symbol)
+static const gchar *
+ld_lua_symbol_real_get_human_name (LdSymbol *symbol)
{
g_return_val_if_fail (LD_IS_LUA_SYMBOL (symbol), NULL);
return LD_LUA_SYMBOL (symbol)->priv->human_name;
}
-void
-ld_lua_symbol_get_area (LdSymbol *symbol, LdSymbolArea *area)
+static void
+ld_lua_symbol_real_get_area (LdSymbol *symbol, LdSymbolArea *area)
{
LdLuaSymbol *self;
@@ -114,7 +114,7 @@ ld_lua_symbol_get_area (LdSymbol *symbol, LdSymbolArea *area)
}
static void
-ld_lua_symbol_draw (LdSymbol *symbol, cairo_t *cr)
+ld_lua_symbol_real_draw (LdSymbol *symbol, cairo_t *cr)
{
LdLuaSymbol *self;