Commit d9922c15 authored by Ray Strode's avatar Ray Strode

change naming convention for global variables

Right now global variables start with a g and use
camel case.

Those conventions are inconsistent with the rest of the
coding style which uses underscores and no hungarian
prefixes.

This commit does a giant sed over the codebase with some
manual tweaks to fix it up.
parent 6616e533
......@@ -97,11 +97,11 @@ enum {
/*
* Globals.
*/
static AlphaFunc gAlphaFuncs[EGG_ANIMATION_LAST];
static gboolean gDebug;
static GParamSpec *gParamSpecs[LAST_PROP];
static guint gSignals[LAST_SIGNAL];
static TweenFunc gTweenFuncs[LAST_FUNDAMENTAL];
static AlphaFunc alpha_funcs[EGG_ANIMATION_LAST];
static gboolean debug;
static GParamSpec *properties[LAST_PROP];
static guint signals[LAST_SIGNAL];
static TweenFunc tween_funcs[LAST_FUNDAMENTAL];
/*
......@@ -403,8 +403,8 @@ egg_animation_get_value_at_offset (EggAnimation *animation,
* If you hit the following assertion, you need to add a function
* to create the new value at the given offset.
*/
g_assert (gTweenFuncs[value->g_type]);
gTweenFuncs[value->g_type](&tween->begin, &tween->end, value, offset);
g_assert (tween_funcs[value->g_type]);
tween_funcs[value->g_type](&tween->begin, &tween->end, value, offset);
}
else
{
......@@ -464,7 +464,7 @@ egg_animation_tick (EggAnimation *animation,
if (offset == animation->last_offset)
return offset < 1.0;
alpha = gAlphaFuncs[animation->mode](offset);
alpha = alpha_funcs[animation->mode](offset);
/*
* Update property values.
......@@ -494,7 +494,7 @@ egg_animation_tick (EggAnimation *animation,
/*
* Notify anyone interested in the tick signal.
*/
g_signal_emit (animation, gSignals[TICK], 0);
g_signal_emit (animation, signals[TICK], 0);
/*
* Flush any outstanding events to the graphics server (in the case of X).
......@@ -829,7 +829,7 @@ egg_animation_class_init (EggAnimationClass *klass)
{
GObjectClass *object_class;
gDebug = !!g_getenv ("EGG_ANIMATION_DEBUG");
debug = !!g_getenv ("EGG_ANIMATION_DEBUG");
object_class = G_OBJECT_CLASS (klass);
object_class->dispose = egg_animation_dispose;
......@@ -842,7 +842,7 @@ egg_animation_class_init (EggAnimationClass *klass)
* The "duration" property is the total number of milliseconds that the
* animation should run before being completed.
*/
gParamSpecs[PROP_DURATION] =
properties[PROP_DURATION] =
g_param_spec_uint ("duration",
"Duration",
"The duration of the animation",
......@@ -853,7 +853,7 @@ egg_animation_class_init (EggAnimationClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
gParamSpecs[PROP_FRAME_CLOCK] =
properties[PROP_FRAME_CLOCK] =
g_param_spec_object ("frame-clock",
"Frame Clock",
"An optional frame-clock to synchronize with.",
......@@ -869,7 +869,7 @@ egg_animation_class_init (EggAnimationClass *klass)
* determine the offset within the animation based on the current
* offset in the animations duration.
*/
gParamSpecs[PROP_MODE] =
properties[PROP_MODE] =
g_param_spec_enum ("mode",
"Mode",
"The animation mode",
......@@ -885,7 +885,7 @@ egg_animation_class_init (EggAnimationClass *klass)
* The "target" property is the #GObject that should have it's properties
* animated.
*/
gParamSpecs[PROP_TARGET] =
properties[PROP_TARGET] =
g_param_spec_object ("target",
"Target",
"The target of the animation",
......@@ -894,14 +894,14 @@ egg_animation_class_init (EggAnimationClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
/**
* EggAnimation::tick:
*
* The "tick" signal is emitted on each frame in the animation.
*/
gSignals[TICK] = g_signal_new ("tick",
signals[TICK] = g_signal_new ("tick",
EGG_TYPE_ANIMATION,
G_SIGNAL_RUN_FIRST,
0,
......@@ -910,7 +910,7 @@ egg_animation_class_init (EggAnimationClass *klass)
0);
#define SET_ALPHA(_T, _t) \
gAlphaFuncs[EGG_ANIMATION_ ## _T] = egg_animation_alpha_ ## _t
alpha_funcs[EGG_ANIMATION_ ## _T] = egg_animation_alpha_ ## _t
SET_ALPHA (LINEAR, linear);
SET_ALPHA (EASE_IN_QUAD, ease_in_quad);
......@@ -922,7 +922,7 @@ egg_animation_class_init (EggAnimationClass *klass)
#define SET_TWEEN(_T, _t) \
G_STMT_START { \
guint idx = G_TYPE_ ## _T; \
gTweenFuncs[idx] = tween_ ## _t; \
tween_funcs[idx] = tween_ ## _t; \
} G_STMT_END
SET_TWEEN (INT, int);
......
......@@ -71,7 +71,7 @@ enum {
LAST_PROP
};
static GParamSpec *gParamSpecs [LAST_PROP];
static GParamSpec *properties [LAST_PROP];
/*#define DEBUG_BINDINGS 1*/
......@@ -340,14 +340,14 @@ egg_binding_group_class_init (EggBindingGroupClass *klass)
*
* The source object used for binding properties.
*/
gParamSpecs [PROP_SOURCE] =
properties [PROP_SOURCE] =
g_param_spec_object ("source",
"Source",
"The source GObject used for binding properties.",
G_TYPE_OBJECT,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
}
static void
......@@ -463,7 +463,7 @@ egg_binding_group_set_source (EggBindingGroup *self,
}
}
g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SOURCE]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SOURCE]);
}
void
......
......@@ -55,8 +55,8 @@ enum {
LAST_SIGNAL
};
static GParamSpec *gParamSpecs [LAST_PROP];
static guint gSignals [LAST_SIGNAL];
static GParamSpec *properties [LAST_PROP];
static guint signals [LAST_SIGNAL];
static void
egg_search_bar__entry_activate (EggSearchBar *self,
......@@ -65,7 +65,7 @@ egg_search_bar__entry_activate (EggSearchBar *self,
g_assert (EGG_IS_SEARCH_BAR (self));
g_assert (GTK_IS_SEARCH_ENTRY (entry));
g_signal_emit (self, gSignals [ACTIVATE], 0);
g_signal_emit (self, signals [ACTIVATE], 0);
}
static gboolean
......@@ -295,29 +295,29 @@ egg_search_bar_class_init (EggSearchBarClass *klass)
widget_class->hierarchy_changed = egg_search_bar_hierarchy_changed;
gParamSpecs [PROP_SEARCH_MODE_ENABLED] =
properties [PROP_SEARCH_MODE_ENABLED] =
g_param_spec_boolean ("search-mode-enabled",
"Search Mode Enabled",
"Search Mode Enabled",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_SHOW_CLOSE_BUTTON] =
properties [PROP_SHOW_CLOSE_BUTTON] =
g_param_spec_boolean ("show-close-button",
"Show Close Button",
"Show Close Button",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
gSignals [ACTIVATE] =
signals [ACTIVATE] =
g_signal_new ("activate",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
0, NULL, NULL, NULL, G_TYPE_NONE, 0);
gSignals [REVEAL] =
signals [REVEAL] =
g_signal_new_class_handler ("reveal",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
......@@ -437,7 +437,7 @@ egg_search_bar_set_search_mode_enabled (EggSearchBar *self,
if (search_mode_enabled)
gtk_widget_grab_focus (GTK_WIDGET (priv->entry));
g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SEARCH_MODE_ENABLED]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SEARCH_MODE_ENABLED]);
}
}
......@@ -460,7 +460,7 @@ egg_search_bar_set_show_close_button (EggSearchBar *self,
g_return_if_fail (EGG_IS_SEARCH_BAR (self));
gtk_widget_set_visible (GTK_WIDGET (priv->close_button), show_close_button);
g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SHOW_CLOSE_BUTTON]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_CLOSE_BUTTON]);
}
/**
......
......@@ -49,7 +49,7 @@ enum {
PROP_PARAMETER_TYPE,
};
static GParamSpec *gParamSpecs [LAST_PROP];
static GParamSpec *properties [LAST_PROP];
/**
* egg_settings_flag_action_new:
......@@ -168,28 +168,28 @@ egg_settings_flag_action_class_init (EggSettingsFlagActionClass *klass)
g_object_class_override_property (object_class, PROP_PARAMETER_TYPE, "parameter-type");
g_object_class_override_property (object_class, PROP_ENABLED, "enabled");
gParamSpecs [PROP_SCHEMA_ID] =
properties [PROP_SCHEMA_ID] =
g_param_spec_string ("schema-id",
"Schema Id",
"Schema Id",
NULL,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_SCHEMA_KEY] =
properties [PROP_SCHEMA_KEY] =
g_param_spec_string ("schema-key",
"Schema Key",
"Schema Key",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_FLAG_NICK] =
properties [PROP_FLAG_NICK] =
g_param_spec_string ("flag-nick",
"Flag Nick",
"Flag Nick",
NULL,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
}
static void
......
......@@ -43,7 +43,7 @@ enum {
LAST_PROP
};
static GParamSpec *gParamSpecs [LAST_PROP];
static GParamSpec *properties [LAST_PROP];
static GSettings *
egg_settings_sandwich_get_primary_settings (EggSettingsSandwich *self)
......@@ -214,21 +214,21 @@ egg_settings_sandwich_class_init (EggSettingsSandwichClass *klass)
object_class->get_property = egg_settings_sandwich_get_property;
object_class->set_property = egg_settings_sandwich_set_property;
gParamSpecs [PROP_SCHEMA_ID] =
properties [PROP_SCHEMA_ID] =
g_param_spec_string ("schema-id",
"Schema Id",
"Schema Id",
NULL,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_PATH] =
properties [PROP_PATH] =
g_param_spec_string ("path",
"Settings Path",
"Settings Path",
NULL,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
}
static void
......
......@@ -94,8 +94,8 @@ enum {
LAST_SIGNAL
};
static GParamSpec *gParamSpecs [LAST_PROP];
static guint gSignals [LAST_SIGNAL];
static GParamSpec *properties [LAST_PROP];
static guint signals [LAST_SIGNAL];
static void
egg_signal_group_set_target_type (EggSignalGroup *self,
......@@ -134,8 +134,8 @@ egg_signal_group__target_weak_notify (gpointer data,
self->target = NULL;
g_signal_emit (self, gSignals [UNBIND], 0);
g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_TARGET]);
g_signal_emit (self, signals [UNBIND], 0);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TARGET]);
}
static void
......@@ -218,7 +218,7 @@ egg_signal_group_bind (EggSignalGroup *self,
egg_signal_group_bind_handler (self, handler);
}
g_signal_emit (self, gSignals [BIND], 0, target);
g_signal_emit (self, signals [BIND], 0, target);
g_object_unref (target);
}
......@@ -258,7 +258,7 @@ egg_signal_group_unbind (EggSignalGroup *self)
g_signal_handler_disconnect (target, handler_id);
}
g_signal_emit (self, gSignals [UNBIND], 0);
g_signal_emit (self, signals [UNBIND], 0);
}
static gboolean
......@@ -400,7 +400,7 @@ egg_signal_group_set_target (EggSignalGroup *self,
egg_signal_group_unbind (self);
egg_signal_group_bind (self, target);
g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_TARGET]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TARGET]);
}
static void
......@@ -506,7 +506,7 @@ egg_signal_group_class_init (EggSignalGroupClass *klass)
*
* The target instance used when connecting signals.
*/
gParamSpecs [PROP_TARGET] =
properties [PROP_TARGET] =
g_param_spec_object ("target",
"Target",
"The target instance used when connecting signals.",
......@@ -518,14 +518,14 @@ egg_signal_group_class_init (EggSignalGroupClass *klass)
*
* The GType of the target property.
*/
gParamSpecs [PROP_TARGET_TYPE] =
properties [PROP_TARGET_TYPE] =
g_param_spec_gtype ("target-type",
"Target Type",
"The GType of the target property.",
G_TYPE_OBJECT,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
/**
* EggSignalGroup::bind:
......@@ -537,7 +537,7 @@ egg_signal_group_class_init (EggSignalGroupClass *klass)
*
* This signal will only be emitted if the target of @self is non-%NULL.
*/
gSignals [BIND] =
signals [BIND] =
g_signal_new ("bind",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
......@@ -557,7 +557,7 @@ egg_signal_group_class_init (EggSignalGroupClass *klass)
* This signal will only be emitted if the previous target
* of @self is non-%NULL.
*/
gSignals [UNBIND] =
signals [UNBIND] =
g_signal_new ("unbind",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
......
......@@ -46,7 +46,7 @@ enum {
PROP_STATE_TYPE,
};
static GParamSpec *gParamSpecs [LAST_PROP];
static GParamSpec *properties [LAST_PROP];
static gboolean
egg_state_machine_action_get_enabled (GAction *action)
......@@ -220,21 +220,21 @@ egg_state_machine_action_class_init (EggStateMachineActionClass *klass)
object_class->get_property = egg_state_machine_action_get_property;
object_class->set_property = egg_state_machine_action_set_property;
gParamSpecs [PROP_NAME] =
properties [PROP_NAME] =
g_param_spec_string ("name",
"Name",
"The name of the action",
NULL,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_STATE_MACHINE] =
properties [PROP_STATE_MACHINE] =
g_param_spec_object ("state-machine",
"State Machine",
"State Machine",
EGG_TYPE_STATE_MACHINE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
g_object_class_override_property (object_class, PROP_PARAMETER_TYPE, "parameter-type");
g_object_class_override_property (object_class, PROP_ENABLED, "enabled");
......
......@@ -71,7 +71,7 @@ enum {
LAST_PROP
};
static GParamSpec *gParamSpecs [LAST_PROP];
static GParamSpec *properties [LAST_PROP];
static void
egg_state_machine__property_object_weak_notify (gpointer data,
......@@ -341,7 +341,7 @@ egg_state_machine_transition (EggStateMachine *self,
if (new_state && (state_obj = egg_state_machine_get_state_obj (self, new_state)))
egg_state_apply (self, state_obj);
g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_STATE]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_STATE]);
g_object_thaw_notify (G_OBJECT (self));
}
......@@ -430,14 +430,14 @@ egg_state_machine_class_init (EggStateMachineClass *klass)
object_class->get_property = egg_state_machine_get_property;
object_class->set_property = egg_state_machine_set_property;
gParamSpecs [PROP_STATE] =
properties [PROP_STATE] =
g_param_spec_string ("state",
"State",
"The current state of the machine.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
}
static void
......
......@@ -88,7 +88,7 @@ enum {
LAST_PROP
};
static GParamSpec *gParamSpecs [LAST_PROP];
static GParamSpec *properties [LAST_PROP];
static gboolean
evict_source_check (GSource *source)
......@@ -743,43 +743,43 @@ egg_task_cache_class_init (EggTaskCacheClass *klass)
object_class->finalize = egg_task_cache_finalize;
object_class->set_property = egg_task_cache_set_property;
gParamSpecs [PROP_KEY_HASH_FUNC] =
properties [PROP_KEY_HASH_FUNC] =
g_param_spec_pointer ("key-hash-func",
"Key Hash Func",
"Key Hash Func",
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_KEY_EQUAL_FUNC] =
properties [PROP_KEY_EQUAL_FUNC] =
g_param_spec_pointer ("key-equal-func",
"Key Equal Func",
"Key Equal Func",
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_KEY_COPY_FUNC] =
properties [PROP_KEY_COPY_FUNC] =
g_param_spec_pointer ("key-copy-func",
"Key Copy Func",
"Key Copy Func",
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_KEY_DESTROY_FUNC] =
properties [PROP_KEY_DESTROY_FUNC] =
g_param_spec_pointer ("key-destroy-func",
"Key Destroy Func",
"Key Destroy Func",
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_POPULATE_CALLBACK] =
properties [PROP_POPULATE_CALLBACK] =
g_param_spec_pointer ("populate-callback",
"Populate Callback",
"Populate Callback",
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_POPULATE_CALLBACK_DATA] =
properties [PROP_POPULATE_CALLBACK_DATA] =
g_param_spec_pointer ("populate-callback-data",
"Populate Callback Data",
"Populate Callback Data",
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_POPULATE_CALLBACK_DATA_DESTROY] =
properties [PROP_POPULATE_CALLBACK_DATA_DESTROY] =
g_param_spec_pointer ("populate-callback-data-destroy",
"Populate Callback Data Destroy",
"Populate Callback Data Destroy",
......@@ -793,7 +793,7 @@ egg_task_cache_class_init (EggTaskCacheClass *klass)
*
* A value of zero indicates no eviction.
*/
gParamSpecs [PROP_TIME_TO_LIVE] =
properties [PROP_TIME_TO_LIVE] =
g_param_spec_int64 ("time-to-live",
"Time to Live",
"The time to live in milliseconds.",
......@@ -802,19 +802,19 @@ egg_task_cache_class_init (EggTaskCacheClass *klass)
30 * 1000,
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_VALUE_COPY_FUNC] =
properties [PROP_VALUE_COPY_FUNC] =
g_param_spec_pointer ("value-copy-func",
"Value Copy Func",
"Value Copy Func",
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_VALUE_DESTROY_FUNC] =
properties [PROP_VALUE_DESTROY_FUNC] =
g_param_spec_pointer ("value-destroy-func",
"Value Destroy Func",
"Value Destroy Func",
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
}
void
......
......@@ -40,7 +40,7 @@ enum {
LAST_PROP
};
static GParamSpec *gParamSpecs [LAST_PROP];
static GParamSpec *properties [LAST_PROP];
RgColumn *
rg_column_new (const gchar *name,
......@@ -70,7 +70,7 @@ rg_column_set_name (RgColumn *self,
{
g_free (self->name);
self->name = g_strdup (name);
g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_NAME]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_NAME]);
}
}
......@@ -281,21 +281,21 @@ rg_column_class_init (RgColumnClass *klass)
object_class->get_property = rg_column_get_property;
object_class->set_property = rg_column_set_property;
gParamSpecs [PROP_NAME] =
properties [PROP_NAME] =
g_param_spec_string ("name",
"Name",
"The name of the column",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_VALUE_TYPE] =
properties [PROP_VALUE_TYPE] =
g_param_spec_gtype ("value-type",
"Value Type",
"Value Type",
G_TYPE_NONE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
}
static void
......
......@@ -39,7 +39,7 @@ enum {
LAST_PROP
};
static GParamSpec *gParamSpecs[LAST_PROP];
static GParamSpec *properties[LAST_PROP];
static gchar *colors[] = {
"#73d216",
......@@ -157,7 +157,7 @@ rg_cpu_graph_class_init (RgCpuGraphClass *klass)
object_class->get_property = rg_cpu_graph_get_property;
object_class->set_property = rg_cpu_graph_set_property;
gParamSpecs [PROP_TIMESPAN] =
properties [PROP_TIMESPAN] =
g_param_spec_int64 ("timespan",
"Timespan",
"Timespan",
......@@ -165,7 +165,7 @@ rg_cpu_graph_class_init (RgCpuGraphClass *klass)
0,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
gParamSpecs [PROP_MAX_SAMPLES] =
properties [PROP_MAX_SAMPLES] =
g_param_spec_uint ("max-samples",
"Max Samples",
"Max Samples",
......@@ -173,7 +173,7 @@ rg_cpu_graph_class_init (RgCpuGraphClass *klass)
120,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
}
static void
......
......@@ -41,7 +41,7 @@ enum {
LAST_PROP
};
static GParamSpec *gParamSpecs [LAST_PROP];
static GParamSpec *properties [LAST_PROP];
GtkWidget *
rg_graph_new (void)
......@@ -89,7 +89,7 @@ rg_graph_set_table (RgGraph *self,
{
egg_signal_group_set_target (priv->table_signals, table);
gtk_widget_queue_resize (GTK_WIDGET (self));
g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_TABLE]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TABLE]);
}
}
......@@ -367,14 +367,14 @@ rg_graph_class_init (RgGraphClass *klass)
widget_class->draw = rg_graph_draw;
widget_class->size_allocate = rg_graph_size_allocate;
gParamSpecs [PROP_TABLE] =
properties [PROP_TABLE] =
g_param_spec_object ("table",
"Table",
"The data table for the graph.",
RG_TYPE_TABLE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
g_object_class_install_properties (object_class, LAST_PROP, properties);
}
static void
......
......@@ -45,7 +45,7 @@ enum {
LAST_PROP
};
static GParamSpec *gParamSpecs [LAST_PROP];
static GParamSpec *properties [LAST_PROP];
RgLineRenderer *
rg_line_renderer_new (void)
......@@ -245,7 +245,7 @@ rg_line_renderer_class_init (RgLineRendererClass *klass)
object_class->get_property = rg_line_renderer_get_property;
object_class->set_property = rg_line_renderer_set_property;
gParamSpecs [PROP_COLUMN] =
properties [PROP_COLUMN] =
g_param_spec_uint ("column",
"Column",