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.
This commit is contained in:
Přemysl Eric Janouch 2010-12-11 14:26:00 +01:00
parent afacad693d
commit 805089c38f

View File

@ -35,10 +35,10 @@ G_DEFINE_TYPE (LdLuaSymbol, ld_lua_symbol, LD_TYPE_SYMBOL);
static void ld_lua_symbol_finalize (GObject *gobject); static void ld_lua_symbol_finalize (GObject *gobject);
static const gchar *ld_lua_symbol_get_name (LdSymbol *symbol); static const gchar *ld_lua_symbol_real_get_name (LdSymbol *symbol);
static const gchar *ld_lua_symbol_get_human_name (LdSymbol *symbol); static const gchar *ld_lua_symbol_real_get_human_name (LdSymbol *symbol);
static void ld_lua_symbol_get_area (LdSymbol *symbol, LdSymbolArea *area); static void ld_lua_symbol_real_get_area (LdSymbol *symbol, LdSymbolArea *area);
static void ld_lua_symbol_draw (LdSymbol *symbol, cairo_t *cr); static void ld_lua_symbol_real_draw (LdSymbol *symbol, cairo_t *cr);
static void static void
@ -49,10 +49,10 @@ ld_lua_symbol_class_init (LdLuaSymbolClass *klass)
object_class = G_OBJECT_CLASS (klass); object_class = G_OBJECT_CLASS (klass);
object_class->finalize = ld_lua_symbol_finalize; object_class->finalize = ld_lua_symbol_finalize;
klass->parent_class.get_name = ld_lua_symbol_get_name; klass->parent_class.get_name = ld_lua_symbol_real_get_name;
klass->parent_class.get_human_name = ld_lua_symbol_get_human_name; klass->parent_class.get_human_name = ld_lua_symbol_real_get_human_name;
klass->parent_class.get_area = ld_lua_symbol_get_area; klass->parent_class.get_area = ld_lua_symbol_real_get_area;
klass->parent_class.draw = ld_lua_symbol_draw; klass->parent_class.draw = ld_lua_symbol_real_draw;
g_type_class_add_private (klass, sizeof (LdLuaSymbolPrivate)); g_type_class_add_private (klass, sizeof (LdLuaSymbolPrivate));
} }
@ -87,22 +87,22 @@ ld_lua_symbol_finalize (GObject *gobject)
} }
const gchar * static const gchar *
ld_lua_symbol_get_name (LdSymbol *symbol) ld_lua_symbol_real_get_name (LdSymbol *symbol)
{ {
g_return_val_if_fail (LD_IS_LUA_SYMBOL (symbol), NULL); g_return_val_if_fail (LD_IS_LUA_SYMBOL (symbol), NULL);
return LD_LUA_SYMBOL (symbol)->priv->name; return LD_LUA_SYMBOL (symbol)->priv->name;
} }
const gchar * static const gchar *
ld_lua_symbol_get_human_name (LdSymbol *symbol) ld_lua_symbol_real_get_human_name (LdSymbol *symbol)
{ {
g_return_val_if_fail (LD_IS_LUA_SYMBOL (symbol), NULL); g_return_val_if_fail (LD_IS_LUA_SYMBOL (symbol), NULL);
return LD_LUA_SYMBOL (symbol)->priv->human_name; return LD_LUA_SYMBOL (symbol)->priv->human_name;
} }
void static void
ld_lua_symbol_get_area (LdSymbol *symbol, LdSymbolArea *area) ld_lua_symbol_real_get_area (LdSymbol *symbol, LdSymbolArea *area)
{ {
LdLuaSymbol *self; LdLuaSymbol *self;
@ -114,7 +114,7 @@ ld_lua_symbol_get_area (LdSymbol *symbol, LdSymbolArea *area)
} }
static void static void
ld_lua_symbol_draw (LdSymbol *symbol, cairo_t *cr) ld_lua_symbol_real_draw (LdSymbol *symbol, cairo_t *cr)
{ {
LdLuaSymbol *self; LdLuaSymbol *self;