[gnome-builder] change naming convention for global variables
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] change naming convention for global variables
- Date: Wed, 28 Oct 2015 20:24:08 +0000 (UTC)
commit d9922c159b1edfaff185f116cb3e7faa36aa2c6b
Author: Ray Strode <rstrode redhat com>
Date: Wed Oct 28 16:15:46 2015 -0400
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.
contrib/egg/egg-animation.c | 36 +++---
contrib/egg/egg-binding-group.c | 8 +-
contrib/egg/egg-search-bar.c | 20 ++--
contrib/egg/egg-settings-flag-action.c | 10 +-
contrib/egg/egg-settings-sandwich.c | 8 +-
contrib/egg/egg-signal-group.c | 24 ++--
contrib/egg/egg-state-machine-action.c | 8 +-
contrib/egg/egg-state-machine.c | 8 +-
contrib/egg/egg-task-cache.c | 24 ++--
contrib/rg/rg-column.c | 10 +-
contrib/rg/rg-cpu-graph.c | 8 +-
contrib/rg/rg-graph.c | 8 +-
contrib/rg/rg-line-renderer.c | 14 +-
contrib/rg/rg-table.c | 26 ++--
contrib/xml/xml-reader.c | 14 +-
data/snippets/gobject.snippets | 8 +-
libide/doap/ide-doap-person.c | 12 +-
libide/doap/ide-doap.c | 36 +++---
libide/git/ide-git-buffer-change-monitor.c | 18 +-
libide/git/ide-git-remote-callbacks.c | 8 +-
libide/git/ide-git-vcs.c | 12 +-
libide/gsettings/ide-gsettings-file-settings.c | 6 +-
libide/gsettings/ide-language-defaults.c | 30 ++--
libide/ide-back-forward-item.c | 6 +-
libide/ide-back-forward-list.c | 28 ++--
libide/ide-battery-monitor.c | 26 ++--
libide/ide-buffer-change-monitor.c | 12 +-
libide/ide-buffer-manager.c | 54 ++++----
libide/ide-buffer.c | 60 ++++----
libide/ide-build-system.c | 10 +-
libide/ide-completion-results.c | 6 +-
libide/ide-context.c | 38 +++---
libide/ide-device-manager.c | 18 +-
libide/ide-device-provider.c | 10 +-
libide/ide-device.c | 14 +-
libide/ide-diagnostician.c | 8 +-
libide/ide-extension-adapter.c | 20 ++--
libide/ide-extension-set-adapter.c | 30 ++--
libide/ide-file-settings.c | 24 ++--
libide/ide-file.c | 18 +-
libide/ide-highlight-engine.c | 22 ++--
libide/ide-line-change-gutter-renderer.c | 12 +-
libide/ide-object.c | 14 +-
libide/ide-progress.c | 16 +-
libide/ide-project-file.c | 22 ++--
libide/ide-project-info.c | 40 +++---
libide/ide-project-item.c | 8 +-
libide/ide-project-miner.c | 6 +-
libide/ide-project.c | 14 +-
libide/ide-script-manager.c | 6 +-
libide/ide-script.c | 18 +-
libide/ide-search-context.c | 20 ++--
libide/ide-search-result.c | 12 +-
libide/ide-service.c | 6 +-
libide/ide-settings.c | 20 ++--
libide/ide-source-map.c | 12 +-
libide/ide-source-snippet-chunk.c | 24 ++--
libide/ide-source-snippet-completion-item.c | 6 +-
libide/ide-source-snippet-completion-provider.c | 12 +-
libide/ide-source-snippet-context.c | 34 ++--
libide/ide-source-snippet.c | 22 ++--
libide/ide-source-view-capture.c | 6 +-
libide/ide-source-view-mode.c | 6 +-
libide/ide-source-view.c | 186 +++++++++++-----------
libide/ide-symbol-node.c | 10 +-
libide/ide-thread-pool.c | 8 +-
libide/ide.c | 12 +-
libide/theatrics/ide-box-theatric.c | 18 +-
plugins/autotools/ide-autotools-build-system.c | 8 +-
plugins/autotools/ide-autotools-build-task.c | 26 ++--
plugins/autotools/ide-autotools-builder.c | 12 +-
plugins/autotools/ide-autotools-project-miner.c | 8 +-
plugins/autotools/ide-makecache.c | 6 +-
plugins/c-pack/ide-c-format-provider.c | 12 +-
plugins/clang/ide-clang-completion-item.c | 8 +-
plugins/clang/ide-clang-symbol-tree.c | 8 +-
plugins/clang/ide-clang-translation-unit.c | 14 +-
plugins/command-bar/gb-command-bar.c | 6 +-
plugins/command-bar/gb-command-gaction.c | 10 +-
plugins/command-bar/gb-command-provider.c | 26 ++--
plugins/command-bar/gb-command-result.c | 20 ++--
plugins/command-bar/gb-command-vim.c | 12 +-
plugins/command-bar/gb-command.c | 6 +-
plugins/ctags/ide-ctags-builder.c | 6 +-
plugins/ctags/ide-ctags-index.c | 14 +-
plugins/devhelp/gb-devhelp-document.c | 8 +-
plugins/devhelp/gb-devhelp-search-result.c | 6 +-
plugins/devhelp/gb-devhelp-view.c | 6 +-
plugins/fallback/ide-directory-build-system.c | 6 +-
plugins/file-search/gb-file-search-index.c | 8 +-
plugins/file-search/gb-file-search-result.c | 6 +-
plugins/mingw/ide-mingw-device-provider.c | 8 +-
plugins/terminal/gb-terminal-view.c | 8 +-
src/dialogs/gb-new-project-dialog.c | 14 +-
src/dialogs/gb-recent-project-row.c | 14 +-
src/documents/gb-document.c | 20 ++--
src/editor/gb-editor-frame.c | 20 ++--
src/editor/gb-editor-map-bin.c | 14 +-
src/editor/gb-editor-print-operation.c | 6 +-
src/editor/gb-editor-settings-widget.c | 8 +-
src/editor/gb-editor-tweak-widget.c | 10 +-
src/editor/gb-editor-view.c | 14 +-
src/greeter/gb-greeter-pill-box.c | 6 +-
src/greeter/gb-greeter-project-row.c | 18 +-
src/greeter/gb-greeter-window.c | 8 +-
src/keybindings/gb-keybindings.c | 10 +-
src/preferences/gb-preferences-page.c | 8 +-
src/preferences/gb-preferences-switch.c | 18 +-
src/preferences/gb-preferences-window.c | 4 +-
src/project-tree/gb-new-file-popover.c | 18 +-
src/project-tree/gb-project-file.c | 16 +-
src/project-tree/gb-project-tree.c | 8 +-
src/project-tree/gb-rename-file-popover.c | 18 +-
src/scrolledwindow/gb-scrolled-window.c | 12 +-
src/search/gb-search-display-group.c | 26 ++--
src/search/gb-search-display-row.c | 8 +-
src/search/gb-search-display.c | 14 +-
src/shortcuts/gb-accel-label.c | 8 +-
src/shortcuts/gb-shortcuts-dialog.c | 10 +-
src/shortcuts/gb-shortcuts-gesture.c | 14 +-
src/shortcuts/gb-shortcuts-group.c | 6 +-
src/shortcuts/gb-shortcuts-shortcut.c | 12 +-
src/shortcuts/gb-shortcuts-view.c | 8 +-
src/tree/gb-tree-builder.c | 38 +++---
src/tree/gb-tree-node.c | 30 ++--
src/tree/gb-tree.c | 24 ++--
src/util/gb-settings.c | 41 +++---
src/util/gb-simple-popover.c | 38 +++---
src/views/gb-view-stack-actions.c | 6 +-
src/views/gb-view-stack.c | 16 +-
src/views/gb-view.c | 18 +-
src/workbench/gb-workbench.c | 30 ++--
src/workspace/gb-slider.c | 8 +-
src/workspace/gb-workspace-pane.c | 14 +-
src/workspace/gb-workspace.c | 22 ++--
tests/test-egg-signal-group.c | 8 +-
tests/test-egg-state-machine.c | 6 +-
tests/test-ide-ctags.c | 8 +-
tests/test-ide-source-view.c | 150 +++++++++---------
tools/ide-build.c | 88 ++++++------
tools/ide-list-build-flags.c | 32 ++--
tools/ide-list-devices.c | 18 +-
tools/ide-list-diagnostics.c | 26 ++--
tools/ide-list-file-settings.c | 48 +++---
tools/ide-list-files.c | 18 +-
tools/ide-search.c | 48 +++---
146 files changed, 1345 insertions(+), 1348 deletions(-)
---
diff --git a/contrib/egg/egg-animation.c b/contrib/egg/egg-animation.c
index d0d507f..c1780c4 100644
--- a/contrib/egg/egg-animation.c
+++ b/contrib/egg/egg-animation.c
@@ -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);
diff --git a/contrib/egg/egg-binding-group.c b/contrib/egg/egg-binding-group.c
index 7bea670..b9590ae 100644
--- a/contrib/egg/egg-binding-group.c
+++ b/contrib/egg/egg-binding-group.c
@@ -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
diff --git a/contrib/egg/egg-search-bar.c b/contrib/egg/egg-search-bar.c
index 6ca4cac..563eb55 100644
--- a/contrib/egg/egg-search-bar.c
+++ b/contrib/egg/egg-search-bar.c
@@ -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]);
}
/**
diff --git a/contrib/egg/egg-settings-flag-action.c b/contrib/egg/egg-settings-flag-action.c
index 1b191a6..0a9c092 100644
--- a/contrib/egg/egg-settings-flag-action.c
+++ b/contrib/egg/egg-settings-flag-action.c
@@ -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
diff --git a/contrib/egg/egg-settings-sandwich.c b/contrib/egg/egg-settings-sandwich.c
index 5e3d4c9..fe01352 100644
--- a/contrib/egg/egg-settings-sandwich.c
+++ b/contrib/egg/egg-settings-sandwich.c
@@ -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
diff --git a/contrib/egg/egg-signal-group.c b/contrib/egg/egg-signal-group.c
index 25cc93f..2a86f2c 100644
--- a/contrib/egg/egg-signal-group.c
+++ b/contrib/egg/egg-signal-group.c
@@ -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,
diff --git a/contrib/egg/egg-state-machine-action.c b/contrib/egg/egg-state-machine-action.c
index a463e7a..c914cca 100644
--- a/contrib/egg/egg-state-machine-action.c
+++ b/contrib/egg/egg-state-machine-action.c
@@ -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");
diff --git a/contrib/egg/egg-state-machine.c b/contrib/egg/egg-state-machine.c
index 36c2f96..6af6c8c 100644
--- a/contrib/egg/egg-state-machine.c
+++ b/contrib/egg/egg-state-machine.c
@@ -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
diff --git a/contrib/egg/egg-task-cache.c b/contrib/egg/egg-task-cache.c
index d27ef03..af92cdb 100644
--- a/contrib/egg/egg-task-cache.c
+++ b/contrib/egg/egg-task-cache.c
@@ -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
diff --git a/contrib/rg/rg-column.c b/contrib/rg/rg-column.c
index 0af9b9b..feb134a 100644
--- a/contrib/rg/rg-column.c
+++ b/contrib/rg/rg-column.c
@@ -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
diff --git a/contrib/rg/rg-cpu-graph.c b/contrib/rg/rg-cpu-graph.c
index cc89e00..7c3c1cd 100644
--- a/contrib/rg/rg-cpu-graph.c
+++ b/contrib/rg/rg-cpu-graph.c
@@ -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
diff --git a/contrib/rg/rg-graph.c b/contrib/rg/rg-graph.c
index b230351..d7a1aaf 100644
--- a/contrib/rg/rg-graph.c
+++ b/contrib/rg/rg-graph.c
@@ -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
diff --git a/contrib/rg/rg-line-renderer.c b/contrib/rg/rg-line-renderer.c
index fdeb734..3b3fe31 100644
--- a/contrib/rg/rg-line-renderer.c
+++ b/contrib/rg/rg-line-renderer.c
@@ -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",
"Column",
@@ -253,7 +253,7 @@ rg_line_renderer_class_init (RgLineRendererClass *klass)
0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_LINE_WIDTH] =
+ properties [PROP_LINE_WIDTH] =
g_param_spec_double ("line-width",
"Line Width",
"Line Width",
@@ -261,21 +261,21 @@ rg_line_renderer_class_init (RgLineRendererClass *klass)
1.0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_STROKE_COLOR] =
+ properties [PROP_STROKE_COLOR] =
g_param_spec_string ("stroke-color",
"Stroke Color",
"Stroke Color",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_STROKE_COLOR_RGBA] =
+ properties [PROP_STROKE_COLOR_RGBA] =
g_param_spec_boxed ("stroke-color-rgba",
"Stroke Color RGBA",
"Stroke Color RGBA",
GDK_TYPE_RGBA,
(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
@@ -304,7 +304,7 @@ rg_line_renderer_set_stroke_color_rgba (RgLineRenderer *self,
if (!gdk_rgba_equal (rgba, &self->stroke_color))
{
self->stroke_color = *rgba;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_STROKE_COLOR_RGBA]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_STROKE_COLOR_RGBA]);
}
}
diff --git a/contrib/rg/rg-table.c b/contrib/rg/rg-table.c
index 20dc281..d194030 100644
--- a/contrib/rg/rg-table.c
+++ b/contrib/rg/rg-table.c
@@ -57,8 +57,8 @@ enum {
G_DEFINE_TYPE_WITH_PRIVATE (RgTable, rg_table, G_TYPE_OBJECT)
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
gint64
rg_table_get_timespan (RgTable *self)
@@ -81,7 +81,7 @@ rg_table_set_timespan (RgTable *self,
if (timespan != priv->timespan)
{
priv->timespan = timespan;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_TIMESPAN]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TIMESPAN]);
}
}
@@ -96,7 +96,7 @@ rg_table_set_value_max (RgTable *self,
if (priv->value_max != value_max)
{
priv->value_max = value_max;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_VALUE_MAX]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_VALUE_MAX]);
}
}
@@ -111,7 +111,7 @@ rg_table_set_value_min (RgTable *self,
if (priv->value_min != value_min)
{
priv->value_min = value_min;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_VALUE_MIN]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_VALUE_MIN]);
}
}
@@ -172,7 +172,7 @@ rg_table_set_max_samples (RgTable *self,
priv->max_samples = max_samples;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_MAX_SAMPLES]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MAX_SAMPLES]);
}
/**
@@ -212,7 +212,7 @@ rg_table_push (RgTable *self,
priv->last_index = pos;
- g_signal_emit (self, gSignals [CHANGED], 0);
+ g_signal_emit (self, signals [CHANGED], 0);
}
gboolean
@@ -509,7 +509,7 @@ rg_table_class_init (RgTableClass *klass)
object_class->get_property = rg_table_get_property;
object_class->set_property = rg_table_set_property;
- gParamSpecs [PROP_MAX_SAMPLES] =
+ properties [PROP_MAX_SAMPLES] =
g_param_spec_uint ("max-samples",
"Max Samples",
"Max Samples",
@@ -517,7 +517,7 @@ rg_table_class_init (RgTableClass *klass)
120,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_TIMESPAN] =
+ properties [PROP_TIMESPAN] =
g_param_spec_int64 ("timespan",
"Timespan",
"Timespan to visualize, in microseconds.",
@@ -525,7 +525,7 @@ rg_table_class_init (RgTableClass *klass)
G_USEC_PER_SEC * 60L,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_VALUE_MAX] =
+ properties [PROP_VALUE_MAX] =
g_param_spec_double ("value-max",
"Value Max",
"Value Max",
@@ -533,7 +533,7 @@ rg_table_class_init (RgTableClass *klass)
100.0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_VALUE_MIN] =
+ properties [PROP_VALUE_MIN] =
g_param_spec_double ("value-min",
"Value Min",
"Value Min",
@@ -541,9 +541,9 @@ rg_table_class_init (RgTableClass *klass)
100.0,
(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 [CHANGED] = g_signal_new ("changed",
+ signals [CHANGED] = g_signal_new ("changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
diff --git a/contrib/xml/xml-reader.c b/contrib/xml/xml-reader.c
index 1fbb3d5..3e783a7 100644
--- a/contrib/xml/xml-reader.c
+++ b/contrib/xml/xml-reader.c
@@ -59,8 +59,8 @@ enum {
G_DEFINE_QUARK (xml_reader_error, xml_reader_error)
G_DEFINE_TYPE (XmlReader, xml_reader, G_TYPE_OBJECT)
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
#define XML_NODE_TYPE_ELEMENT 1
#define XML_NODE_TYPE_END_ELEMENT 15
@@ -175,23 +175,23 @@ xml_reader_class_init (XmlReaderClass *klass)
object_class->get_property = xml_reader_get_property;
object_class->set_property = xml_reader_set_property;
- gParamSpecs [PROP_ENCODING] =
+ properties [PROP_ENCODING] =
g_param_spec_string ("encoding",
"Encoding",
"Encoding",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_URI] =
+ properties [PROP_URI] =
g_param_spec_string ("uri",
"URI",
"URI",
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);
- gSignals [ERROR] =
+ signals [ERROR] =
g_signal_new ("error",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -223,7 +223,7 @@ xml_reader_error_cb (void *arg,
g_assert (XML_IS_READER (reader));
- g_signal_emit (reader, gSignals [ERROR], 0, msg);
+ g_signal_emit (reader, signals [ERROR], 0, msg);
}
gboolean
diff --git a/data/snippets/gobject.snippets b/data/snippets/gobject.snippets
index 9b009f2..eba4367 100644
--- a/data/snippets/gobject.snippets
+++ b/data/snippets/gobject.snippets
@@ -15,7 +15,7 @@ snippet gobject
LAST_PROP
};
- static GParamSpec *gParamSpecs [LAST_PROP];
+ static GParamSpec *properties [LAST_PROP];
$2 *
$3_new (void)
@@ -162,7 +162,7 @@ snippet gobj_clear
snippet gproperty
- scope c
- desc Add GObject property
- gParamSpecs [PROP_${1:NAME}] =
+ properties [PROP_${1:NAME}] =
g_param_spec_${2:object} ("${3:$1|lower}",
${$2|space} "${4:$3|camelize}",
${$2|space} "${5:$3|camelize}",
@@ -170,11 +170,11 @@ snippet gproperty
${$2|space} (G_PARAM_${7:READWRITE} |
${$2|space} G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, PROP_$1,
- gParamSpecs [PROP_$1]);
+ properties [PROP_$1]);
snippet gsignal
- scope c
- desc Add GObject signal
- gSignals [${$1|functify|upper}] =
+ signals [${$1|functify|upper}] =
g_signal_new ("${1:name}",
G_TYPE_FROM_CLASS (klass),
${2:G_SIGNAL_RUN_LAST},
diff --git a/libide/doap/ide-doap-person.c b/libide/doap/ide-doap-person.c
index 65b8053..ec1b532 100644
--- a/libide/doap/ide-doap-person.c
+++ b/libide/doap/ide-doap-person.c
@@ -38,7 +38,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
IdeDoapPerson *
ide_doap_person_new (void)
@@ -64,7 +64,7 @@ ide_doap_person_set_name (IdeDoapPerson *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]);
}
}
@@ -86,7 +86,7 @@ ide_doap_person_set_email (IdeDoapPerson *self,
{
g_free (self->email);
self->email = g_strdup (email);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_EMAIL]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_EMAIL]);
}
}
@@ -156,21 +156,21 @@ ide_doap_person_class_init (IdeDoapPersonClass *klass)
object_class->get_property = ide_doap_person_get_property;
object_class->set_property = ide_doap_person_set_property;
- gParamSpecs [PROP_EMAIL] =
+ properties [PROP_EMAIL] =
g_param_spec_string ("email",
"Email",
"The email of the person.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_NAME] =
+ properties [PROP_NAME] =
g_param_spec_string ("name",
"Name",
"The name of the person.",
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
diff --git a/libide/doap/ide-doap.c b/libide/doap/ide-doap.c
index d8fb461..c47bc3f 100644
--- a/libide/doap/ide-doap.c
+++ b/libide/doap/ide-doap.c
@@ -61,7 +61,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
IdeDoap *
ide_doap_new (void)
@@ -151,7 +151,7 @@ ide_doap_set_bug_database (IdeDoap *self,
{
g_free (self->bug_database);
self->bug_database = g_strdup (bug_database);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_BUG_DATABASE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_BUG_DATABASE]);
}
}
@@ -165,7 +165,7 @@ ide_doap_set_category (IdeDoap *self,
{
g_free (self->category);
self->category = g_strdup (category);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CATEGORY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CATEGORY]);
}
}
@@ -179,7 +179,7 @@ ide_doap_set_description (IdeDoap *self,
{
g_free (self->description);
self->description = g_strdup (description);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_DESCRIPTION]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DESCRIPTION]);
}
}
@@ -193,7 +193,7 @@ ide_doap_set_download_page (IdeDoap *self,
{
g_free (self->download_page);
self->download_page = g_strdup (download_page);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_DOWNLOAD_PAGE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DOWNLOAD_PAGE]);
}
}
@@ -207,7 +207,7 @@ ide_doap_set_homepage (IdeDoap *self,
{
g_free (self->homepage);
self->homepage = g_strdup (homepage);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_HOMEPAGE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_HOMEPAGE]);
}
}
@@ -221,7 +221,7 @@ ide_doap_set_name (IdeDoap *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]);
}
}
@@ -235,7 +235,7 @@ ide_doap_set_shortdesc (IdeDoap *self,
{
g_free (self->shortdesc);
self->shortdesc = g_strdelimit (g_strdup (shortdesc), "\n", ' ');
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SHORTDESC]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHORTDESC]);
}
}
@@ -272,7 +272,7 @@ ide_doap_add_language (IdeDoap *self,
g_ptr_array_index (self->languages, self->languages->len - 1) = g_strdup (language);
g_ptr_array_add (self->languages, NULL);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_LANGUAGES]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_LANGUAGES]);
}
static void
@@ -415,63 +415,63 @@ ide_doap_class_init (IdeDoapClass *klass)
object_class->get_property = ide_doap_get_property;
object_class->set_property = ide_doap_set_property;
- gParamSpecs [PROP_BUG_DATABASE] =
+ properties [PROP_BUG_DATABASE] =
g_param_spec_string ("bug-database",
"Bug Database",
"Bug Database",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_CATEGORY] =
+ properties [PROP_CATEGORY] =
g_param_spec_string ("category",
"Category",
"Category",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_DESCRIPTION] =
+ properties [PROP_DESCRIPTION] =
g_param_spec_string ("description",
"Description",
"Description",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_DOWNLOAD_PAGE] =
+ properties [PROP_DOWNLOAD_PAGE] =
g_param_spec_string ("download-page",
"Download Page",
"Download Page",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_HOMEPAGE] =
+ properties [PROP_HOMEPAGE] =
g_param_spec_string ("homepage",
"Homepage",
"Homepage",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_LANGUAGES] =
+ properties [PROP_LANGUAGES] =
g_param_spec_string ("languages",
"Languages",
"Languages",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_NAME] =
+ properties [PROP_NAME] =
g_param_spec_string ("name",
"Name",
"Name",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SHORTDESC] =
+ properties [PROP_SHORTDESC] =
g_param_spec_string ("shortdesc",
"Shortdesc",
"Shortdesc",
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
diff --git a/libide/git/ide-git-buffer-change-monitor.c b/libide/git/ide-git-buffer-change-monitor.c
index 8287235..e11cabb 100644
--- a/libide/git/ide-git-buffer-change-monitor.c
+++ b/libide/git/ide-git-buffer-change-monitor.c
@@ -94,9 +94,9 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static GAsyncQueue *gWorkQueue;
-static GThread *gWorkThread;
+static GParamSpec *properties [LAST_PROP];
+static GAsyncQueue *work_queue;
+static GThread *work_thread;
static void
diff_task_free (gpointer data)
@@ -179,7 +179,7 @@ ide_git_buffer_change_monitor_calculate_async (IdeGitBufferChangeMonitor *self,
self->in_calculation = TRUE;
- g_async_queue_push (gWorkQueue, g_object_ref (task));
+ g_async_queue_push (work_queue, g_object_ref (task));
}
static IdeBufferLineChange
@@ -715,19 +715,19 @@ ide_git_buffer_change_monitor_class_init (IdeGitBufferChangeMonitorClass *klass)
parent_class->set_buffer = ide_git_buffer_change_monitor_set_buffer;
parent_class->get_change = ide_git_buffer_change_monitor_get_change;
- gParamSpecs [PROP_REPOSITORY] =
+ properties [PROP_REPOSITORY] =
g_param_spec_object ("repository",
"Repository",
"The repository to use for calculating diffs.",
GGIT_TYPE_REPOSITORY,
(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);
- gWorkQueue = g_async_queue_new ();
- gWorkThread = g_thread_new ("IdeGitBufferChangeMonitorWorker",
+ work_queue = g_async_queue_new ();
+ work_thread = g_thread_new ("IdeGitBufferChangeMonitorWorker",
ide_git_buffer_change_monitor_worker,
- gWorkQueue);
+ work_queue);
}
static void
diff --git a/libide/git/ide-git-remote-callbacks.c b/libide/git/ide-git-remote-callbacks.c
index fa28436..2dd11d0 100644
--- a/libide/git/ide-git-remote-callbacks.c
+++ b/libide/git/ide-git-remote-callbacks.c
@@ -43,7 +43,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
GgitRemoteCallbacks *
ide_git_remote_callbacks_new (void)
@@ -104,7 +104,7 @@ ide_git_remote_callbacks__notify_fraction_cb (gpointer data)
NULL);
ide_set_weak_pointer (&self->animation, animation);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FRACTION]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FRACTION]);
return G_SOURCE_REMOVE;
}
@@ -207,7 +207,7 @@ ide_git_remote_callbacks_class_init (IdeGitRemoteCallbacksClass *klass)
callbacks_class->transfer_progress = ide_git_remote_callbacks_real_transfer_progress;
callbacks_class->credentials = ide_git_remote_callbacks_real_credentials;
- gParamSpecs [PROP_FRACTION] =
+ properties [PROP_FRACTION] =
g_param_spec_double ("fraction",
"Fraction",
"A fraction containing the operation progress.",
@@ -216,7 +216,7 @@ ide_git_remote_callbacks_class_init (IdeGitRemoteCallbacksClass *klass)
0.0,
(G_PARAM_READABLE | 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
diff --git a/libide/git/ide-git-vcs.c b/libide/git/ide-git-vcs.c
index 9045a7d..54f526c 100644
--- a/libide/git/ide-git-vcs.c
+++ b/libide/git/ide-git-vcs.c
@@ -73,8 +73,8 @@ enum {
LAST_SIGNAL
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
/**
* ide_git_vcs_get_repository:
@@ -284,7 +284,7 @@ ide_git_vcs_reload_finish (IdeGitVcs *self,
g_return_val_if_fail (IDE_IS_GIT_VCS (self), FALSE);
self->reloading = FALSE;
- g_signal_emit (self, gSignals [RELOADED], 0, self->change_monitor_repository);
+ g_signal_emit (self, signals [RELOADED], 0, self->change_monitor_repository);
ret = g_task_propagate_boolean (task, error);
IDE_RETURN (ret);
@@ -383,14 +383,14 @@ ide_git_vcs_class_init (IdeGitVcsClass *klass)
* You might want to get the #GgitRepository:location property and create your own instance
* of the repository for threaded operations.
*/
- gParamSpecs [PROP_REPOSITORY] =
+ properties [PROP_REPOSITORY] =
g_param_spec_object ("repository",
"Repository",
"The git repository for the project.",
GGIT_TYPE_REPOSITORY,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
+ g_object_class_install_properties (object_class, LAST_PROP, properties);
/**
* IdeGitVcs::reloaded:
@@ -405,7 +405,7 @@ ide_git_vcs_class_init (IdeGitVcsClass *klass)
* be used directly except in very specific situations. The gutter change renderer uses this
* instance in a threaded manner.
*/
- gSignals [RELOADED] = g_signal_new ("reloaded",
+ signals [RELOADED] = g_signal_new ("reloaded",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
diff --git a/libide/gsettings/ide-gsettings-file-settings.c b/libide/gsettings/ide-gsettings-file-settings.c
index 763584c..51120bc 100644
--- a/libide/gsettings/ide-gsettings-file-settings.c
+++ b/libide/gsettings/ide-gsettings-file-settings.c
@@ -58,7 +58,7 @@ indent_style_get (GValue *value,
return TRUE;
}
-static SettingsMapping gLanguageMappings [] = {
+static SettingsMapping language_mappings [] = {
{ "indent-width", "indent-width", NULL },
{ "insert-spaces-instead-of-tabs", "indent-style", indent_style_get },
{ "right-margin-position", "right-margin-position", NULL },
@@ -97,9 +97,9 @@ file_notify_language_cb (IdeGsettingsFileSettings *self,
"org.gnome.builder.editor.language",
relative_path);
- for (i = 0; i < G_N_ELEMENTS (gLanguageMappings); i++)
+ for (i = 0; i < G_N_ELEMENTS (language_mappings); i++)
{
- SettingsMapping *mapping = &gLanguageMappings [i];
+ SettingsMapping *mapping = &language_mappings [i];
ide_settings_bind_with_mapping (self->language_settings,
mapping->key,
diff --git a/libide/gsettings/ide-language-defaults.c b/libide/gsettings/ide-language-defaults.c
index 832f3ba..b08a11e 100644
--- a/libide/gsettings/ide-language-defaults.c
+++ b/libide/gsettings/ide-language-defaults.c
@@ -28,9 +28,9 @@
#define SCHEMA_ID "org.gnome.builder.editor.language"
#define PATH_BASE "/org/gnome/builder/editor/language/"
-static gboolean gInitialized;
-static gboolean gInitializing;
-static GList *gTasks;
+static gboolean initialized;
+static gboolean initializing;
+static GList *tasks;
G_LOCK_DEFINE (lock);
@@ -320,11 +320,11 @@ ide_language_defaults_init_worker (GTask *task,
G_LOCK (lock);
- gInitializing = FALSE;
- gInitialized = TRUE;
+ initializing = FALSE;
+ initialized = TRUE;
- list = gTasks;
- gTasks = NULL;
+ list = tasks;
+ tasks = NULL;
G_UNLOCK (lock);
@@ -346,11 +346,11 @@ failure:
G_LOCK (lock);
- gInitializing = FALSE;
- gInitialized = TRUE;
+ initializing = FALSE;
+ initialized = TRUE;
- list = gTasks;
- gTasks = NULL;
+ list = tasks;
+ tasks = NULL;
G_UNLOCK (lock);
@@ -384,17 +384,17 @@ ide_language_defaults_init_async (GCancellable *cancellable,
G_LOCK (lock);
- if (gInitialized)
+ if (initialized)
{
g_task_return_boolean (task, TRUE);
}
- else if (gInitializing)
+ else if (initializing)
{
- gTasks = g_list_prepend (gTasks, g_object_ref (task));
+ tasks = g_list_prepend (tasks, g_object_ref (task));
}
else
{
- gInitializing = TRUE;
+ initializing = TRUE;
g_task_run_in_thread (task, ide_language_defaults_init_worker);
}
diff --git a/libide/ide-back-forward-item.c b/libide/ide-back-forward-item.c
index 52479ec..74beb98 100644
--- a/libide/ide-back-forward-item.c
+++ b/libide/ide-back-forward-item.c
@@ -38,7 +38,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
IdeBackForwardItem *
ide_back_forward_item_new (IdeContext *context,
@@ -135,7 +135,7 @@ ide_back_forward_item_class_init (IdeBackForwardItemClass *klass)
* The #IdeBackForwardItem:location property contains the location within
* a source file to navigate to.
*/
- gParamSpecs [PROP_LOCATION] =
+ properties [PROP_LOCATION] =
g_param_spec_boxed ("location",
"Location",
"The location of the navigation item.",
@@ -144,7 +144,7 @@ ide_back_forward_item_class_init (IdeBackForwardItemClass *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);
}
static void
diff --git a/libide/ide-back-forward-list.c b/libide/ide-back-forward-list.c
index b231f3f..92ab663 100644
--- a/libide/ide-back-forward-list.c
+++ b/libide/ide-back-forward-list.c
@@ -61,8 +61,8 @@ enum {
LAST_SIGNAL
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
/**
* ide_back_forward_list_get_current_item:
@@ -87,7 +87,7 @@ ide_back_forward_list_navigate_to (IdeBackForwardList *self,
g_return_if_fail (IDE_IS_BACK_FORWARD_LIST (self));
g_return_if_fail (IDE_IS_BACK_FORWARD_ITEM (item));
- g_signal_emit (self, gSignals [NAVIGATE_TO], 0, item);
+ g_signal_emit (self, signals [NAVIGATE_TO], 0, item);
}
void
@@ -107,8 +107,8 @@ ide_back_forward_list_go_backward (IdeBackForwardList *self)
self->current_item = current_item;
ide_back_forward_list_navigate_to (self, self->current_item);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CAN_GO_BACKWARD]);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CAN_GO_FORWARD]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CAN_GO_BACKWARD]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CAN_GO_FORWARD]);
}
else
g_warning ("Cannot go backward, no more items in queue.");
@@ -131,8 +131,8 @@ ide_back_forward_list_go_forward (IdeBackForwardList *self)
self->current_item = current_item;
ide_back_forward_list_navigate_to (self, self->current_item);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CAN_GO_BACKWARD]);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CAN_GO_FORWARD]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CAN_GO_BACKWARD]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CAN_GO_FORWARD]);
}
else
g_warning ("Cannot go forward, no more items in queue.");
@@ -210,8 +210,8 @@ ide_back_forward_list_push (IdeBackForwardList *self,
ide_back_forward_list_prune (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CAN_GO_BACKWARD]);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CAN_GO_FORWARD]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CAN_GO_BACKWARD]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CAN_GO_FORWARD]);
g_return_if_fail (self->forward->length == 0);
}
@@ -421,30 +421,30 @@ ide_back_forward_list_class_init (IdeBackForwardListClass *klass)
object_class->dispose = ide_back_forward_list_dispose;
object_class->get_property = ide_back_forward_list_get_property;
- gParamSpecs [PROP_CAN_GO_BACKWARD] =
+ properties [PROP_CAN_GO_BACKWARD] =
g_param_spec_boolean ("can-go-backward",
"Can Go Backward",
"If there are more backward navigation items.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_CAN_GO_FORWARD] =
+ properties [PROP_CAN_GO_FORWARD] =
g_param_spec_boolean ("can-go-forward",
"Can Go Forward",
"If there are more forward navigation items.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_CURRENT_ITEM] =
+ properties [PROP_CURRENT_ITEM] =
g_param_spec_object ("current-item",
"Current Item",
"The current navigation item.",
IDE_TYPE_BACK_FORWARD_ITEM,
(G_PARAM_READABLE | 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 [NAVIGATE_TO] =
+ signals [NAVIGATE_TO] =
g_signal_new ("navigate-to",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
diff --git a/libide/ide-battery-monitor.c b/libide/ide-battery-monitor.c
index 7d702ce..ac783fa 100644
--- a/libide/ide-battery-monitor.c
+++ b/libide/ide-battery-monitor.c
@@ -22,9 +22,9 @@
#define CONSERVE_THRESHOLD 50.0
-static GDBusProxy *gUPowerProxy;
-static GDBusProxy *gUPowerDeviceProxy;
-static gint gUPowerHold;
+static GDBusProxy *u_powerProxy;
+static GDBusProxy *u_powerDeviceProxy;
+static gint u_powerHold;
G_LOCK_DEFINE_STATIC (proxy_lock);
@@ -35,7 +35,7 @@ ide_battery_monitor_get_proxy (void)
G_LOCK (proxy_lock);
- if (!gUPowerProxy)
+ if (!u_powerProxy)
{
GDBusConnection *bus;
@@ -43,7 +43,7 @@ ide_battery_monitor_get_proxy (void)
if (bus)
{
- gUPowerProxy = g_dbus_proxy_new_sync (bus,
+ u_powerProxy = g_dbus_proxy_new_sync (bus,
G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES,
NULL,
"org.freedesktop.UPower",
@@ -55,7 +55,7 @@ ide_battery_monitor_get_proxy (void)
}
}
- proxy = gUPowerProxy ? g_object_ref (gUPowerProxy) : NULL;
+ proxy = u_powerProxy ? g_object_ref (u_powerProxy) : NULL;
G_UNLOCK (proxy_lock);
@@ -69,7 +69,7 @@ ide_battery_monitor_get_device_proxy (void)
G_LOCK (proxy_lock);
- if (!gUPowerDeviceProxy)
+ if (!u_powerDeviceProxy)
{
GDBusConnection *bus;
@@ -77,7 +77,7 @@ ide_battery_monitor_get_device_proxy (void)
if (bus)
{
- gUPowerDeviceProxy = g_dbus_proxy_new_sync (bus,
+ u_powerDeviceProxy = g_dbus_proxy_new_sync (bus,
G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES,
NULL,
"org.freedesktop.UPower",
@@ -89,7 +89,7 @@ ide_battery_monitor_get_device_proxy (void)
}
}
- proxy = gUPowerDeviceProxy ? g_object_ref (gUPowerDeviceProxy) : NULL;
+ proxy = u_powerDeviceProxy ? g_object_ref (u_powerDeviceProxy) : NULL;
G_UNLOCK (proxy_lock);
@@ -159,10 +159,10 @@ _ide_battery_monitor_shutdown (void)
{
G_LOCK (proxy_lock);
- if (--gUPowerHold == 0)
+ if (--u_powerHold == 0)
{
- g_clear_object (&gUPowerProxy);
- g_clear_object (&gUPowerDeviceProxy);
+ g_clear_object (&u_powerProxy);
+ g_clear_object (&u_powerDeviceProxy);
}
G_UNLOCK (proxy_lock);
@@ -175,7 +175,7 @@ _ide_battery_monitor_init (void)
g_autoptr(GDBusProxy) device_proxy = NULL;
G_LOCK (proxy_lock);
- gUPowerHold++;
+ u_powerHold++;
G_UNLOCK (proxy_lock);
proxy = ide_battery_monitor_get_proxy ();
diff --git a/libide/ide-buffer-change-monitor.c b/libide/ide-buffer-change-monitor.c
index f6678ff..183752a 100644
--- a/libide/ide-buffer-change-monitor.c
+++ b/libide/ide-buffer-change-monitor.c
@@ -34,8 +34,8 @@ enum {
LAST_SIGNAL
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
IdeBufferLineChange
ide_buffer_change_monitor_get_change (IdeBufferChangeMonitor *self,
@@ -72,7 +72,7 @@ ide_buffer_change_monitor_emit_changed (IdeBufferChangeMonitor *self)
{
g_return_if_fail (IDE_IS_BUFFER_CHANGE_MONITOR (self));
- g_signal_emit (self, gSignals [CHANGED], 0);
+ g_signal_emit (self, signals [CHANGED], 0);
}
static void
@@ -101,16 +101,16 @@ ide_buffer_change_monitor_class_init (IdeBufferChangeMonitorClass *klass)
object_class->set_property = ide_buffer_change_monitor_set_property;
- gParamSpecs [PROP_BUFFER] =
+ properties [PROP_BUFFER] =
g_param_spec_object ("buffer",
"Buffer",
"The IdeBuffer to be monitored.",
IDE_TYPE_BUFFER,
(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);
- gSignals [CHANGED] = g_signal_new ("changed",
+ signals [CHANGED] = g_signal_new ("changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
diff --git a/libide/ide-buffer-manager.c b/libide/ide-buffer-manager.c
index f953221..2b7d699 100644
--- a/libide/ide-buffer-manager.c
+++ b/libide/ide-buffer-manager.c
@@ -116,8 +116,8 @@ static void register_auto_save (IdeBufferManager *self,
static void unregister_auto_save (IdeBufferManager *self,
IdeBuffer *buffer);
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
static void
save_state_free (gpointer data)
@@ -190,7 +190,7 @@ ide_buffer_manager_set_auto_save_timeout (IdeBufferManager *self,
{
self->auto_save_timeout = auto_save_timeout;
g_object_notify_by_pspec (G_OBJECT (self),
- gParamSpecs [PROP_AUTO_SAVE_TIMEOUT]);
+ properties [PROP_AUTO_SAVE_TIMEOUT]);
}
}
@@ -248,7 +248,7 @@ ide_buffer_manager_set_auto_save (IdeBufferManager *self,
}
g_object_notify_by_pspec (G_OBJECT (self),
- gParamSpecs [PROP_AUTO_SAVE]);
+ properties [PROP_AUTO_SAVE]);
}
}
@@ -283,13 +283,13 @@ ide_buffer_manager_set_focus_buffer (IdeBufferManager *self,
{
/* notify that we left the previous buffer */
if (previous)
- g_signal_emit (self, gSignals [BUFFER_FOCUS_LEAVE], 0, previous);
+ g_signal_emit (self, signals [BUFFER_FOCUS_LEAVE], 0, previous);
/* notify of the new buffer, but check for reentrancy */
if (buffer && (buffer == self->focus_buffer))
- g_signal_emit (self, gSignals [BUFFER_FOCUS_ENTER], 0, buffer);
+ g_signal_emit (self, signals [BUFFER_FOCUS_ENTER], 0, buffer);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FOCUS_BUFFER]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FOCUS_BUFFER]);
}
}
@@ -550,7 +550,7 @@ emit_signal:
if (!_ide_context_is_restoring (context))
ide_buffer_manager_set_focus_buffer (self, state->buffer);
- g_signal_emit (self, gSignals [BUFFER_LOADED], 0, state->buffer);
+ g_signal_emit (self, signals [BUFFER_LOADED], 0, state->buffer);
g_task_return_pointer (task, g_object_ref (state->buffer), g_object_unref);
}
@@ -622,7 +622,7 @@ ide_buffer_manager__load_file_query_info_cb (GObject *object,
_ide_buffer_set_mtime (state->buffer, &tv);
}
- g_signal_emit (self, gSignals [LOAD_BUFFER], 0, state->buffer);
+ g_signal_emit (self, signals [LOAD_BUFFER], 0, state->buffer);
gtk_source_file_loader_load_async (state->loader,
G_PRIORITY_DEFAULT,
@@ -733,7 +733,7 @@ ide_buffer_manager_load_file_async (IdeBufferManager *self,
"fraction", 1.0,
NULL);
g_task_return_pointer (task, g_object_ref (buffer), g_object_unref);
- g_signal_emit (self, gSignals [LOAD_BUFFER], 0, buffer);
+ g_signal_emit (self, signals [LOAD_BUFFER], 0, buffer);
ide_buffer_manager_set_focus_buffer (self, buffer);
IDE_EXIT;
}
@@ -753,7 +753,7 @@ ide_buffer_manager_load_file_async (IdeBufferManager *self,
* Allow application to specify the buffer instance which may be a
* decendent of IdeBuffer.
*/
- g_signal_emit (self, gSignals [CREATE_BUFFER], 0, file, &state->buffer);
+ g_signal_emit (self, signals [CREATE_BUFFER], 0, file, &state->buffer);
if ((state->buffer != NULL) && !IDE_IS_BUFFER (state->buffer))
{
@@ -890,7 +890,7 @@ ide_buffer_manager_save_file__save_cb (GObject *object,
ide_unsaved_files_remove (unsaved_files, gfile);
/* Notify signal handlers that the file is saved */
- g_signal_emit (self, gSignals [BUFFER_SAVED], 0, state->buffer);
+ g_signal_emit (self, signals [BUFFER_SAVED], 0, state->buffer);
g_signal_emit_by_name (state->buffer, "saved");
/* Reload the mtime for the buffer */
@@ -1049,7 +1049,7 @@ ide_buffer_manager_save_file_async (IdeBufferManager *self,
g_task_set_task_data (task, state, save_state_free);
- g_signal_emit (self, gSignals [SAVE_BUFFER], 0, buffer);
+ g_signal_emit (self, signals [SAVE_BUFFER], 0, buffer);
if (progress)
*progress = g_object_ref (state->progress);
@@ -1260,14 +1260,14 @@ ide_buffer_manager_class_init (IdeBufferManagerClass *klass)
object_class->get_property = ide_buffer_manager_get_property;
object_class->set_property = ide_buffer_manager_set_property;
- gParamSpecs [PROP_AUTO_SAVE] =
+ properties [PROP_AUTO_SAVE] =
g_param_spec_boolean ("auto-save",
"Auto Save",
"If the documents should auto save after a configured timeout.",
TRUE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_AUTO_SAVE_TIMEOUT] =
+ properties [PROP_AUTO_SAVE_TIMEOUT] =
g_param_spec_uint ("auto-save-timeout",
"Auto Save Timeout",
"The number of seconds after modification before auto saving.",
@@ -1276,14 +1276,14 @@ ide_buffer_manager_class_init (IdeBufferManagerClass *klass)
AUTO_SAVE_TIMEOUT_DEFAULT,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FOCUS_BUFFER] =
+ properties [PROP_FOCUS_BUFFER] =
g_param_spec_object ("focus-buffer",
"Focused Buffer",
"The currently focused buffer.",
IDE_TYPE_BUFFER,
(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);
/**
* IdeBufferManager::create-buffer:
@@ -1299,7 +1299,7 @@ ide_buffer_manager_class_init (IdeBufferManagerClass *klass)
*
* Returns: (transfer full) (nullable): An #IdeBuffer or %NULL.
*/
- gSignals [CREATE_BUFFER] = g_signal_new ("create-buffer",
+ signals [CREATE_BUFFER] = g_signal_new ("create-buffer",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
@@ -1317,7 +1317,7 @@ ide_buffer_manager_class_init (IdeBufferManagerClass *klass)
* This signal is emitted when a request has been made to save a buffer. Connect to this signal
* if you'd like to perform mutation of the buffer before it is persisted to storage.
*/
- gSignals [SAVE_BUFFER] = g_signal_new ("save-buffer",
+ signals [SAVE_BUFFER] = g_signal_new ("save-buffer",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
@@ -1335,7 +1335,7 @@ ide_buffer_manager_class_init (IdeBufferManagerClass *klass)
* this signal if you want to know when the modifications have successfully been written to
* storage.
*/
- gSignals [BUFFER_SAVED] = g_signal_new ("buffer-saved",
+ signals [BUFFER_SAVED] = g_signal_new ("buffer-saved",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
@@ -1352,7 +1352,7 @@ ide_buffer_manager_class_init (IdeBufferManagerClass *klass)
* This signal is emitted when a request has been made to load a buffer from storage. You might
* connect to this signal to be notified when loading of a buffer has begun.
*/
- gSignals [LOAD_BUFFER] = g_signal_new ("load-buffer",
+ signals [LOAD_BUFFER] = g_signal_new ("load-buffer",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
@@ -1369,7 +1369,7 @@ ide_buffer_manager_class_init (IdeBufferManagerClass *klass)
* This signal is emitted when a buffer has been successfully loaded. You might connect to this
* signal to be notified when a buffer has completed loading.
*/
- gSignals [BUFFER_LOADED] =
+ signals [BUFFER_LOADED] =
g_signal_new_class_handler ("buffer-loaded",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -1387,7 +1387,7 @@ ide_buffer_manager_class_init (IdeBufferManagerClass *klass)
* This signal is emitted when a view for @buffer has received focus. You might connect to this
* signal when you want to perform an operation while a buffer is in focus.
*/
- gSignals [BUFFER_FOCUS_ENTER] = g_signal_new ("buffer-focus-enter",
+ signals [BUFFER_FOCUS_ENTER] = g_signal_new ("buffer-focus-enter",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
@@ -1404,7 +1404,7 @@ ide_buffer_manager_class_init (IdeBufferManagerClass *klass)
* This signal is emitted when the focus has left the view containing @buffer. You might connect
* to this signal to stop any work you were performing while the buffer was focused.
*/
- gSignals [BUFFER_FOCUS_LEAVE] = g_signal_new ("buffer-focus-leave",
+ signals [BUFFER_FOCUS_LEAVE] = g_signal_new ("buffer-focus-leave",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
@@ -1643,10 +1643,10 @@ ide_buffer_manager_create_temporary_buffer (IdeBufferManager *self)
"temporary-id", doc_seq,
NULL);
- g_signal_emit (self, gSignals [CREATE_BUFFER], 0, file, &buffer);
- g_signal_emit (self, gSignals [LOAD_BUFFER], 0, buffer);
+ g_signal_emit (self, signals [CREATE_BUFFER], 0, file, &buffer);
+ g_signal_emit (self, signals [LOAD_BUFFER], 0, buffer);
ide_buffer_manager_add_buffer (self, buffer);
- g_signal_emit (self, gSignals [BUFFER_LOADED], 0, buffer);
+ g_signal_emit (self, signals [BUFFER_LOADED], 0, buffer);
return buffer;
}
diff --git a/libide/ide-buffer.c b/libide/ide-buffer.c
index de84eda..6d58673 100644
--- a/libide/ide-buffer.c
+++ b/libide/ide-buffer.c
@@ -122,8 +122,8 @@ enum {
static void ide_buffer_queue_diagnose (IdeBuffer *self);
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
gboolean
ide_buffer_get_has_diagnostics (IdeBuffer *self)
@@ -158,7 +158,7 @@ ide_buffer_emit_cursor_moved (IdeBuffer *self)
mark = gtk_text_buffer_get_insert (GTK_TEXT_BUFFER (self));
gtk_text_buffer_get_iter_at_mark (GTK_TEXT_BUFFER (self), &iter, mark);
- g_signal_emit (self, gSignals [CURSOR_MOVED], 0, &iter);
+ g_signal_emit (self, signals [CURSOR_MOVED], 0, &iter);
}
static void
@@ -441,8 +441,8 @@ ide_buffer_set_diagnostics (IdeBuffer *self,
if (diagnostics)
ide_buffer_update_diagnostics (self, diagnostics);
- g_signal_emit (self, gSignals [LINE_FLAGS_CHANGED], 0);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_HAS_DIAGNOSTICS]);
+ g_signal_emit (self, signals [LINE_FLAGS_CHANGED], 0);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_HAS_DIAGNOSTICS]);
}
}
@@ -485,7 +485,7 @@ ide_buffer__diagnostician_diagnose_cb (GObject *object,
g_assert (IDE_IS_BUFFER (self));
priv->in_diagnose = FALSE;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_BUSY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_BUSY]);
diagnostics = ide_diagnostician_diagnose_finish (diagnostician, result, &error);
@@ -518,7 +518,7 @@ ide_buffer__diagnose_timeout_cb (gpointer user_data)
{
priv->diagnostics_dirty = FALSE;
priv->in_diagnose = TRUE;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_BUSY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_BUSY]);
ide_buffer_sync_to_unsaved_files (self);
ide_diagnostician_diagnose_async (priv->diagnostician,
@@ -575,7 +575,7 @@ ide_buffer__change_monitor_changed_cb (IdeBuffer *self,
g_assert (IDE_IS_BUFFER (self));
g_assert (IDE_IS_BUFFER_CHANGE_MONITOR (monitor));
- g_signal_emit (self, gSignals [LINE_FLAGS_CHANGED], 0);
+ g_signal_emit (self, signals [LINE_FLAGS_CHANGED], 0);
IDE_EXIT;
}
@@ -1150,21 +1150,21 @@ ide_buffer_class_init (IdeBufferClass *klass)
text_buffer_class->insert_text = ide_buffer_insert_text;
text_buffer_class->mark_set = ide_buffer_mark_set;
- gParamSpecs [PROP_BUSY] =
+ properties [PROP_BUSY] =
g_param_spec_boolean ("busy",
"Busy",
"If the buffer is performing background work.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_CHANGED_ON_VOLUME] =
+ properties [PROP_CHANGED_ON_VOLUME] =
g_param_spec_boolean ("changed-on-volume",
"Changed on Volume",
"If the file has changed on disk and the buffer is not in sync.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_CONTEXT] =
+ properties [PROP_CONTEXT] =
g_param_spec_object ("context",
"Context",
"The IdeContext for the buffer.",
@@ -1173,49 +1173,49 @@ ide_buffer_class_init (IdeBufferClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FILE] =
+ properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
"The file represented by the buffer.",
IDE_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_HAS_DIAGNOSTICS] =
+ properties [PROP_HAS_DIAGNOSTICS] =
g_param_spec_boolean ("has-diagnostics",
"Has Diagnostics",
"If the buffer contains diagnostic messages.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_HIGHLIGHT_DIAGNOSTICS] =
+ properties [PROP_HIGHLIGHT_DIAGNOSTICS] =
g_param_spec_boolean ("highlight-diagnostics",
"Highlight Diagnostics",
"If diagnostic warnings and errors should be highlighted.",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_READ_ONLY] =
+ properties [PROP_READ_ONLY] =
g_param_spec_boolean ("read-only",
"Read Only",
"If the underlying file is read only.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_STYLE_SCHEME_NAME] =
+ properties [PROP_STYLE_SCHEME_NAME] =
g_param_spec_string ("style-scheme-name",
"Style Scheme Name",
"Style Scheme Name",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_TITLE] =
+ properties [PROP_TITLE] =
g_param_spec_string ("title",
"Title",
"The title of the buffer.",
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);
/**
* IdeBuffer::cursor-moved:
@@ -1226,7 +1226,7 @@ ide_buffer_class_init (IdeBufferClass *klass)
* want to attach to this signal to update the location of the insert mark in
* the display.
*/
- gSignals [CURSOR_MOVED] =
+ signals [CURSOR_MOVED] =
g_signal_new ("cursor-moved",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -1242,7 +1242,7 @@ ide_buffer_class_init (IdeBufferClass *klass)
* This signal is emitted when the calculated line flags have changed. This occurs when
* diagnostics and line changes have been recalculated.
*/
- gSignals [LINE_FLAGS_CHANGED] =
+ signals [LINE_FLAGS_CHANGED] =
g_signal_new ("line-flags-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -1256,7 +1256,7 @@ ide_buffer_class_init (IdeBufferClass *klass)
*
* This signal is emitted when the buffer manager has completed loading the file.
*/
- gSignals [LOADED] =
+ signals [LOADED] =
g_signal_new ("loaded",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -1270,7 +1270,7 @@ ide_buffer_class_init (IdeBufferClass *klass)
*
* This signal is emitted when the buffer manager has completed saving the file.
*/
- gSignals [SAVED] =
+ signals [SAVED] =
g_signal_new ("saved",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -1331,7 +1331,7 @@ ide_buffer_update_title (IdeBuffer *self)
g_clear_pointer (&priv->title, g_free);
priv->title = g_strdup (title);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_TITLE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TITLE]);
}
/**
@@ -1380,8 +1380,8 @@ ide_buffer_set_file (IdeBuffer *self,
if (file != NULL)
ide_buffer__file_notify_file (self, NULL, file);
ide_buffer_update_title (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_TITLE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TITLE]);
}
}
@@ -1492,7 +1492,7 @@ ide_buffer_set_highlight_diagnostics (IdeBuffer *self,
ide_buffer_clear_diagnostics (self);
else
ide_buffer_queue_diagnose (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_HIGHLIGHT_DIAGNOSTICS]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_HIGHLIGHT_DIAGNOSTICS]);
}
}
@@ -1839,9 +1839,9 @@ _ide_buffer_set_loading (IdeBuffer *self,
/*
* Force the views to reload language state.
*/
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
- g_signal_emit (self, gSignals [LOADED], 0);
+ g_signal_emit (self, signals [LOADED], 0);
}
}
}
@@ -1869,7 +1869,7 @@ _ide_buffer_set_read_only (IdeBuffer *self,
if (read_only != priv->read_only)
{
priv->read_only = read_only;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_READ_ONLY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_READ_ONLY]);
}
}
@@ -1908,7 +1908,7 @@ _ide_buffer_set_changed_on_volume (IdeBuffer *self,
if (changed_on_volume != priv->changed_on_volume)
{
priv->changed_on_volume = changed_on_volume;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CHANGED_ON_VOLUME]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CHANGED_ON_VOLUME]);
}
IDE_EXIT;
diff --git a/libide/ide-build-system.c b/libide/ide-build-system.c
index c493aef..fdd6747 100644
--- a/libide/ide-build-system.c
+++ b/libide/ide-build-system.c
@@ -38,7 +38,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
gint
ide_build_system_get_priority (IdeBuildSystem *self)
@@ -107,21 +107,21 @@ ide_build_system_get_build_flags_finish (IdeBuildSystem *self,
static void
ide_build_system_default_init (IdeBuildSystemInterface *iface)
{
- gParamSpecs [PROP_PROJECT_FILE] =
+ properties [PROP_PROJECT_FILE] =
g_param_spec_object ("project-file",
"Project File",
"The project file.",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- g_object_interface_install_property (iface, gParamSpecs [PROP_PROJECT_FILE]);
+ g_object_interface_install_property (iface, properties [PROP_PROJECT_FILE]);
- gParamSpecs [PROP_CONTEXT] =
+ properties [PROP_CONTEXT] =
g_param_spec_object ("context",
"Context",
"Context",
IDE_TYPE_CONTEXT,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- g_object_interface_install_property (iface, gParamSpecs [PROP_CONTEXT]);
+ g_object_interface_install_property (iface, properties [PROP_CONTEXT]);
}
static gint
diff --git a/libide/ide-completion-results.c b/libide/ide-completion-results.c
index ac1e210..254991f 100644
--- a/libide/ide-completion-results.c
+++ b/libide/ide-completion-results.c
@@ -96,7 +96,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
IdeCompletionResults *
ide_completion_results_new (const gchar *query)
@@ -429,14 +429,14 @@ ide_completion_results_class_init (IdeCompletionResultsClass *klass)
object_class->get_property = ide_completion_results_get_property;
object_class->set_property = ide_completion_results_set_property;
- gParamSpecs [PROP_QUERY] =
+ properties [PROP_QUERY] =
g_param_spec_string ("query",
"Query",
"Query",
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
diff --git a/libide/ide-context.c b/libide/ide-context.c
index bdff676..6cb2fbe 100644
--- a/libide/ide-context.c
+++ b/libide/ide-context.c
@@ -107,8 +107,8 @@ enum {
LAST_SIGNAL
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
/**
* ide_context_get_recent_manager:
@@ -232,7 +232,7 @@ ide_context_set_root_build_dir (IdeContext *self,
g_free (self->root_build_dir);
self->root_build_dir = g_strdup (root_build_dir);
g_object_notify_by_pspec (G_OBJECT (self),
- gParamSpecs [PROP_ROOT_BUILD_DIR]);
+ properties [PROP_ROOT_BUILD_DIR]);
}
}
@@ -391,7 +391,7 @@ ide_context_set_project_file (IdeContext *self,
g_return_if_fail (IDE_IS_CONTEXT (self));
if (g_set_object (&self->project_file, project_file))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_PROJECT_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_PROJECT_FILE]);
}
/**
@@ -643,42 +643,42 @@ ide_context_class_init (IdeContextClass *klass)
object_class->get_property = ide_context_get_property;
object_class->set_property = ide_context_set_property;
- gParamSpecs [PROP_BACK_FORWARD_LIST] =
+ properties [PROP_BACK_FORWARD_LIST] =
g_param_spec_object ("back-forward-list",
"Back Forward List",
"Back/forward navigation history for the context.",
IDE_TYPE_BACK_FORWARD_LIST,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_BUFFER_MANAGER] =
+ properties [PROP_BUFFER_MANAGER] =
g_param_spec_object ("buffer-manager",
"Buffer Manager",
"The buffer manager for the context.",
IDE_TYPE_BUFFER_MANAGER,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_BUILD_SYSTEM] =
+ properties [PROP_BUILD_SYSTEM] =
g_param_spec_object ("build-system",
"Build System",
"The build system used by the context.",
IDE_TYPE_BUILD_SYSTEM,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_DEVICE_MANAGER] =
+ properties [PROP_DEVICE_MANAGER] =
g_param_spec_object ("device-manager",
"Device Manager",
"The device manager for the context.",
IDE_TYPE_DEVICE_MANAGER,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_PROJECT] =
+ properties [PROP_PROJECT] =
g_param_spec_object ("project",
"Project",
"The project for the context.",
IDE_TYPE_PROJECT,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_PROJECT_FILE] =
+ properties [PROP_PROJECT_FILE] =
g_param_spec_object ("project-file",
"Project File",
"The project file for the context.",
@@ -687,49 +687,49 @@ ide_context_class_init (IdeContextClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_ROOT_BUILD_DIR] =
+ properties [PROP_ROOT_BUILD_DIR] =
g_param_spec_string ("root-build-dir",
"Root Build Directory",
"The root directory to perform builds within.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SCRIPT_MANAGER] =
+ properties [PROP_SCRIPT_MANAGER] =
g_param_spec_object ("script-manager",
"Script Manager",
"The script manager for the context.",
IDE_TYPE_SCRIPT_MANAGER,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SEARCH_ENGINE] =
+ properties [PROP_SEARCH_ENGINE] =
g_param_spec_object ("search-engine",
"Search Engine",
"The search engine for the context.",
IDE_TYPE_SEARCH_ENGINE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SNIPPETS_MANAGER] =
+ properties [PROP_SNIPPETS_MANAGER] =
g_param_spec_object ("snippets-manager",
"Snippets Manager",
"The snippets manager for the context.",
IDE_TYPE_SOURCE_SNIPPETS_MANAGER,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_UNSAVED_FILES] =
+ properties [PROP_UNSAVED_FILES] =
g_param_spec_object ("unsaved-files",
"Unsaved Files",
"The unsaved files in the context.",
IDE_TYPE_UNSAVED_FILES,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_VCS] =
+ properties [PROP_VCS] =
g_param_spec_object ("vcs",
"VCS",
"The VCS for the context.",
IDE_TYPE_VCS,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
+ g_object_class_install_properties (object_class, LAST_PROP, properties);
/**
* IdeContext::loaded:
@@ -739,7 +739,7 @@ ide_context_class_init (IdeContextClass *klass)
* work that requires subsystems that may not be loaded during context
* startup.
*/
- gSignals [LOADED] =
+ signals [LOADED] =
g_signal_new_class_handler ("loaded",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -1350,7 +1350,7 @@ ide_context_init_loaded (gpointer source_object,
g_assert (IDE_IS_CONTEXT (self));
g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
- g_signal_emit (self, gSignals [LOADED], 0);
+ g_signal_emit (self, signals [LOADED], 0);
task = g_task_new (self, cancellable, callback, user_data);
g_task_return_boolean (task, TRUE);
diff --git a/libide/ide-device-manager.c b/libide/ide-device-manager.c
index 86df225..58a952b 100644
--- a/libide/ide-device-manager.c
+++ b/libide/ide-device-manager.c
@@ -50,8 +50,8 @@ enum {
LAST_SIGNAL
};
-static guint gSignals [LAST_SIGNAL];
-static GParamSpec *gParamSpecs [LAST_PROP];
+static guint signals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
static void
get_settled (PeasExtensionSet *set,
@@ -87,7 +87,7 @@ ide_device_manager__provider_notify_settled (IdeDeviceManager *self,
g_return_if_fail (IDE_IS_DEVICE_MANAGER (self));
g_return_if_fail (IDE_IS_DEVICE_PROVIDER (provider));
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SETTLED]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SETTLED]);
}
static void
@@ -114,7 +114,7 @@ ide_device_manager__provider_device_added (IdeDeviceManager *self,
g_return_if_fail (IDE_IS_DEVICE_PROVIDER (provider));
ide_device_manager_do_add_device (self, device);
- g_signal_emit (self, gSignals [DEVICE_ADDED], 0, provider, device);
+ g_signal_emit (self, signals [DEVICE_ADDED], 0, provider, device);
}
static void
@@ -136,7 +136,7 @@ ide_device_manager__provider_device_removed (IdeDeviceManager *self,
{
g_ptr_array_remove_index (self->devices, i);
g_list_model_items_changed (G_LIST_MODEL (self), i, 1, 0);
- g_signal_emit (self, gSignals [DEVICE_REMOVED], 0, provider, device);
+ g_signal_emit (self, signals [DEVICE_REMOVED], 0, provider, device);
return;
}
}
@@ -390,16 +390,16 @@ ide_device_manager_class_init (IdeDeviceManagerClass *klass)
object_class->finalize = ide_device_manager_finalize;
object_class->get_property = ide_device_manager_get_property;
- gParamSpecs [PROP_SETTLED] =
+ properties [PROP_SETTLED] =
g_param_spec_boolean ("settled",
"Settled",
"If the device providers have settled.",
FALSE,
(G_PARAM_READABLE | 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 [DEVICE_ADDED] =
+ signals [DEVICE_ADDED] =
g_signal_new ("device-added",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -410,7 +410,7 @@ ide_device_manager_class_init (IdeDeviceManagerClass *klass)
IDE_TYPE_DEVICE_PROVIDER,
IDE_TYPE_DEVICE);
- gSignals [DEVICE_REMOVED] =
+ signals [DEVICE_REMOVED] =
g_signal_new ("device-removed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
diff --git a/libide/ide-device-provider.c b/libide/ide-device-provider.c
index 7134249..a15a6b5 100644
--- a/libide/ide-device-provider.c
+++ b/libide/ide-device-provider.c
@@ -29,7 +29,7 @@ enum {
LAST_SIGNAL
};
-static guint gSignals [LAST_SIGNAL];
+static guint signals [LAST_SIGNAL];
static GPtrArray *
default_get_devices (IdeDeviceProvider *self)
@@ -56,7 +56,7 @@ ide_device_provider_default_init (IdeDeviceProviderInterface *iface)
IDE_TYPE_CONTEXT,
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS)));
- gSignals [DEVICE_ADDED] =
+ signals [DEVICE_ADDED] =
g_signal_new ("device-added",
IDE_TYPE_DEVICE_PROVIDER,
G_SIGNAL_RUN_LAST,
@@ -66,7 +66,7 @@ ide_device_provider_default_init (IdeDeviceProviderInterface *iface)
1,
IDE_TYPE_DEVICE);
- gSignals [DEVICE_REMOVED] =
+ signals [DEVICE_REMOVED] =
g_signal_new ("device-removed",
IDE_TYPE_DEVICE_PROVIDER,
G_SIGNAL_RUN_LAST,
@@ -112,7 +112,7 @@ ide_device_provider_emit_device_added (IdeDeviceProvider *provider,
g_return_if_fail (IDE_IS_DEVICE_PROVIDER (provider));
g_return_if_fail (IDE_IS_DEVICE (device));
- g_signal_emit (provider, gSignals [DEVICE_ADDED], 0, device);
+ g_signal_emit (provider, signals [DEVICE_ADDED], 0, device);
}
void
@@ -122,5 +122,5 @@ ide_device_provider_emit_device_removed (IdeDeviceProvider *provider,
g_return_if_fail (IDE_IS_DEVICE_PROVIDER (provider));
g_return_if_fail (IDE_IS_DEVICE (device));
- g_signal_emit (provider, gSignals [DEVICE_REMOVED], 0, device);
+ g_signal_emit (provider, signals [DEVICE_REMOVED], 0, device);
}
diff --git a/libide/ide-device.c b/libide/ide-device.c
index 1a27828..897a658 100644
--- a/libide/ide-device.c
+++ b/libide/ide-device.c
@@ -36,7 +36,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
/**
* ide_device_get_config:
@@ -93,7 +93,7 @@ ide_device_set_display_name (IdeDevice *device,
g_free (priv->display_name);
priv->display_name = g_strdup (display_name);
g_object_notify_by_pspec (G_OBJECT (device),
- gParamSpecs [PROP_DISPLAY_NAME]);
+ properties [PROP_DISPLAY_NAME]);
}
}
@@ -127,7 +127,7 @@ ide_device_set_id (IdeDevice *device,
{
g_free (priv->id);
priv->id = g_strdup (id);
- g_object_notify_by_pspec (G_OBJECT (device), gParamSpecs [PROP_ID]);
+ g_object_notify_by_pspec (G_OBJECT (device), properties [PROP_ID]);
}
}
@@ -229,28 +229,28 @@ ide_device_class_init (IdeDeviceClass *klass)
object_class->get_property = ide_device_get_property;
object_class->set_property = ide_device_set_property;
- gParamSpecs [PROP_DISPLAY_NAME] =
+ properties [PROP_DISPLAY_NAME] =
g_param_spec_string ("display-name",
"Display Name",
"The display name of the device.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_ID] =
+ properties [PROP_ID] =
g_param_spec_string ("id",
"ID",
"The device identifier.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SYSTEM_TYPE] =
+ properties [PROP_SYSTEM_TYPE] =
g_param_spec_string ("system-type",
"System Type",
"The system type for which to compile.",
NULL,
(G_PARAM_READABLE | 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
diff --git a/libide/ide-diagnostician.c b/libide/ide-diagnostician.c
index 94a4f17..edcb35f 100644
--- a/libide/ide-diagnostician.c
+++ b/libide/ide-diagnostician.c
@@ -61,7 +61,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
diagnose_state_free (gpointer data)
@@ -265,14 +265,14 @@ ide_diagnostician_class_init (IdeDiagnosticianClass *klass)
object_class->get_property = ide_diagnostician_get_property;
object_class->set_property = ide_diagnostician_set_property;
- gParamSpecs [PROP_LANGUAGE] =
+ properties [PROP_LANGUAGE] =
g_param_spec_object ("language",
"Language",
"Language",
GTK_SOURCE_TYPE_LANGUAGE,
(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
@@ -314,6 +314,6 @@ ide_diagnostician_set_language (IdeDiagnostician *self,
ide_extension_set_adapter_set_value (self->extensions, lang_id);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_LANGUAGE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_LANGUAGE]);
}
}
diff --git a/libide/ide-extension-adapter.c b/libide/ide-extension-adapter.c
index 4398788..204e87b 100644
--- a/libide/ide-extension-adapter.c
+++ b/libide/ide-extension-adapter.c
@@ -55,7 +55,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static GSettings *
ide_extension_adapter_get_settings (IdeExtensionAdapter *self,
@@ -102,7 +102,7 @@ ide_extension_adapter_set_extension (IdeExtensionAdapter *self,
if (g_set_object (&self->extension, extension))
{
ide_extension_adapter_monitor (self, plugin_info);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_EXTENSION]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_EXTENSION]);
}
}
@@ -391,42 +391,42 @@ ide_extension_adapter_class_init (IdeExtensionAdapterClass *klass)
object_class->get_property = ide_extension_adapter_get_property;
object_class->set_property = ide_extension_adapter_set_property;
- gParamSpecs [PROP_ENGINE] =
+ properties [PROP_ENGINE] =
g_param_spec_object ("engine",
"Engine",
"Engine",
PEAS_TYPE_ENGINE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_EXTENSION] =
+ properties [PROP_EXTENSION] =
g_param_spec_object ("extension",
"Extension",
"The extension object.",
G_TYPE_OBJECT,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_INTERFACE_TYPE] =
+ properties [PROP_INTERFACE_TYPE] =
g_param_spec_gtype ("interface-type",
"Interface Type",
"The GType of the extension interface.",
G_TYPE_INTERFACE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_KEY] =
+ properties [PROP_KEY] =
g_param_spec_string ("key",
"Key",
"The external data key to match from plugin info.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_VALUE] =
+ properties [PROP_VALUE] =
g_param_spec_string ("value",
"Value",
"The external data value to match from plugin info.",
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
@@ -461,7 +461,7 @@ ide_extension_adapter_set_key (IdeExtensionAdapter *self,
g_free (self->key);
self->key = g_strdup (key);
ide_extension_adapter_queue_reload (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_KEY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_KEY]);
}
}
@@ -484,7 +484,7 @@ ide_extension_adapter_set_value (IdeExtensionAdapter *self,
g_free (self->value);
self->value = g_strdup (value);
ide_extension_adapter_reload (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_VALUE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_VALUE]);
}
}
diff --git a/libide/ide-extension-set-adapter.c b/libide/ide-extension-set-adapter.c
index 5050bb2..a34ea2d 100644
--- a/libide/ide-extension-set-adapter.c
+++ b/libide/ide-extension-set-adapter.c
@@ -56,8 +56,8 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
static void
add_extension (IdeExtensionSetAdapter *self,
@@ -70,7 +70,7 @@ add_extension (IdeExtensionSetAdapter *self,
g_assert (g_type_is_a (G_OBJECT_TYPE (exten), self->interface_type));
g_hash_table_insert (self->extensions, plugin_info, exten);
- g_signal_emit (self, gSignals [EXTENSION_ADDED], 0, plugin_info, exten);
+ g_signal_emit (self, signals [EXTENSION_ADDED], 0, plugin_info, exten);
}
static void
@@ -85,7 +85,7 @@ remove_extension (IdeExtensionSetAdapter *self,
g_object_ref (exten);
g_hash_table_remove (self->extensions, plugin_info);
- g_signal_emit (self, gSignals [EXTENSION_REMOVED], 0, plugin_info, exten);
+ g_signal_emit (self, signals [EXTENSION_REMOVED], 0, plugin_info, exten);
g_object_unref (exten);
}
@@ -167,7 +167,7 @@ ide_extension_set_adapter_set_engine (IdeExtensionSetAdapter *self,
if (g_set_object (&self->engine, engine))
{
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_ENGINE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_ENGINE]);
ide_extension_set_adapter_queue_reload (self);
}
}
@@ -182,7 +182,7 @@ ide_extension_set_adapter_set_interface_type (IdeExtensionSetAdapter *self,
if (interface_type != self->interface_type)
{
self->interface_type = interface_type;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_INTERFACE_TYPE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_INTERFACE_TYPE]);
ide_extension_set_adapter_queue_reload (self);
}
}
@@ -271,37 +271,37 @@ ide_extension_set_adapter_class_init (IdeExtensionSetAdapterClass *klass)
object_class->get_property = ide_extension_set_adapter_get_property;
object_class->set_property = ide_extension_set_adapter_set_property;
- gParamSpecs [PROP_ENGINE] =
+ properties [PROP_ENGINE] =
g_param_spec_object ("engine",
"Engine",
"Engine",
PEAS_TYPE_ENGINE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_INTERFACE_TYPE] =
+ properties [PROP_INTERFACE_TYPE] =
g_param_spec_gtype ("interface-type",
"Interface Type",
"Interface Type",
G_TYPE_INTERFACE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_KEY] =
+ properties [PROP_KEY] =
g_param_spec_string ("key",
"Key",
"Key",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_VALUE] =
+ properties [PROP_VALUE] =
g_param_spec_string ("value",
"Value",
"Value",
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);
- gSignals [EXTENSION_ADDED] =
+ signals [EXTENSION_ADDED] =
g_signal_new ("extension-added",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -312,7 +312,7 @@ ide_extension_set_adapter_class_init (IdeExtensionSetAdapterClass *klass)
PEAS_TYPE_PLUGIN_INFO,
PEAS_TYPE_EXTENSION);
- gSignals [EXTENSION_REMOVED] =
+ signals [EXTENSION_REMOVED] =
g_signal_new ("extension-removed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -371,7 +371,7 @@ ide_extension_set_adapter_set_key (IdeExtensionSetAdapter *self,
{
g_free (self->key);
self->key = g_strdup (key);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_KEY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_KEY]);
ide_extension_set_adapter_queue_reload (self);
}
}
@@ -394,7 +394,7 @@ ide_extension_set_adapter_set_value (IdeExtensionSetAdapter *self,
{
g_free (self->value);
self->value = g_strdup (value);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_VALUE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_VALUE]);
ide_extension_set_adapter_queue_reload (self);
}
}
diff --git a/libide/ide-file-settings.c b/libide/ide-file-settings.c
index 83d031f..0537ab0 100644
--- a/libide/ide-file-settings.c
+++ b/libide/ide-file-settings.c
@@ -67,7 +67,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
#define IDE_FILE_SETTINGS_PROPERTY(_1, name, _2, ret_type, _pname, _3, _4, _5) \
ret_type ide_file_settings_get_##name (IdeFileSettings *self) \
@@ -107,8 +107,8 @@ void ide_file_settings_set_##name (IdeFileSettings *self, \
g_return_if_fail (IDE_IS_FILE_SETTINGS (self)); \
assign_stmt \
priv->name##_set = TRUE; \
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_##NAME]); \
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_##NAME##_SET]); \
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_##NAME]); \
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_##NAME##_SET]); \
}
# include "ide-file-settings.defs"
#undef IDE_FILE_SETTINGS_PROPERTY
@@ -120,7 +120,7 @@ void ide_file_settings_set_##name##_set (IdeFileSettings *self, \
IdeFileSettingsPrivate *priv = ide_file_settings_get_instance_private (self); \
g_return_if_fail (IDE_IS_FILE_SETTINGS (self)); \
priv->name##_set = !!name##_set; \
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_##NAME##_SET]); \
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_##NAME##_SET]); \
}
# include "ide-file-settings.defs"
#undef IDE_FILE_SETTINGS_PROPERTY
@@ -160,7 +160,7 @@ ide_file_settings_set_file (IdeFileSettings *self,
if (priv->file != file)
{
if (ide_set_weak_pointer (&priv->file, file))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
}
}
@@ -285,14 +285,14 @@ ide_file_settings_class_init (IdeFileSettingsClass *klass)
object_class->get_property = ide_file_settings_get_property;
object_class->set_property = ide_file_settings_set_property;
- gParamSpecs [PROP_FILE] =
+ properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
"The IdeFile the settings represent.",
IDE_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SETTLED] =
+ properties [PROP_SETTLED] =
g_param_spec_boolean ("settled",
"Settled",
"If the file settings implementations have settled.",
@@ -300,12 +300,12 @@ ide_file_settings_class_init (IdeFileSettingsClass *klass)
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
#define IDE_FILE_SETTINGS_PROPERTY(NAME, name, _1, _2, _pname, pspec, _4, _5) \
- gParamSpecs [PROP_##NAME] = pspec;
+ properties [PROP_##NAME] = pspec;
# include "ide-file-settings.defs"
#undef IDE_FILE_SETTINGS_PROPERTY
#define IDE_FILE_SETTINGS_PROPERTY(NAME, name, _1, _2, _pname, pspec, _4, _5) \
- gParamSpecs [PROP_##NAME##_SET] = \
+ properties [PROP_##NAME##_SET] = \
g_param_spec_boolean (_pname"-set", \
_pname"-set", \
"If IdeFileSettings:"_pname" is set.", \
@@ -314,7 +314,7 @@ ide_file_settings_class_init (IdeFileSettingsClass *klass)
# include "ide-file-settings.defs"
#undef IDE_FILE_SETTINGS_PROPERTY
- g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
+ g_object_class_install_properties (object_class, LAST_PROP, properties);
}
static void
@@ -385,7 +385,7 @@ ide_file_settings__init_cb (GObject *object,
}
if (--priv->unsettled_count == 0)
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SETTLED]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SETTLED]);
}
IdeFileSettings *
@@ -457,7 +457,7 @@ ide_file_settings_new (IdeFile *file)
}
if (--priv->unsettled_count == 0)
- g_object_notify_by_pspec (G_OBJECT (ret), gParamSpecs [PROP_SETTLED]);
+ g_object_notify_by_pspec (G_OBJECT (ret), properties [PROP_SETTLED]);
return ret;
}
diff --git a/libide/ide-file.c b/libide/ide-file.c
index 134b349..172bbcc 100644
--- a/libide/ide-file.c
+++ b/libide/ide-file.c
@@ -52,7 +52,7 @@ enum {
G_DEFINE_TYPE (IdeFile, ide_file, IDE_TYPE_OBJECT)
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
const gchar *
_ide_file_get_content_type (IdeFile *self)
@@ -77,7 +77,7 @@ _ide_file_set_content_type (IdeFile *self,
g_clear_pointer (&self->content_type, g_free);
g_clear_object (&self->language);
self->content_type = g_strdup (content_type);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_LANGUAGE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_LANGUAGE]);
}
}
@@ -176,7 +176,7 @@ ide_file_set_file (IdeFile *self,
if (file != self->file)
{
if (g_set_object (&self->file, file))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
}
}
@@ -465,7 +465,7 @@ ide_file_class_init (IdeFileClass *klass)
object_class->get_property = ide_file_get_property;
object_class->set_property = ide_file_set_property;
- gParamSpecs [PROP_FILE] =
+ properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
"The path to the underlying file.",
@@ -474,28 +474,28 @@ ide_file_class_init (IdeFileClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_IS_TEMPORARY] =
+ properties [PROP_IS_TEMPORARY] =
g_param_spec_boolean ("is-temporary",
"Is Temporary",
"If the file represents a temporary file.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_LANGUAGE] =
+ properties [PROP_LANGUAGE] =
g_param_spec_object ("language",
"Language",
"The file language.",
GTK_SOURCE_TYPE_LANGUAGE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_PATH] =
+ properties [PROP_PATH] =
g_param_spec_string ("path",
"Path",
"The path within the project.",
NULL,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_TEMPORARY_ID] =
+ properties [PROP_TEMPORARY_ID] =
g_param_spec_uint ("temporary-id",
"Temporary ID",
"A unique identifier for temporary files.",
@@ -504,7 +504,7 @@ ide_file_class_init (IdeFileClass *klass)
0,
(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
diff --git a/libide/ide-highlight-engine.c b/libide/ide-highlight-engine.c
index 6506f18..13d4fd7 100644
--- a/libide/ide-highlight-engine.c
+++ b/libide/ide-highlight-engine.c
@@ -65,8 +65,8 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static GQuark gEngineQuark;
+static GParamSpec *properties [LAST_PROP];
+static GQuark engineQuark;
static gboolean
get_invalidation_area (GtkTextIter *begin,
@@ -283,7 +283,7 @@ ide_highlight_engine_apply_style (const GtkTextIter *begin,
GtkTextTag *tag;
buffer = gtk_text_iter_get_buffer (begin);
- self = g_object_get_qdata (G_OBJECT (buffer), gEngineQuark);
+ self = g_object_get_qdata (G_OBJECT (buffer), engineQuark);
tag = get_tag_from_style (self, style_name, TRUE);
gtk_text_buffer_apply_tag (buffer, tag, begin, end);
@@ -496,7 +496,7 @@ ide_highlight_engine_set_highlighter (IdeHighlightEngine *self,
if (highlighter != NULL)
IDE_HIGHLIGHTER_GET_IFACE (highlighter)->set_engine (highlighter, self);
ide_highlight_engine_reload (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_HIGHLIGHTER]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_HIGHLIGHTER]);
}
}
@@ -632,7 +632,7 @@ ide_highlight_engine__bind_buffer_cb (IdeHighlightEngine *self,
ide_set_weak_pointer (&self->buffer, buffer);
- g_object_set_qdata (G_OBJECT (buffer), gEngineQuark, self);
+ g_object_set_qdata (G_OBJECT (buffer), engineQuark, self);
gtk_text_buffer_get_bounds (text_buffer, &begin, &end);
@@ -667,7 +667,7 @@ ide_highlight_engine__unbind_buffer_cb (IdeHighlightEngine *self,
self->work_timeout = 0;
}
- g_object_set_qdata (G_OBJECT (text_buffer), gEngineQuark, NULL);
+ g_object_set_qdata (G_OBJECT (text_buffer), engineQuark, NULL);
tag_table = gtk_text_buffer_get_tag_table (text_buffer);
@@ -711,7 +711,7 @@ ide_highlight_engine_set_buffer (IdeHighlightEngine *self,
if (!buffer || IDE_IS_BUFFER (buffer))
{
egg_signal_group_set_target (self->signal_group, buffer);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_BUFFER]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_BUFFER]);
}
}
@@ -842,23 +842,23 @@ ide_highlight_engine_class_init (IdeHighlightEngineClass *klass)
object_class->get_property = ide_highlight_engine_get_property;
object_class->set_property = ide_highlight_engine_set_property;
- gParamSpecs [PROP_BUFFER] =
+ properties [PROP_BUFFER] =
g_param_spec_object ("buffer",
"Buffer",
"The buffer to highlight.",
IDE_TYPE_BUFFER,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_HIGHLIGHTER] =
+ properties [PROP_HIGHLIGHTER] =
g_param_spec_object ("highlighter",
"Highlighter",
"The highlighter to use for type information.",
IDE_TYPE_HIGHLIGHTER,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
+ g_object_class_install_properties (object_class, LAST_PROP, properties);
- gEngineQuark = g_quark_from_string ("IDE_HIGHLIGHT_ENGINE");
+ engineQuark = g_quark_from_string ("IDE_HIGHLIGHT_ENGINE");
}
static void
diff --git a/libide/ide-line-change-gutter-renderer.c b/libide/ide-line-change-gutter-renderer.c
index d35f765..a3d730e 100644
--- a/libide/ide-line-change-gutter-renderer.c
+++ b/libide/ide-line-change-gutter-renderer.c
@@ -44,8 +44,8 @@ G_DEFINE_TYPE (IdeLineChangeGutterRenderer,
ide_line_change_gutter_renderer,
GTK_SOURCE_TYPE_GUTTER_RENDERER)
-static GdkRGBA gRgbaAdded;
-static GdkRGBA gRgbaChanged;
+static GdkRGBA rgbaAdded;
+static GdkRGBA rgbaChanged;
static void
disconnect_style_scheme (IdeLineChangeGutterRenderer *self)
@@ -228,10 +228,10 @@ ide_line_change_gutter_renderer_draw (GtkSourceGutterRenderer *renderer,
flags = ide_buffer_get_line_flags (IDE_BUFFER (buffer), lineno);
if ((flags & IDE_BUFFER_LINE_FLAGS_ADDED) != 0)
- rgba = self->rgba_added_set ? &self->rgba_added : &gRgbaAdded;
+ rgba = self->rgba_added_set ? &self->rgba_added : &rgbaAdded;
if ((flags & IDE_BUFFER_LINE_FLAGS_CHANGED) != 0)
- rgba = self->rgba_changed_set ? &self->rgba_changed : &gRgbaChanged;
+ rgba = self->rgba_changed_set ? &self->rgba_changed : &rgbaChanged;
if (rgba)
{
@@ -259,8 +259,8 @@ ide_line_change_gutter_renderer_class_init (IdeLineChangeGutterRendererClass *kl
renderer_class->draw = ide_line_change_gutter_renderer_draw;
- gdk_rgba_parse (&gRgbaAdded, "#8ae234");
- gdk_rgba_parse (&gRgbaChanged, "#fcaf3e");
+ gdk_rgba_parse (&rgbaAdded, "#8ae234");
+ gdk_rgba_parse (&rgbaChanged, "#fcaf3e");
}
static void
diff --git a/libide/ide-object.c b/libide/ide-object.c
index 0394319..4c0d602 100644
--- a/libide/ide-object.c
+++ b/libide/ide-object.c
@@ -63,8 +63,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
ide_object_destroy (IdeObject *self)
@@ -76,7 +76,7 @@ ide_object_destroy (IdeObject *self)
if (!priv->is_destroyed)
{
priv->is_destroyed = TRUE;
- g_signal_emit (self, gSignals [DESTROY], 0);
+ g_signal_emit (self, signals [DESTROY], 0);
}
}
@@ -141,7 +141,7 @@ ide_object_set_context (IdeObject *self,
if (IDE_OBJECT_GET_CLASS (self)->set_context)
IDE_OBJECT_GET_CLASS (self)->set_context (self, context);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CONTEXT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CONTEXT]);
}
}
@@ -211,7 +211,7 @@ ide_object_class_init (IdeObjectClass *klass)
object_class->get_property = ide_object_get_property;
object_class->set_property = ide_object_set_property;
- gParamSpecs [PROP_CONTEXT] =
+ properties [PROP_CONTEXT] =
g_param_spec_object ("context",
"Context",
"The context that owns the object.",
@@ -220,9 +220,9 @@ ide_object_class_init (IdeObjectClass *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);
- gSignals [DESTROY] =
+ signals [DESTROY] =
g_signal_new ("destroy",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
diff --git a/libide/ide-progress.c b/libide/ide-progress.c
index 586c622..a80e547 100644
--- a/libide/ide-progress.c
+++ b/libide/ide-progress.c
@@ -41,7 +41,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
gboolean
ide_progress_get_completed (IdeProgress *self)
@@ -60,7 +60,7 @@ ide_progress_set_completed (IdeProgress *self,
if (self->completed != completed)
{
self->completed = completed;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_COMPLETED]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_COMPLETED]);
}
}
@@ -85,7 +85,7 @@ ide_progress_set_fraction (IdeProgress *self,
self->fraction = fraction;
if (fraction == 1.0)
ide_progress_set_completed (self, TRUE);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FRACTION]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FRACTION]);
}
}
@@ -107,7 +107,7 @@ ide_progress_set_message (IdeProgress *self,
{
g_free (self->message);
self->message = g_strdup (message);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_MESSAGE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MESSAGE]);
}
}
@@ -205,14 +205,14 @@ ide_progress_class_init (IdeProgressClass *klass)
object_class->get_property = ide_progress_get_property;
object_class->set_property = ide_progress_set_property;
- gParamSpecs [PROP_COMPLETED] =
+ properties [PROP_COMPLETED] =
g_param_spec_boolean ("completed",
"Completed",
"If the progress has completed.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FRACTION] =
+ properties [PROP_FRACTION] =
g_param_spec_double ("fraction",
"Fraction",
"The fraction of the progress.",
@@ -221,14 +221,14 @@ ide_progress_class_init (IdeProgressClass *klass)
0.0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_MESSAGE] =
+ properties [PROP_MESSAGE] =
g_param_spec_string ("message",
"Message",
"A short message for the progress.",
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
diff --git a/libide/ide-project-file.c b/libide/ide-project-file.c
index b29626e..73d5489 100644
--- a/libide/ide-project-file.c
+++ b/libide/ide-project-file.c
@@ -39,7 +39,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
gboolean
ide_project_file_get_is_directory (IdeProjectFile *self)
@@ -76,7 +76,7 @@ ide_project_file_set_path (IdeProjectFile *self,
{
g_free (priv->path);
priv->path = g_strdup (path);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_PATH]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_PATH]);
}
}
@@ -122,7 +122,7 @@ ide_project_file_set_file (IdeProjectFile *self,
g_return_if_fail (!file || G_IS_FILE (file));
if (g_set_object (&priv->file, file))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
}
/**
@@ -154,8 +154,8 @@ ide_project_file_set_file_info (IdeProjectFile *file,
if (g_set_object (&priv->file_info, file_info))
{
- g_object_notify_by_pspec (G_OBJECT (file), gParamSpecs [PROP_FILE_INFO]);
- g_object_notify_by_pspec (G_OBJECT (file), gParamSpecs [PROP_NAME]);
+ g_object_notify_by_pspec (G_OBJECT (file), properties [PROP_FILE_INFO]);
+ g_object_notify_by_pspec (G_OBJECT (file), properties [PROP_NAME]);
}
}
@@ -243,42 +243,42 @@ ide_project_file_class_init (IdeProjectFileClass *klass)
object_class->get_property = ide_project_file_get_property;
object_class->set_property = ide_project_file_set_property;
- gParamSpecs [PROP_FILE] =
+ properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
"A GFile to the underlying file.",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FILE_INFO] =
+ properties [PROP_FILE_INFO] =
g_param_spec_object ("file-info",
"File Info",
"The file information for the project file.",
G_TYPE_FILE_INFO,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_IS_DIRECTORY] =
+ properties [PROP_IS_DIRECTORY] =
g_param_spec_boolean ("is-directory",
"Is Directory",
"Is Directory",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_NAME] =
+ properties [PROP_NAME] =
g_param_spec_string ("name",
"Name",
"The short name of the file.",
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_PATH] =
+ properties [PROP_PATH] =
g_param_spec_string ("path",
"Path",
"The path for the file within the project tree.",
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
diff --git a/libide/ide-project-info.c b/libide/ide-project-info.c
index ff0f332..66bd8b1 100644
--- a/libide/ide-project-info.c
+++ b/libide/ide-project-info.c
@@ -70,7 +70,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
/**
* ide_project_info_get_doap:
@@ -94,7 +94,7 @@ ide_project_info_set_doap (IdeProjectInfo *self,
g_return_if_fail (!doap || IDE_IS_DOAP (doap));
if (g_set_object (&self->doap, doap))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_DOAP]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DOAP]);
}
/**
@@ -118,7 +118,7 @@ ide_project_info_set_languages (IdeProjectInfo *self,
g_strfreev (self->languages);
self->languages = g_strdupv (languages);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_LANGUAGES]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_LANGUAGES]);
}
gint
@@ -138,7 +138,7 @@ ide_project_info_set_priority (IdeProjectInfo *self,
if (self->priority != priority)
{
self->priority = priority;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_PRIORITY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_PRIORITY]);
}
}
@@ -208,7 +208,7 @@ ide_project_info_set_description (IdeProjectInfo *self,
{
g_free (self->description);
self->description = g_strdup (description);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_DESCRIPTION]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DESCRIPTION]);
}
}
@@ -230,7 +230,7 @@ ide_project_info_set_name (IdeProjectInfo *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]);
}
}
@@ -242,7 +242,7 @@ ide_project_info_set_directory (IdeProjectInfo *self,
g_return_if_fail (!directory || G_IS_FILE (directory));
if (g_set_object (&self->directory, directory))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_DIRECTORY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DIRECTORY]);
}
void
@@ -253,7 +253,7 @@ ide_project_info_set_file (IdeProjectInfo *self,
g_return_if_fail (!file || G_IS_FILE (file));
if (g_set_object (&self->file, file))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
}
void
@@ -266,7 +266,7 @@ ide_project_info_set_last_modified_at (IdeProjectInfo *self,
{
g_clear_pointer (&self->last_modified_at, g_date_time_unref);
self->last_modified_at = last_modified_at ? g_date_time_ref (last_modified_at) : NULL;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_LAST_MODIFIED_AT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_LAST_MODIFIED_AT]);
}
}
@@ -289,7 +289,7 @@ ide_project_info_set_is_recent (IdeProjectInfo *self,
if (self->is_recent != is_recent)
{
self->is_recent = is_recent;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_IS_RECENT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_IS_RECENT]);
}
}
@@ -418,63 +418,63 @@ ide_project_info_class_init (IdeProjectInfoClass *klass)
object_class->get_property = ide_project_info_get_property;
object_class->set_property = ide_project_info_set_property;
- gParamSpecs [PROP_DESCRIPTION] =
+ properties [PROP_DESCRIPTION] =
g_param_spec_string ("description",
"Description",
"The project description.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_NAME] =
+ properties [PROP_NAME] =
g_param_spec_string ("name",
"Name",
"The project name.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_DIRECTORY] =
+ properties [PROP_DIRECTORY] =
g_param_spec_object ("directory",
"Directory",
"The project directory.",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_DOAP] =
+ properties [PROP_DOAP] =
g_param_spec_object ("doap",
"DOAP",
"A DOAP describing the project.",
IDE_TYPE_DOAP,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FILE] =
+ properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
"The toplevel project file.",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_IS_RECENT] =
+ properties [PROP_IS_RECENT] =
g_param_spec_boolean ("is-recent",
"Is Recent",
"Is Recent",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_LANGUAGES] =
+ properties [PROP_LANGUAGES] =
g_param_spec_boxed ("languages",
"Languages",
"Languages",
G_TYPE_STRV,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_LAST_MODIFIED_AT] =
+ properties [PROP_LAST_MODIFIED_AT] =
g_param_spec_boxed ("last-modified-at",
"Last Modified At",
"Last Modified At",
G_TYPE_DATE_TIME,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_PRIORITY] =
+ properties [PROP_PRIORITY] =
g_param_spec_int ("priority",
"Priority",
"The priority of the project information type.",
@@ -483,7 +483,7 @@ ide_project_info_class_init (IdeProjectInfoClass *klass)
0,
(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
diff --git a/libide/ide-project-item.c b/libide/ide-project-item.c
index 5371b8c..2b6ca02 100644
--- a/libide/ide-project-item.c
+++ b/libide/ide-project-item.c
@@ -34,7 +34,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
IdeProjectItem *
ide_project_item_new (IdeProjectItem *parent)
@@ -134,7 +134,7 @@ ide_project_item_set_parent (IdeProjectItem *item,
g_return_if_fail (!parent || IDE_IS_PROJECT_ITEM (parent));
if (ide_set_weak_pointer (&priv->parent, parent))
- g_object_notify_by_pspec (G_OBJECT (item), gParamSpecs [PROP_PARENT]);
+ g_object_notify_by_pspec (G_OBJECT (item), properties [PROP_PARENT]);
}
static void
@@ -196,7 +196,7 @@ ide_project_item_class_init (IdeProjectItemClass *klass)
object_class->get_property = ide_project_item_get_property;
object_class->set_property = ide_project_item_set_property;
- gParamSpecs [PROP_PARENT] =
+ properties [PROP_PARENT] =
g_param_spec_object ("parent",
"Parent",
"The parent project item, if not the root.",
@@ -204,7 +204,7 @@ ide_project_item_class_init (IdeProjectItemClass *klass)
(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
diff --git a/libide/ide-project-miner.c b/libide/ide-project-miner.c
index 163711d..dd238a7 100644
--- a/libide/ide-project-miner.c
+++ b/libide/ide-project-miner.c
@@ -27,7 +27,7 @@ enum {
LAST_SIGNAL
};
-static guint gSignals [LAST_SIGNAL];
+static guint signals [LAST_SIGNAL];
static void
ide_project_miner_default_init (IdeProjectMinerInterface *iface)
@@ -41,7 +41,7 @@ ide_project_miner_default_init (IdeProjectMinerInterface *iface)
* The signal will always be emitted from the primary thread (Gtk+) as long as
* ide_project_miner_emit_discovered() was used to emit the signal.
*/
- gSignals [DISCOVERED] = g_signal_new ("discovered",
+ signals [DISCOVERED] = g_signal_new ("discovered",
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (IdeProjectMinerInterface, discovered),
@@ -58,7 +58,7 @@ emit_discovered_cb (gpointer user_data)
g_autoptr(IdeProjectMiner) miner = data[0];
g_autoptr(IdeProjectInfo) project_info = data[1];
- g_signal_emit (miner, gSignals [DISCOVERED], 0, project_info);
+ g_signal_emit (miner, signals [DISCOVERED], 0, project_info);
g_free (data);
diff --git a/libide/ide-project.c b/libide/ide-project.c
index 4ae2390..76ca56c 100644
--- a/libide/ide-project.c
+++ b/libide/ide-project.c
@@ -52,7 +52,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
void
ide_project_reader_lock (IdeProject *self)
@@ -121,7 +121,7 @@ _ide_project_set_name (IdeProject *self,
g_free (self->name);
self->name = g_strdup (name);
self->id = ide_project_create_id (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_NAME]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_NAME]);
}
}
@@ -170,7 +170,7 @@ ide_project_set_root (IdeProject *self,
}
if (g_set_object (&self->root, root))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_ROOT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_ROOT]);
}
/**
@@ -388,21 +388,21 @@ ide_project_class_init (IdeProjectClass *klass)
object_class->get_property = ide_project_get_property;
object_class->set_property = ide_project_set_property;
- gParamSpecs [PROP_ID] =
+ properties [PROP_ID] =
g_param_spec_string ("id",
"ID",
"The unique project identifier.",
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_NAME] =
+ properties [PROP_NAME] =
g_param_spec_string ("name",
"Name",
"The name of the project.",
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_ROOT] =
+ properties [PROP_ROOT] =
g_param_spec_object ("root",
"Root",
"The root object for the project.",
@@ -411,7 +411,7 @@ ide_project_class_init (IdeProjectClass *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);
}
static void
diff --git a/libide/ide-script-manager.c b/libide/ide-script-manager.c
index 900e933..308913c 100644
--- a/libide/ide-script-manager.c
+++ b/libide/ide-script-manager.c
@@ -42,7 +42,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
const gchar *
ide_script_manager_get_scripts_directory (IdeScriptManager *self)
@@ -123,7 +123,7 @@ ide_script_manager_class_init (IdeScriptManagerClass *klass)
object_class->get_property = ide_script_manager_get_property;
object_class->set_property = ide_script_manager_set_property;
- gParamSpecs [PROP_SCRIPTS_DIRECTORY] =
+ properties [PROP_SCRIPTS_DIRECTORY] =
g_param_spec_string ("scripts-directory",
"Scripts Directory",
"The local path to the directory containing scripts.",
@@ -132,7 +132,7 @@ ide_script_manager_class_init (IdeScriptManagerClass *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);
}
static void
diff --git a/libide/ide-script.c b/libide/ide-script.c
index f47cfe5..ec1d086 100644
--- a/libide/ide-script.c
+++ b/libide/ide-script.c
@@ -44,8 +44,8 @@ enum {
LAST_SIGNAL
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
/**
* ide_script_get_file:
@@ -74,7 +74,7 @@ ide_script_set_file (IdeScript *self,
g_return_if_fail (G_IS_FILE (file));
if (g_set_object (&priv->file, file))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
}
void
@@ -82,7 +82,7 @@ ide_script_load (IdeScript *self)
{
g_return_if_fail (IDE_IS_SCRIPT (self));
- g_signal_emit (self, gSignals [LOAD], 0);
+ g_signal_emit (self, signals [LOAD], 0);
}
void
@@ -90,7 +90,7 @@ ide_script_unload (IdeScript *self)
{
g_return_if_fail (IDE_IS_SCRIPT (self));
- g_signal_emit (self, gSignals [UNLOAD], 0);
+ g_signal_emit (self, signals [UNLOAD], 0);
}
static void
@@ -151,7 +151,7 @@ ide_script_class_init (IdeScriptClass *klass)
object_class->get_property = ide_script_get_property;
object_class->set_property = ide_script_set_property;
- gParamSpecs [PROP_FILE] =
+ properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
"The file containing the script.",
@@ -160,9 +160,9 @@ ide_script_class_init (IdeScriptClass *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);
- gSignals [LOAD] =
+ signals [LOAD] =
g_signal_new ("load",
IDE_TYPE_SCRIPT,
G_SIGNAL_RUN_LAST,
@@ -171,7 +171,7 @@ ide_script_class_init (IdeScriptClass *klass)
G_TYPE_NONE,
0);
- gSignals [UNLOAD] =
+ signals [UNLOAD] =
g_signal_new ("unload",
IDE_TYPE_SCRIPT,
G_SIGNAL_RUN_LAST,
diff --git a/libide/ide-search-context.c b/libide/ide-search-context.c
index 20312b3..f763167 100644
--- a/libide/ide-search-context.c
+++ b/libide/ide-search-context.c
@@ -44,7 +44,7 @@ enum {
LAST_SIGNAL
};
-static guint gSignals [LAST_SIGNAL];
+static guint signals [LAST_SIGNAL];
gboolean
ide_search_context_get_completed (IdeSearchContext *self)
@@ -63,7 +63,7 @@ ide_search_context_provider_completed (IdeSearchContext *self,
g_return_if_fail (g_list_find (self->providers, provider));
if (--self->in_progress == 0)
- g_signal_emit (self, gSignals [COMPLETED], 0);
+ g_signal_emit (self, signals [COMPLETED], 0);
}
/**
@@ -91,7 +91,7 @@ ide_search_context_add_result (IdeSearchContext *self,
g_return_if_fail (IDE_IS_SEARCH_PROVIDER (provider));
g_return_if_fail (IDE_IS_SEARCH_RESULT (result));
- g_signal_emit (self, gSignals [RESULT_ADDED], 0, provider, result);
+ g_signal_emit (self, signals [RESULT_ADDED], 0, provider, result);
}
void
@@ -103,7 +103,7 @@ ide_search_context_remove_result (IdeSearchContext *self,
g_return_if_fail (IDE_IS_SEARCH_PROVIDER (provider));
g_return_if_fail (IDE_IS_SEARCH_RESULT (result));
- g_signal_emit (self, gSignals [RESULT_REMOVED], 0, provider, result);
+ g_signal_emit (self, signals [RESULT_REMOVED], 0, provider, result);
}
void
@@ -114,7 +114,7 @@ ide_search_context_set_provider_count (IdeSearchContext *self,
g_return_if_fail (IDE_IS_SEARCH_CONTEXT (self));
g_return_if_fail (IDE_IS_SEARCH_PROVIDER (provider));
- g_signal_emit (self, gSignals [COUNT_SET], 0, provider, count);
+ g_signal_emit (self, signals [COUNT_SET], 0, provider, count);
}
void
@@ -136,7 +136,7 @@ ide_search_context_execute (IdeSearchContext *self,
if (!self->in_progress)
{
- g_signal_emit (self, gSignals [COMPLETED], 0);
+ g_signal_emit (self, signals [COMPLETED], 0);
IDE_EXIT;
}
@@ -195,7 +195,7 @@ ide_search_context_class_init (IdeSearchContextClass *klass)
object_class->finalize = ide_search_context_finalize;
- gSignals [COMPLETED] =
+ signals [COMPLETED] =
g_signal_new ("completed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -204,7 +204,7 @@ ide_search_context_class_init (IdeSearchContextClass *klass)
G_TYPE_NONE,
0);
- gSignals [COUNT_SET] =
+ signals [COUNT_SET] =
g_signal_new ("count-set",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -215,7 +215,7 @@ ide_search_context_class_init (IdeSearchContextClass *klass)
IDE_TYPE_SEARCH_PROVIDER,
G_TYPE_UINT64);
- gSignals [RESULT_ADDED] =
+ signals [RESULT_ADDED] =
g_signal_new ("result-added",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -226,7 +226,7 @@ ide_search_context_class_init (IdeSearchContextClass *klass)
IDE_TYPE_SEARCH_PROVIDER,
IDE_TYPE_SEARCH_RESULT);
- gSignals [RESULT_REMOVED] =
+ signals [RESULT_REMOVED] =
g_signal_new ("result-removed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
diff --git a/libide/ide-search-result.c b/libide/ide-search-result.c
index 5866c4b..1fed0a2 100644
--- a/libide/ide-search-result.c
+++ b/libide/ide-search-result.c
@@ -40,7 +40,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
IdeSearchResult *
ide_search_result_new (IdeSearchProvider *provider,
@@ -274,14 +274,14 @@ ide_search_result_class_init (IdeSearchResultClass *klass)
object_class->get_property = ide_search_result_get_property;
object_class->set_property = ide_search_result_set_property;
- gParamSpecs [PROP_PROVIDER] =
+ properties [PROP_PROVIDER] =
g_param_spec_object ("provider",
"Provider",
"The Search Provider",
IDE_TYPE_SEARCH_PROVIDER,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_TITLE] =
+ properties [PROP_TITLE] =
g_param_spec_string ("title",
"Title",
"The title of the search result.",
@@ -290,7 +290,7 @@ ide_search_result_class_init (IdeSearchResultClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SUBTITLE] =
+ properties [PROP_SUBTITLE] =
g_param_spec_string ("subtitle",
"Subtitle",
"The subtitle of the search result.",
@@ -299,7 +299,7 @@ ide_search_result_class_init (IdeSearchResultClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SCORE] =
+ properties [PROP_SCORE] =
g_param_spec_float ("score",
"Score",
"The score of the search result.",
@@ -310,7 +310,7 @@ ide_search_result_class_init (IdeSearchResultClass *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);
}
static void
diff --git a/libide/ide-service.c b/libide/ide-service.c
index 6e419ed..eedb7d3 100644
--- a/libide/ide-service.c
+++ b/libide/ide-service.c
@@ -28,7 +28,7 @@ enum {
LAST_SIGNAL
};
-static guint gSignals [LAST_SIGNAL];
+static guint signals [LAST_SIGNAL];
const gchar *
ide_service_get_name (IdeService *service)
@@ -61,7 +61,7 @@ _ide_service_emit_context_loaded (IdeService *service)
{
g_return_if_fail (IDE_IS_SERVICE (service));
- g_signal_emit (service, gSignals [CONTEXT_LOADED], 0);
+ g_signal_emit (service, signals [CONTEXT_LOADED], 0);
}
static const gchar *
@@ -82,7 +82,7 @@ ide_service_default_init (IdeServiceInterface *iface)
IDE_TYPE_CONTEXT,
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)));
- gSignals [CONTEXT_LOADED] =
+ signals [CONTEXT_LOADED] =
g_signal_new ("context-loaded",
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
diff --git a/libide/ide-settings.c b/libide/ide-settings.c
index 176603b..9c16648 100644
--- a/libide/ide-settings.c
+++ b/libide/ide-settings.c
@@ -68,8 +68,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
ide_settings_set_ignore_project_settings (IdeSettings *self,
@@ -82,7 +82,7 @@ ide_settings_set_ignore_project_settings (IdeSettings *self,
if (ignore_project_settings != self->ignore_project_settings)
{
self->ignore_project_settings = ignore_project_settings;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_IGNORE_PROJECT_SETTINGS]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_IGNORE_PROJECT_SETTINGS]);
}
}
@@ -100,7 +100,7 @@ ide_settings_set_relative_path (IdeSettings *self,
{
g_free (self->relative_path);
self->relative_path = g_strdup (relative_path);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_RELATIVE_PATH]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_RELATIVE_PATH]);
}
}
@@ -115,7 +115,7 @@ ide_settings_set_schema_id (IdeSettings *self,
{
g_free (self->schema_id);
self->schema_id = g_strdup (schema_id);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SCHEMA_ID]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SCHEMA_ID]);
}
}
@@ -278,30 +278,30 @@ ide_settings_class_init (IdeSettingsClass *klass)
object_class->get_property = ide_settings_get_property;
object_class->set_property = ide_settings_set_property;
- gParamSpecs [PROP_IGNORE_PROJECT_SETTINGS] =
+ properties [PROP_IGNORE_PROJECT_SETTINGS] =
g_param_spec_boolean ("ignore-project-settings",
"Ignore Project Settings",
"If project settings should be ignored.",
FALSE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_RELATIVE_PATH] =
+ properties [PROP_RELATIVE_PATH] =
g_param_spec_string ("relative-path",
"Relative Path",
"Relative Path",
NULL,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- 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));
- g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
+ g_object_class_install_properties (object_class, LAST_PROP, properties);
- gSignals [CHANGED] =
+ signals [CHANGED] =
g_signal_new ("changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
diff --git a/libide/ide-source-map.c b/libide/ide-source-map.c
index 07d4b3c..859bac6 100644
--- a/libide/ide-source-map.c
+++ b/libide/ide-source-map.c
@@ -48,7 +48,7 @@ enum {
LAST_SIGNAL
};
-static guint gSignals [LAST_SIGNAL];
+static guint signals [LAST_SIGNAL];
static gboolean
ide_source_map_do_conceal (gpointer data)
@@ -62,7 +62,7 @@ ide_source_map_do_conceal (gpointer data)
if (self->show_map == TRUE)
{
self->show_map = FALSE;
- g_signal_emit (self, gSignals [HIDE_MAP], 0);
+ g_signal_emit (self, signals [HIDE_MAP], 0);
}
return G_SOURCE_REMOVE;
@@ -80,7 +80,7 @@ ide_source_map__enter_notify_event (IdeSourceMap *self,
if (self->show_map == FALSE)
{
self->show_map = TRUE;
- g_signal_emit (self, gSignals [SHOW_MAP], 0);
+ g_signal_emit (self, signals [SHOW_MAP], 0);
}
return GDK_EVENT_PROPAGATE;
@@ -101,7 +101,7 @@ ide_source_map_show_map_and_queue_fade (IdeSourceMap *self)
if (self->show_map == FALSE)
{
self->show_map = TRUE;
- g_signal_emit (self, gSignals [SHOW_MAP], 0);
+ g_signal_emit (self, signals [SHOW_MAP], 0);
}
}
@@ -235,7 +235,7 @@ ide_source_map_class_init (IdeSourceMapClass *klass)
widget_class->destroy = ide_source_map_destroy;
- gSignals [HIDE_MAP] =
+ signals [HIDE_MAP] =
g_signal_new ("hide-map",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -245,7 +245,7 @@ ide_source_map_class_init (IdeSourceMapClass *klass)
G_TYPE_NONE,
0);
- gSignals [SHOW_MAP] =
+ signals [SHOW_MAP] =
g_signal_new ("show-map",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
diff --git a/libide/ide-source-snippet-chunk.c b/libide/ide-source-snippet-chunk.c
index f5ba6c2..4fe2e5a 100644
--- a/libide/ide-source-snippet-chunk.c
+++ b/libide/ide-source-snippet-chunk.c
@@ -45,7 +45,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs[LAST_PROP];
+static GParamSpec *properties[LAST_PROP];
IdeSourceSnippetChunk *
ide_source_snippet_chunk_new (void)
@@ -136,7 +136,7 @@ ide_source_snippet_chunk_set_context (IdeSourceSnippetChunk *chunk,
0);
}
- g_object_notify_by_pspec (G_OBJECT (chunk), gParamSpecs[PROP_CONTEXT]);
+ g_object_notify_by_pspec (G_OBJECT (chunk), properties[PROP_CONTEXT]);
}
}
@@ -155,7 +155,7 @@ ide_source_snippet_chunk_set_spec (IdeSourceSnippetChunk *chunk,
g_free (chunk->spec);
chunk->spec = g_strdup (spec);
- g_object_notify_by_pspec (G_OBJECT (chunk), gParamSpecs[PROP_SPEC]);
+ g_object_notify_by_pspec (G_OBJECT (chunk), properties[PROP_SPEC]);
}
gint
@@ -171,7 +171,7 @@ ide_source_snippet_chunk_set_tab_stop (IdeSourceSnippetChunk *chunk,
{
g_return_if_fail (IDE_IS_SOURCE_SNIPPET_CHUNK (chunk));
chunk->tab_stop = tab_stop;
- g_object_notify_by_pspec (G_OBJECT (chunk), gParamSpecs[PROP_TAB_STOP]);
+ g_object_notify_by_pspec (G_OBJECT (chunk), properties[PROP_TAB_STOP]);
}
const gchar *
@@ -191,7 +191,7 @@ ide_source_snippet_chunk_set_text (IdeSourceSnippetChunk *chunk,
{
g_free (chunk->text);
chunk->text = g_strdup (text);
- g_object_notify_by_pspec (G_OBJECT (chunk), gParamSpecs[PROP_TEXT]);
+ g_object_notify_by_pspec (G_OBJECT (chunk), properties[PROP_TEXT]);
}
}
@@ -214,7 +214,7 @@ ide_source_snippet_chunk_set_text_set (IdeSourceSnippetChunk *chunk,
if (chunk->text_set != text_set)
{
chunk->text_set = text_set;
- g_object_notify_by_pspec (G_OBJECT (chunk), gParamSpecs[PROP_TEXT_SET]);
+ g_object_notify_by_pspec (G_OBJECT (chunk), properties[PROP_TEXT_SET]);
}
}
@@ -309,21 +309,21 @@ ide_source_snippet_chunk_class_init (IdeSourceSnippetChunkClass *klass)
object_class->get_property = ide_source_snippet_chunk_get_property;
object_class->set_property = ide_source_snippet_chunk_set_property;
- gParamSpecs[PROP_CONTEXT] =
+ properties[PROP_CONTEXT] =
g_param_spec_object ("context",
"Context",
"The snippet context.",
IDE_TYPE_SOURCE_SNIPPET_CONTEXT,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_SPEC] =
+ properties[PROP_SPEC] =
g_param_spec_string ("spec",
"Spec",
"The specification to expand using the context.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_TAB_STOP] =
+ properties[PROP_TAB_STOP] =
g_param_spec_int ("tab-stop",
"Tab Stop",
"The tab stop for the chunk.",
@@ -332,21 +332,21 @@ ide_source_snippet_chunk_class_init (IdeSourceSnippetChunkClass *klass)
-1,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_TEXT] =
+ properties[PROP_TEXT] =
g_param_spec_string ("text",
"Text",
"The text for the chunk.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_TEXT_SET] =
+ properties[PROP_TEXT_SET] =
g_param_spec_boolean ("text-set",
"Text Set",
"If the text property has been manually set.",
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);
}
static void
diff --git a/libide/ide-source-snippet-completion-item.c b/libide/ide-source-snippet-completion-item.c
index e0142cc..663f979 100644
--- a/libide/ide-source-snippet-completion-item.c
+++ b/libide/ide-source-snippet-completion-item.c
@@ -34,7 +34,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void init_proposal_iface (GtkSourceCompletionProposalIface *iface);
@@ -127,14 +127,14 @@ ide_source_snippet_completion_item_class_init (IdeSourceSnippetCompletionItemCla
object_class->get_property = ide_source_snippet_completion_item_get_property;
object_class->set_property = ide_source_snippet_completion_item_set_property;
- gParamSpecs[PROP_SNIPPET] =
+ properties[PROP_SNIPPET] =
g_param_spec_object ("snippet",
"Snippet",
"The snippet to insert.",
IDE_TYPE_SOURCE_SNIPPET,
(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
diff --git a/libide/ide-source-snippet-completion-provider.c b/libide/ide-source-snippet-completion-provider.c
index 5bc7641..e952b9f 100644
--- a/libide/ide-source-snippet-completion-provider.c
+++ b/libide/ide-source-snippet-completion-provider.c
@@ -57,7 +57,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs[LAST_PROP];
+static GParamSpec *properties[LAST_PROP];
GtkSourceCompletionProvider *
ide_source_snippet_completion_provider_new (IdeSourceView *source_view,
@@ -85,7 +85,7 @@ ide_source_snippet_completion_provider_set_snippets (IdeSourceSnippetCompletionP
g_clear_object (&provider->snippets);
provider->snippets = snippets ? g_object_ref (snippets) : NULL;
- g_object_notify_by_pspec (G_OBJECT (provider), gParamSpecs[PROP_SNIPPETS]);
+ g_object_notify_by_pspec (G_OBJECT (provider), properties[PROP_SNIPPETS]);
}
static gboolean
@@ -197,28 +197,28 @@ ide_source_snippet_completion_provider_class_init (IdeSourceSnippetCompletionPro
object_class->get_property = ide_source_snippet_completion_provider_get_property;
object_class->set_property = ide_source_snippet_completion_provider_set_property;
- gParamSpecs [PROP_ENABLED] =
+ properties [PROP_ENABLED] =
g_param_spec_boolean ("enabled",
"Enabled",
"If the provider is enabled.",
TRUE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_SOURCE_VIEW] =
+ properties[PROP_SOURCE_VIEW] =
g_param_spec_object ("source-view",
"Source View",
"The source view to insert snippet into.",
IDE_TYPE_SOURCE_VIEW,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_SNIPPETS] =
+ properties[PROP_SNIPPETS] =
g_param_spec_object ("snippets",
"Snippets",
"The snippets to complete with this provider.",
IDE_TYPE_SOURCE_SNIPPETS,
(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
diff --git a/libide/ide-source-snippet-context.c b/libide/ide-source-snippet-context.c
index fc33149..09aeda4 100644
--- a/libide/ide-source-snippet-context.c
+++ b/libide/ide-source-snippet-context.c
@@ -61,8 +61,8 @@ enum {
typedef gchar *(*InputFilter) (const gchar *input);
-static GHashTable *gFilters;
-static guint gSignals[LAST_SIGNAL];
+static GHashTable *filters;
+static guint signals[LAST_SIGNAL];
IdeSourceSnippetContext *
ide_source_snippet_context_new (void)
@@ -389,7 +389,7 @@ apply_filter (gchar *input,
InputFilter filter_func;
gchar *tmp;
- filter_func = g_hash_table_lookup (gFilters, filter);
+ filter_func = g_hash_table_lookup (filters, filter);
if (filter_func)
{
tmp = input;
@@ -598,7 +598,7 @@ void
ide_source_snippet_context_emit_changed (IdeSourceSnippetContext *context)
{
g_return_if_fail (IDE_IS_SOURCE_SNIPPET_CONTEXT (context));
- g_signal_emit (context, gSignals[CHANGED], 0);
+ g_signal_emit (context, signals[CHANGED], 0);
}
static gchar *
@@ -645,7 +645,7 @@ ide_source_snippet_context_class_init (IdeSourceSnippetContextClass *klass)
object_class->finalize = ide_source_snippet_context_finalize;
- gSignals[CHANGED] = g_signal_new ("changed",
+ signals[CHANGED] = g_signal_new ("changed",
IDE_TYPE_SOURCE_SNIPPET_CONTEXT,
G_SIGNAL_RUN_FIRST,
0,
@@ -653,18 +653,18 @@ ide_source_snippet_context_class_init (IdeSourceSnippetContextClass *klass)
G_TYPE_NONE,
0);
- gFilters = g_hash_table_new (g_str_hash, g_str_equal);
- g_hash_table_insert (gFilters, (gpointer) "lower", filter_lower);
- g_hash_table_insert (gFilters, (gpointer) "upper", filter_upper);
- g_hash_table_insert (gFilters, (gpointer) "capitalize", filter_capitalize);
- g_hash_table_insert (gFilters, (gpointer) "html", filter_html);
- g_hash_table_insert (gFilters, (gpointer) "camelize", filter_camelize);
- g_hash_table_insert (gFilters, (gpointer) "functify", filter_functify);
- g_hash_table_insert (gFilters, (gpointer) "namespace", filter_namespace);
- g_hash_table_insert (gFilters, (gpointer) "class", filter_class);
- g_hash_table_insert (gFilters, (gpointer) "space", filter_space);
- g_hash_table_insert (gFilters, (gpointer) "stripsuffix", filter_stripsuffix);
- g_hash_table_insert (gFilters, (gpointer) "instance", filter_instance);
+ filters = g_hash_table_new (g_str_hash, g_str_equal);
+ g_hash_table_insert (filters, (gpointer) "lower", filter_lower);
+ g_hash_table_insert (filters, (gpointer) "upper", filter_upper);
+ g_hash_table_insert (filters, (gpointer) "capitalize", filter_capitalize);
+ g_hash_table_insert (filters, (gpointer) "html", filter_html);
+ g_hash_table_insert (filters, (gpointer) "camelize", filter_camelize);
+ g_hash_table_insert (filters, (gpointer) "functify", filter_functify);
+ g_hash_table_insert (filters, (gpointer) "namespace", filter_namespace);
+ g_hash_table_insert (filters, (gpointer) "class", filter_class);
+ g_hash_table_insert (filters, (gpointer) "space", filter_space);
+ g_hash_table_insert (filters, (gpointer) "stripsuffix", filter_stripsuffix);
+ g_hash_table_insert (filters, (gpointer) "instance", filter_instance);
}
static void
diff --git a/libide/ide-source-snippet.c b/libide/ide-source-snippet.c
index b14b26d..2fcc894 100644
--- a/libide/ide-source-snippet.c
+++ b/libide/ide-source-snippet.c
@@ -62,7 +62,7 @@ enum {
G_DEFINE_TYPE (IdeSourceSnippet, ide_source_snippet, G_TYPE_OBJECT)
-static GParamSpec * gParamSpecs[LAST_PROP];
+static GParamSpec * properties[LAST_PROP];
IdeSourceSnippet *
ide_source_snippet_new (const gchar *trigger,
@@ -96,7 +96,7 @@ ide_source_snippet_set_snippet_text (IdeSourceSnippet *self,
{
g_free (self->snippet_text);
self->snippet_text = g_strdup (snippet_text);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SNIPPET_TEXT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SNIPPET_TEXT]);
}
}
@@ -977,49 +977,49 @@ ide_source_snippet_class_init (IdeSourceSnippetClass *klass)
object_class->get_property = ide_source_snippet_get_property;
object_class->set_property = ide_source_snippet_set_property;
- gParamSpecs[PROP_BUFFER] =
+ properties[PROP_BUFFER] =
g_param_spec_object ("buffer",
"Buffer",
"The GtkTextBuffer for the snippet.",
GTK_TYPE_TEXT_BUFFER,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_MARK_BEGIN] =
+ properties[PROP_MARK_BEGIN] =
g_param_spec_object ("mark-begin",
"Mark Begin",
"The beginning text mark.",
GTK_TYPE_TEXT_MARK,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_MARK_END] =
+ properties[PROP_MARK_END] =
g_param_spec_object ("mark-end",
"Mark End",
"The ending text mark.",
GTK_TYPE_TEXT_MARK,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_TRIGGER] =
+ properties[PROP_TRIGGER] =
g_param_spec_string ("trigger",
"Trigger",
"The trigger for the snippet.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_LANGUAGE] =
+ properties[PROP_LANGUAGE] =
g_param_spec_string ("language",
"Language",
"The language for the snippet.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_DESCRIPTION] =
+ properties[PROP_DESCRIPTION] =
g_param_spec_string ("description",
"Description",
"The description for the snippet.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_TAB_STOP] =
+ properties[PROP_TAB_STOP] =
g_param_spec_int ("tab-stop",
"Tab Stop",
"The current tab stop.",
@@ -1028,14 +1028,14 @@ ide_source_snippet_class_init (IdeSourceSnippetClass *klass)
-1,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SNIPPET_TEXT] =
+ properties [PROP_SNIPPET_TEXT] =
g_param_spec_string ("snippet-text",
"Snippet Text",
"The entire snippet text from the source file.",
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
diff --git a/libide/ide-source-view-capture.c b/libide/ide-source-view-capture.c
index b63663d..e2f3b57 100644
--- a/libide/ide-source-view-capture.c
+++ b/libide/ide-source-view-capture.c
@@ -57,7 +57,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
IdeSourceViewCapture *
ide_source_view_capture_new (IdeSourceView *view,
@@ -236,7 +236,7 @@ ide_source_view_capture_class_init (IdeSourceViewCaptureClass *klass)
object_class->get_property = ide_source_view_capture_get_property;
object_class->set_property = ide_source_view_capture_set_property;
- gParamSpecs [PROP_VIEW] =
+ properties [PROP_VIEW] =
g_param_spec_object ("view",
"View",
"The source view.",
@@ -245,7 +245,7 @@ ide_source_view_capture_class_init (IdeSourceViewCaptureClass *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);
}
static void
diff --git a/libide/ide-source-view-mode.c b/libide/ide-source-view-mode.c
index 5216bd1..31d6118 100644
--- a/libide/ide-source-view-mode.c
+++ b/libide/ide-source-view-mode.c
@@ -44,7 +44,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
get_param (IdeSourceViewMode *self,
@@ -245,14 +245,14 @@ ide_source_view_mode_class_init (IdeSourceViewModeClass *klass)
object_class->finalize = ide_source_view_mode_finalize;
object_class->get_property = ide_source_view_mode_get_property;
- gParamSpecs [PROP_NAME] =
+ properties [PROP_NAME] =
g_param_spec_string ("name",
"Name",
"The name of the mode.",
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
+ g_object_class_install_properties (object_class, LAST_PROP, properties);
gtk_widget_class_install_style_property (GTK_WIDGET_CLASS (klass),
g_param_spec_boolean ("suppress-unbound",
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index 9f0b748..caa5b52 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -272,9 +272,9 @@ enum {
LAST_FONT_SCALE
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
-static gdouble gFontScale [LAST_FONT_SCALE] = {
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
+static gdouble fontScale [LAST_FONT_SCALE] = {
0.57870, 0.69444, 0.83333,
1.0,
1.2, 1.44, 1.728, 2.48832,
@@ -951,7 +951,7 @@ ide_source_view_set_file_settings (IdeSourceView *self,
ide_source_view_connect_settings (self, file_settings);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE_SETTINGS]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE_SETTINGS]);
}
}
@@ -1054,7 +1054,7 @@ ide_source_view__buffer_notify_language_cb (IdeSourceView *self,
if (priv->indenter_adapter != NULL)
ide_extension_adapter_set_value (priv->indenter_adapter, lang_id);
ide_source_view_update_auto_indent_override (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_INDENTER]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_INDENTER]);
/*
* Update the completion providers, which are provided by plugins.
@@ -1193,7 +1193,7 @@ ide_source_view_rebuild_css (IdeSourceView *self)
gdouble font_scale;
guint font_size;
- font_scale = gFontScale [priv->font_scale];
+ font_scale = fontScale [priv->font_scale];
copy = pango_font_description_copy (priv->font_desc);
font_size = pango_font_description_get_size (priv->font_desc);
@@ -2899,7 +2899,7 @@ ide_source_view_update_display_name (IdeSourceView *self)
{
g_free (priv->display_name);
priv->display_name = g_strdup (display_name);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_MODE_DISPLAY_NAME]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MODE_DISPLAY_NAME]);
}
}
@@ -3701,7 +3701,7 @@ ide_source_view_constructed (GObject *object)
NULL);
g_object_ref (priv->line_diagnostics_renderer);
gtk_source_gutter_insert (gutter, priv->line_diagnostics_renderer, -100);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SHOW_LINE_DIAGNOSTICS]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_LINE_DIAGNOSTICS]);
}
static void
@@ -4401,7 +4401,7 @@ ide_source_view_goto_definition_symbol_cb (GObject *object,
filename, line+1, line_offset+1);
#endif
- g_signal_emit (self, gSignals [FOCUS_LOCATION], 0, srcloc);
+ g_signal_emit (self, signals [FOCUS_LOCATION], 0, srcloc);
}
}
@@ -5368,14 +5368,14 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
g_object_class_override_property (object_class, PROP_AUTO_INDENT, "auto-indent");
- gParamSpecs [PROP_BACK_FORWARD_LIST] =
+ properties [PROP_BACK_FORWARD_LIST] =
g_param_spec_object ("back-forward-list",
"Back Forward List",
"The back-forward list to track jumps.",
IDE_TYPE_BACK_FORWARD_LIST,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_COUNT] =
+ properties [PROP_COUNT] =
g_param_spec_uint ("count",
"Count",
"The count for movements.",
@@ -5384,28 +5384,28 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FILE_SETTINGS] =
+ properties [PROP_FILE_SETTINGS] =
g_param_spec_object ("file-settings",
"File Settings",
"The file settings that have been loaded for the file.",
IDE_TYPE_FILE_SETTINGS,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FONT_DESC] =
+ properties [PROP_FONT_DESC] =
g_param_spec_boxed ("font-desc",
"Font Description",
"The Pango font description to use for rendering source.",
PANGO_TYPE_FONT_DESCRIPTION,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_ENABLE_WORD_COMPLETION] =
+ properties [PROP_ENABLE_WORD_COMPLETION] =
g_param_spec_boolean ("enable-word-completion",
"Enable Word Completion",
"If words from all buffers can be used to autocomplete.",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FONT_NAME] =
+ properties [PROP_FONT_NAME] =
g_param_spec_string ("font-name",
"Font Name",
"The Pango font name to use for rendering source.",
@@ -5416,14 +5416,14 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
PROP_HIGHLIGHT_CURRENT_LINE,
"highlight-current-line");
- gParamSpecs [PROP_INDENTER] =
+ properties [PROP_INDENTER] =
g_param_spec_object ("indenter",
"Indenter",
"Indenter",
IDE_TYPE_INDENTER,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_INDENT_STYLE] =
+ properties [PROP_INDENT_STYLE] =
g_param_spec_enum ("indent-style",
"Indent Style",
"Indent Style",
@@ -5431,7 +5431,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
IDE_INDENT_STYLE_TABS,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_INSERT_MATCHING_BRACE] =
+ properties [PROP_INSERT_MATCHING_BRACE] =
g_param_spec_boolean ("insert-matching-brace",
"Insert Matching Brace",
"Insert a matching brace/bracket/quotation/parenthesis.",
@@ -5440,28 +5440,28 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
g_object_class_override_property (object_class, PROP_OVERWRITE, "overwrite");
- gParamSpecs [PROP_MODE_DISPLAY_NAME] =
+ properties [PROP_MODE_DISPLAY_NAME] =
g_param_spec_string ("mode-display-name",
"Mode Display Name",
"The display name of the keybinding mode.",
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_OVERWRITE_BRACES] =
+ properties [PROP_OVERWRITE_BRACES] =
g_param_spec_boolean ("overwrite-braces",
"Overwrite Braces",
"Overwrite a matching brace/bracket/quotation/parenthesis.",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_RUBBERBAND_SEARCH] =
+ properties [PROP_RUBBERBAND_SEARCH] =
g_param_spec_boolean ("rubberband-search",
"Rubberband Search",
"Auto scroll to next search result without moving insertion caret.",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SCROLL_OFFSET] =
+ properties [PROP_SCROLL_OFFSET] =
g_param_spec_uint ("scroll-offset",
"Scroll Offset",
"The number of lines between the insertion cursor and screen boundary.",
@@ -5470,14 +5470,14 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SEARCH_CONTEXT] =
+ properties [PROP_SEARCH_CONTEXT] =
g_param_spec_object ("search-context",
"Search Context",
"The search context for the view.",
GTK_SOURCE_TYPE_SEARCH_CONTEXT,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SEARCH_DIRECTION] =
+ properties [PROP_SEARCH_DIRECTION] =
g_param_spec_enum ("search-direction",
"Search Direction",
"The direction searches go for the view.",
@@ -5485,14 +5485,14 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
GTK_DIR_DOWN,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SHOW_GRID_LINES] =
+ properties [PROP_SHOW_GRID_LINES] =
g_param_spec_boolean ("show-grid-lines",
"Show Grid Lines",
"If the background grid should be shown.",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SHOW_LINE_CHANGES] =
+ properties [PROP_SHOW_LINE_CHANGES] =
g_param_spec_boolean ("show-line-changes",
"Show Line Changes",
"If line changes should be shown in the left gutter.",
@@ -5507,37 +5507,37 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
* This also requires that IdeBuffer:highlight-diagnostics is set to %TRUE
* to generate diagnostics.
*/
- gParamSpecs [PROP_SHOW_LINE_DIAGNOSTICS] =
+ properties [PROP_SHOW_LINE_DIAGNOSTICS] =
g_param_spec_boolean ("show-line-diagnostics",
"Show Line Diagnostics",
"If line changes diagnostics should be shown in the left gutter.",
TRUE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SHOW_SEARCH_BUBBLES] =
+ properties [PROP_SHOW_SEARCH_BUBBLES] =
g_param_spec_boolean ("show-search-bubbles",
"Show Search Bubbles",
"If search bubbles should be rendered.",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SHOW_SEARCH_SHADOW] =
+ properties [PROP_SHOW_SEARCH_SHADOW] =
g_param_spec_boolean ("show-search-shadow",
"Show Search Shadow",
"If the shadow should be drawn when performing searches.",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SNIPPET_COMPLETION] =
+ properties [PROP_SNIPPET_COMPLETION] =
g_param_spec_boolean ("snippet-completion",
"Snippet Completion",
"If snippet expansion should be enabled via the completion window.",
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 [ACTION] =
+ signals [ACTION] =
g_signal_new ("action",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5549,7 +5549,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_STRING,
G_TYPE_STRING);
- gSignals [APPEND_TO_COUNT] =
+ signals [APPEND_TO_COUNT] =
g_signal_new ("append-to-count",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5568,7 +5568,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
*
* Pair this with an emission of #IdeSourceView::end-macro to complete the sequence.
*/
- gSignals [BEGIN_MACRO] =
+ signals [BEGIN_MACRO] =
g_signal_new ("begin-macro",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5577,7 +5577,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [BEGIN_USER_ACTION] =
+ signals [BEGIN_USER_ACTION] =
g_signal_new_class_handler ("begin-user-action",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5586,7 +5586,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [SAVE_COMMAND] =
+ signals [SAVE_COMMAND] =
g_signal_new ("save-command",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5596,7 +5596,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [SAVE_SEARCH_CHAR] =
+ signals [SAVE_SEARCH_CHAR] =
g_signal_new ("save-search-char",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5617,7 +5617,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
*
* Use of this signal is not recommended except in very specific cases.
*/
- gSignals [CAPTURE_MODIFIER] =
+ signals [CAPTURE_MODIFIER] =
g_signal_new ("capture-modifier",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5630,7 +5630,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_FROM_CLASS (klass),
G_CALLBACK (ide_source_view_real_change_case));
- gSignals [CLEAR_COUNT] =
+ signals [CLEAR_COUNT] =
g_signal_new ("clear-count",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5639,7 +5639,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [CLEAR_MODIFIER] =
+ signals [CLEAR_MODIFIER] =
g_signal_new ("clear-modifier",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5648,7 +5648,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [CLEAR_SEARCH] =
+ signals [CLEAR_SEARCH] =
g_signal_new ("clear-search",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5657,7 +5657,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [CLEAR_SELECTION] =
+ signals [CLEAR_SELECTION] =
g_signal_new ("clear-selection",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5666,7 +5666,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [CLEAR_SNIPPETS] =
+ signals [CLEAR_SNIPPETS] =
g_signal_new ("clear-snippets",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5675,7 +5675,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [CYCLE_COMPLETION] =
+ signals [CYCLE_COMPLETION] =
g_signal_new ("cycle-completion",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5685,7 +5685,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
1,
GTK_TYPE_DIRECTION_TYPE);
- gSignals [DECREASE_FONT_SIZE] =
+ signals [DECREASE_FONT_SIZE] =
g_signal_new ("decrease-font-size",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5694,7 +5694,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [DELETE_SELECTION] =
+ signals [DELETE_SELECTION] =
g_signal_new ("delete-selection",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5712,7 +5712,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
* since #IdeSourceView will only keep the most recent macro recording. This can be
* helpful when implementing recording sequences such as in Vim.
*/
- gSignals [END_MACRO] =
+ signals [END_MACRO] =
g_signal_new ("end-macro",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5721,7 +5721,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [END_USER_ACTION] =
+ signals [END_USER_ACTION] =
g_signal_new_class_handler ("end-user-action",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5730,7 +5730,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [FOCUS_LOCATION] =
+ signals [FOCUS_LOCATION] =
g_signal_new ("focus-location",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -5740,7 +5740,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
1,
IDE_TYPE_SOURCE_LOCATION);
- gSignals [GOTO_DEFINITION] =
+ signals [GOTO_DEFINITION] =
g_signal_new ("goto-definition",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5749,7 +5749,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [HIDE_COMPLETION] =
+ signals [HIDE_COMPLETION] =
g_signal_new ("hide-completion",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5758,7 +5758,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [INCREASE_FONT_SIZE] =
+ signals [INCREASE_FONT_SIZE] =
g_signal_new ("increase-font-size",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5767,7 +5767,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [INDENT_SELECTION] =
+ signals [INDENT_SELECTION] =
g_signal_new ("indent-selection",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5786,7 +5786,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
* If @use_count is %TRUE, then the character will be inserted
* #IdeSourceView:count times.
*/
- gSignals [INSERT_MODIFIER] =
+ signals [INSERT_MODIFIER] =
g_signal_new ("insert-modifier",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5800,7 +5800,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_FROM_CLASS (klass),
G_CALLBACK (ide_source_view_real_join_lines));
- gSignals [JUMP] =
+ signals [JUMP] =
g_signal_new ("jump",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -5810,7 +5810,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
1,
GTK_TYPE_TEXT_ITER);
- gSignals [MOVEMENT] =
+ signals [MOVEMENT] =
g_signal_new ("movement",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5830,7 +5830,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
*
* Moves to the next search result either forwards or backwards.
*/
- gSignals [MOVE_ERROR] =
+ signals [MOVE_ERROR] =
g_signal_new ("move-error",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5840,7 +5840,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
1,
GTK_TYPE_DIRECTION_TYPE);
- gSignals [MOVE_SEARCH] =
+ signals [MOVE_SEARCH] =
g_signal_new ("move-search",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5855,7 +5855,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_BOOLEAN,
G_TYPE_BOOLEAN);
- gSignals [PASTE_CLIPBOARD_EXTENDED] =
+ signals [PASTE_CLIPBOARD_EXTENDED] =
g_signal_new ("paste-clipboard-extended",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5873,7 +5873,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
* Reselects a previousl selected range of text that was saved using
* IdeSourceView::push-selection.
*/
- gSignals [POP_SELECTION] =
+ signals [POP_SELECTION] =
g_signal_new ("pop-selection",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5889,7 +5889,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
*
* Pops the current snippet from the sourceview if there is one.
*/
- gSignals [POP_SNIPPET] =
+ signals [POP_SNIPPET] =
g_signal_new_class_handler ("pop-snippet",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -5905,7 +5905,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
* IdeSourceView::pop-selection. You must pop the selection to keep
* the selection stack in consistent order.
*/
- gSignals [PUSH_SELECTION] =
+ signals [PUSH_SELECTION] =
g_signal_new ("push-selection",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5923,7 +5923,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
* Pushes @snippet onto the snippet stack at either @iter or the insertion
* mark if @iter is not provided.
*/
- gSignals [PUSH_SNIPPET] =
+ signals [PUSH_SNIPPET] =
g_signal_new_class_handler ("push-snippet",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -5934,7 +5934,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
IDE_TYPE_SOURCE_SNIPPET,
GTK_TYPE_TEXT_ITER);
- gSignals [REBUILD_HIGHLIGHT] =
+ signals [REBUILD_HIGHLIGHT] =
g_signal_new ("rebuild-highlight",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5943,7 +5943,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [REINDENT] =
+ signals [REINDENT] =
g_signal_new_class_handler ("reindent",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5959,7 +5959,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
* Replays the last series of captured events that were captured between calls
* to #IdeSourceView::begin-macro and #IdeSourceView::end-macro.
*/
- gSignals [REPLAY_MACRO] =
+ signals [REPLAY_MACRO] =
g_signal_new ("replay-macro",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5969,7 +5969,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
1,
G_TYPE_BOOLEAN);
- gSignals [REQUEST_DOCUMENTATION] =
+ signals [REQUEST_DOCUMENTATION] =
g_signal_new ("request-documentation",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5978,7 +5978,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [RESET_FONT_SIZE] =
+ signals [RESET_FONT_SIZE] =
g_signal_new ("reset-font-size",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5987,7 +5987,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [RESTORE_INSERT_MARK] =
+ signals [RESTORE_INSERT_MARK] =
g_signal_new ("restore-insert-mark",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -5996,7 +5996,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [SAVE_INSERT_MARK] =
+ signals [SAVE_INSERT_MARK] =
g_signal_new ("save-insert-mark",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -6005,7 +6005,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_NONE,
0);
- gSignals [SELECTION_THEATRIC] =
+ signals [SELECTION_THEATRIC] =
g_signal_new ("selection-theatric",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -6015,7 +6015,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
1,
IDE_TYPE_SOURCE_VIEW_THEATRIC);
- gSignals [SET_MODE] =
+ signals [SET_MODE] =
g_signal_new ("set-mode",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -6026,7 +6026,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_STRING,
IDE_TYPE_SOURCE_VIEW_MODE_TYPE);
- gSignals [SET_OVERWRITE] =
+ signals [SET_OVERWRITE] =
g_signal_new ("set-overwrite",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -6036,7 +6036,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
1,
G_TYPE_BOOLEAN);
- gSignals [SET_SEARCH_TEXT] =
+ signals [SET_SEARCH_TEXT] =
g_signal_new ("set-search-text",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -6056,7 +6056,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
* This signal is meant to be activated from keybindings to sort the currently selected lines.
* The lines are sorted using qsort() and either strcmp() or strcasecmp().
*/
- gSignals [SORT] =
+ signals [SORT] =
g_signal_new ("sort",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -6067,7 +6067,7 @@ ide_source_view_class_init (IdeSourceViewClass *klass)
G_TYPE_BOOLEAN,
G_TYPE_BOOLEAN);
- gSignals [SWAP_SELECTION_BOUNDS] =
+ signals [SWAP_SELECTION_BOUNDS] =
g_signal_new ("swap-selection-bounds",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -6301,7 +6301,7 @@ ide_source_view_set_show_line_changes (IdeSourceView *self,
priv->show_line_changes = show_line_changes;
if (priv->line_change_renderer)
gtk_source_gutter_renderer_set_visible (priv->line_change_renderer, show_line_changes);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SHOW_LINE_CHANGES]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_LINE_CHANGES]);
}
}
@@ -6339,7 +6339,7 @@ ide_source_view_set_show_line_diagnostics (IdeSourceView *self,
gtk_source_gutter_renderer_set_visible (priv->line_diagnostics_renderer, visible);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SHOW_LINE_CHANGES]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_LINE_CHANGES]);
}
}
@@ -6372,7 +6372,7 @@ ide_source_view_set_show_grid_lines (IdeSourceView *self,
else
gtk_source_view_set_background_pattern (GTK_SOURCE_VIEW (self),
GTK_SOURCE_BACKGROUND_PATTERN_TYPE_NONE);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SHOW_GRID_LINES]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_GRID_LINES]);
}
}
@@ -6432,7 +6432,7 @@ ide_source_view_set_insert_matching_brace (IdeSourceView *self,
if (insert_matching_brace != priv->insert_matching_brace)
{
priv->insert_matching_brace = insert_matching_brace;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_INSERT_MATCHING_BRACE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_INSERT_MATCHING_BRACE]);
}
}
@@ -6449,7 +6449,7 @@ ide_source_view_set_overwrite_braces (IdeSourceView *self,
if (overwrite_braces != priv->overwrite_braces)
{
priv->overwrite_braces = overwrite_braces;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_OVERWRITE_BRACES]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_OVERWRITE_BRACES]);
}
}
@@ -6464,7 +6464,7 @@ ide_source_view_pop_snippet (IdeSourceView *self)
if ((snippet = g_queue_pop_head (priv->snippets)))
{
ide_source_snippet_finish (snippet);
- g_signal_emit (self, gSignals [POP_SNIPPET], 0, snippet);
+ g_signal_emit (self, signals [POP_SNIPPET], 0, snippet);
g_object_unref (snippet);
}
@@ -6537,7 +6537,7 @@ ide_source_view_push_snippet (IdeSourceView *self,
ide_source_snippet_context_set_line_prefix (context, line_prefix);
g_free (line_prefix);
- g_signal_emit (self, gSignals [PUSH_SNIPPET], 0, snippet, &iter);
+ g_signal_emit (self, signals [PUSH_SNIPPET], 0, snippet, &iter);
ide_source_view_block_handlers (self);
has_more_tab_stops = ide_source_snippet_begin (snippet, buffer, &iter);
@@ -6636,7 +6636,7 @@ ide_source_view_set_snippet_completion (IdeSourceView *self,
gtk_source_completion_remove_provider (completion, priv->snippets_provider, NULL);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SNIPPET_COMPLETION]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SNIPPET_COMPLETION]);
}
}
@@ -6668,7 +6668,7 @@ ide_source_view_set_back_forward_list (IdeSourceView *self,
g_return_if_fail (!back_forward_list || IDE_IS_BACK_FORWARD_LIST (back_forward_list));
if (g_set_object (&priv->back_forward_list, back_forward_list))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_BACK_FORWARD_LIST]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_BACK_FORWARD_LIST]);
}
void
@@ -6681,7 +6681,7 @@ ide_source_view_jump (IdeSourceView *self,
g_return_if_fail (location);
if (priv->buffer && !_ide_buffer_get_loading (priv->buffer))
- g_signal_emit (self, gSignals [JUMP], 0, location);
+ g_signal_emit (self, signals [JUMP], 0, location);
}
/**
@@ -6718,7 +6718,7 @@ ide_source_view_set_scroll_offset (IdeSourceView *self,
if (scroll_offset != priv->scroll_offset)
{
priv->scroll_offset = scroll_offset;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SCROLL_OFFSET]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SCROLL_OFFSET]);
}
}
@@ -7189,7 +7189,7 @@ ide_source_view_set_enable_word_completion (IdeSourceView *self,
{
priv->enable_word_completion = enable_word_completion;
ide_source_view_reload_word_completion (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_ENABLE_WORD_COMPLETION]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_ENABLE_WORD_COMPLETION]);
}
}
@@ -7248,7 +7248,7 @@ ide_source_view_set_search_direction (IdeSourceView *self,
if (direction != priv->search_direction)
{
priv->search_direction = direction;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SEARCH_DIRECTION]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SEARCH_DIRECTION]);
}
}
@@ -7286,7 +7286,7 @@ ide_source_view_set_show_search_bubbles (IdeSourceView *self,
if (show_search_bubbles != priv->show_search_bubbles)
{
priv->show_search_bubbles = show_search_bubbles;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SHOW_SEARCH_BUBBLES]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_SEARCH_BUBBLES]);
ide_source_view_invalidate_window (self);
}
}
@@ -7326,7 +7326,7 @@ ide_source_view_set_show_search_shadow (IdeSourceView *self,
if (show_search_shadow != priv->show_search_shadow)
{
priv->show_search_shadow = show_search_shadow;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SHOW_SEARCH_SHADOW]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_SEARCH_SHADOW]);
ide_source_view_invalidate_window (self);
}
}
@@ -7468,7 +7468,7 @@ ide_source_view_set_count (IdeSourceView *self,
if (count != priv->count)
{
priv->count = count;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_COUNT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_COUNT]);
}
}
@@ -7525,7 +7525,7 @@ ide_source_view_set_rubberband_search (IdeSourceView *self,
gtk_text_buffer_move_mark (buffer, priv->rubberband_insert_mark, &iter);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_RUBBERBAND_SEARCH]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_RUBBERBAND_SEARCH]);
}
}
diff --git a/libide/ide-symbol-node.c b/libide/ide-symbol-node.c
index 357ba58..ac8557c 100644
--- a/libide/ide-symbol-node.c
+++ b/libide/ide-symbol-node.c
@@ -39,7 +39,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
ide_symbol_node_finalize (GObject *object)
@@ -117,14 +117,14 @@ ide_symbol_node_class_init (IdeSymbolNodeClass *klass)
object_class->get_property = ide_symbol_node_get_property;
object_class->set_property = ide_symbol_node_set_property;
- gParamSpecs [PROP_NAME] =
+ properties [PROP_NAME] =
g_param_spec_string ("name",
"Name",
"Name",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_KIND] =
+ properties [PROP_KIND] =
g_param_spec_enum ("kind",
"Kind",
"Kind",
@@ -132,7 +132,7 @@ ide_symbol_node_class_init (IdeSymbolNodeClass *klass)
IDE_SYMBOL_NONE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FLAGS] =
+ properties [PROP_FLAGS] =
g_param_spec_flags ("flags",
"Flags",
"Flags",
@@ -140,7 +140,7 @@ ide_symbol_node_class_init (IdeSymbolNodeClass *klass)
IDE_SYMBOL_FLAGS_NONE,
(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
diff --git a/libide/ide-thread-pool.c b/libide/ide-thread-pool.c
index 5010712..29a604c 100644
--- a/libide/ide-thread-pool.c
+++ b/libide/ide-thread-pool.c
@@ -44,7 +44,7 @@ typedef struct
EGG_DEFINE_COUNTER (TotalTasks, "ThreadPool", "Total Tasks", "Total number of tasks processed.")
EGG_DEFINE_COUNTER (QueuedTasks, "ThreadPool", "Queued Tasks", "Current number of pending tasks.")
-static GThreadPool *gThreadPools [IDE_THREAD_POOL_LAST];
+static GThreadPool *threadPools [IDE_THREAD_POOL_LAST];
enum {
TYPE_TASK,
@@ -54,7 +54,7 @@ enum {
static inline GThreadPool *
ide_thread_pool_get_pool (IdeThreadPoolKind kind)
{
- return gThreadPools [kind];
+ return threadPools [kind];
}
/**
@@ -190,7 +190,7 @@ _ide_thread_pool_init (void)
* We don't want to consume threads fro other GTask's such as those regarding IO so we manage
* these work items exclusively.
*/
- gThreadPools [IDE_THREAD_POOL_COMPILER] = g_thread_pool_new (ide_thread_pool_worker,
+ threadPools [IDE_THREAD_POOL_COMPILER] = g_thread_pool_new (ide_thread_pool_worker,
NULL,
COMPILER_MAX_THREADS,
TRUE,
@@ -200,7 +200,7 @@ _ide_thread_pool_init (void)
* Create our pool exclusive to things like indexing. Such examples including building of
* ctags indexes or highlight indexes.
*/
- gThreadPools [IDE_THREAD_POOL_INDEXER] = g_thread_pool_new (ide_thread_pool_worker,
+ threadPools [IDE_THREAD_POOL_INDEXER] = g_thread_pool_new (ide_thread_pool_worker,
NULL,
INDEXER_MAX_THREADS,
TRUE,
diff --git a/libide/ide.c b/libide/ide.c
index 54c6775..505a010 100644
--- a/libide/ide.c
+++ b/libide/ide.c
@@ -44,8 +44,8 @@
#include "modeline-parser.h"
-static gboolean gProgramNameRead;
-static const gchar *gProgramName = "libide";
+static gboolean programNameRead;
+static const gchar *programName = "libide";
#if defined (G_HAS_CONSTRUCTORS)
# ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
@@ -59,20 +59,20 @@ G_DEFINE_CONSTRUCTOR(ide_init_ctor)
const gchar *
ide_get_program_name (void)
{
- gProgramNameRead = 1;
- return gProgramName;
+ programNameRead = 1;
+ return programName;
}
void
ide_set_program_name (const gchar *program_name)
{
- if (gProgramNameRead)
+ if (programNameRead)
{
g_warning (_("You must call %s() before using libide."), G_STRFUNC);
return;
}
- gProgramName = g_intern_string (program_name);
+ programName = g_intern_string (program_name);
}
static void
diff --git a/libide/theatrics/ide-box-theatric.c b/libide/theatrics/ide-box-theatric.c
index 10defbc..061828e 100644
--- a/libide/theatrics/ide-box-theatric.c
+++ b/libide/theatrics/ide-box-theatric.c
@@ -51,7 +51,7 @@ enum {
G_DEFINE_TYPE (IdeBoxTheatric, ide_box_theatric, G_TYPE_OBJECT)
-static GParamSpec *gParamSpecs[LAST_PROP];
+static GParamSpec *properties[LAST_PROP];
static void
get_toplevel_rect (IdeBoxTheatric *theatric,
@@ -254,7 +254,7 @@ ide_box_theatric_class_init (IdeBoxTheatricClass *klass)
object_class->get_property = ide_box_theatric_get_property;
object_class->set_property = ide_box_theatric_set_property;
- gParamSpecs[PROP_ALPHA] =
+ properties[PROP_ALPHA] =
g_param_spec_double ("alpha",
"Alpha",
"Alpha",
@@ -263,14 +263,14 @@ ide_box_theatric_class_init (IdeBoxTheatricClass *klass)
1.0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_BACKGROUND] =
+ properties[PROP_BACKGROUND] =
g_param_spec_string ("background",
"background",
"background",
"#000000",
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_HEIGHT] =
+ properties[PROP_HEIGHT] =
g_param_spec_int ("height",
"height",
"height",
@@ -279,7 +279,7 @@ ide_box_theatric_class_init (IdeBoxTheatricClass *klass)
0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_TARGET] =
+ properties[PROP_TARGET] =
g_param_spec_object ("target",
"Target",
"Target",
@@ -288,7 +288,7 @@ ide_box_theatric_class_init (IdeBoxTheatricClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_WIDTH] =
+ properties[PROP_WIDTH] =
g_param_spec_int ("width",
"width",
"width",
@@ -297,7 +297,7 @@ ide_box_theatric_class_init (IdeBoxTheatricClass *klass)
0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_X] =
+ properties[PROP_X] =
g_param_spec_int ("x",
"x",
"x",
@@ -306,7 +306,7 @@ ide_box_theatric_class_init (IdeBoxTheatricClass *klass)
0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs[PROP_Y] =
+ properties[PROP_Y] =
g_param_spec_int ("y",
"y",
"y",
@@ -315,7 +315,7 @@ ide_box_theatric_class_init (IdeBoxTheatricClass *klass)
0,
(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
diff --git a/plugins/autotools/ide-autotools-build-system.c b/plugins/autotools/ide-autotools-build-system.c
index 74eecdd..3df3824 100644
--- a/plugins/autotools/ide-autotools-build-system.c
+++ b/plugins/autotools/ide-autotools-build-system.c
@@ -73,7 +73,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
const gchar *
ide_autotools_build_system_get_tarball_name (IdeAutotoolsBuildSystem *self)
@@ -678,21 +678,21 @@ ide_autotools_build_system_class_init (IdeAutotoolsBuildSystemClass *klass)
object_class->get_property = ide_autotools_build_system_get_property;
object_class->set_property = ide_autotools_build_system_set_property;
- gParamSpecs [PROP_TARBALL_NAME] =
+ properties [PROP_TARBALL_NAME] =
g_param_spec_string ("tarball-name",
"Tarball Name",
"The name of the project tarball.",
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_PROJECT_FILE] =
+ properties [PROP_PROJECT_FILE] =
g_param_spec_object ("project-file",
"Project File",
"The path of the project file.",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT | 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
diff --git a/plugins/autotools/ide-autotools-build-task.c b/plugins/autotools/ide-autotools-build-task.c
index 916a0f1..30f47a3 100644
--- a/plugins/autotools/ide-autotools-build-task.c
+++ b/plugins/autotools/ide-autotools-build-task.c
@@ -92,8 +92,8 @@ static gboolean step_make_all (GTask *task,
WorkerState *state,
GCancellable *cancellable);
-static GParamSpec *gParamSpecs [LAST_PROP];
-static WorkStep gWorkSteps [] = {
+static GParamSpec *properties [LAST_PROP];
+static WorkStep workSteps [] = {
step_mkdirs,
step_autogen,
step_configure,
@@ -187,7 +187,7 @@ ide_autotools_build_task_set_config (IdeAutotoolsBuildTask *self,
g_clear_pointer (&priv->config, g_key_file_unref);
priv->config = config ? g_key_file_ref (config) : NULL;
g_object_notify_by_pspec (G_OBJECT (self),
- gParamSpecs [PROP_CONFIG]);
+ properties [PROP_CONFIG]);
}
}
@@ -223,7 +223,7 @@ ide_autotools_build_task_set_device (IdeAutotoolsBuildTask *self,
priv = ide_autotools_build_task_get_instance_private (self);
if (g_set_object (&priv->device, device))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_DEVICE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DEVICE]);
}
/**
@@ -275,7 +275,7 @@ ide_autotools_build_task_set_directory (IdeAutotoolsBuildTask *self,
if (priv->directory != directory)
if (g_set_object (&priv->directory, directory))
g_object_notify_by_pspec (G_OBJECT (self),
- gParamSpecs [PROP_DIRECTORY]);
+ properties [PROP_DIRECTORY]);
}
static void
@@ -372,7 +372,7 @@ ide_autotools_build_task_class_init (IdeAutotoolsBuildTaskClass *klass)
object_class->get_property = ide_autotools_build_task_get_property;
object_class->set_property = ide_autotools_build_task_set_property;
- gParamSpecs [PROP_CONFIG] =
+ properties [PROP_CONFIG] =
g_param_spec_boxed ("config",
"Config",
"The overlay config for the compilation.",
@@ -381,7 +381,7 @@ ide_autotools_build_task_class_init (IdeAutotoolsBuildTaskClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_DEVICE] =
+ properties [PROP_DEVICE] =
g_param_spec_object ("device",
"Device",
"The device to build for.",
@@ -390,7 +390,7 @@ ide_autotools_build_task_class_init (IdeAutotoolsBuildTaskClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_DIRECTORY] =
+ properties [PROP_DIRECTORY] =
g_param_spec_object ("directory",
"Directory",
"The directory to perform the build within.",
@@ -399,7 +399,7 @@ ide_autotools_build_task_class_init (IdeAutotoolsBuildTaskClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_REQUIRE_AUTOGEN] =
+ properties [PROP_REQUIRE_AUTOGEN] =
g_param_spec_boolean ("require-autogen",
"Require Autogen",
"If autogen.sh should be forced to execute.",
@@ -408,7 +408,7 @@ ide_autotools_build_task_class_init (IdeAutotoolsBuildTaskClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_REQUIRE_CONFIGURE] =
+ properties [PROP_REQUIRE_CONFIGURE] =
g_param_spec_boolean ("require-configure",
"Require Configure",
"If configure should be forced to execute.",
@@ -417,7 +417,7 @@ ide_autotools_build_task_class_init (IdeAutotoolsBuildTaskClass *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);
}
static void
@@ -607,10 +607,10 @@ ide_autotools_build_task_execute_worker (GTask *task,
g_return_if_fail (state);
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
- for (i = 0; gWorkSteps [i]; i++)
+ for (i = 0; workSteps [i]; i++)
{
if (g_cancellable_is_cancelled (cancellable) ||
- !gWorkSteps [i] (task, self, state, cancellable))
+ !workSteps [i] (task, self, state, cancellable))
return;
}
diff --git a/plugins/autotools/ide-autotools-builder.c b/plugins/autotools/ide-autotools-builder.c
index d9bfc09..549c747 100644
--- a/plugins/autotools/ide-autotools-builder.c
+++ b/plugins/autotools/ide-autotools-builder.c
@@ -43,7 +43,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
GKeyFile *
ide_autotools_builder_get_config (IdeAutotoolsBuilder *self)
@@ -64,7 +64,7 @@ ide_autotools_builder_set_config (IdeAutotoolsBuilder *self,
g_clear_pointer (&self->config, g_key_file_unref);
if (config)
self->config = g_key_file_ref (config);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CONFIG]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CONFIG]);
}
}
@@ -85,7 +85,7 @@ ide_autotools_builder_set_device (IdeAutotoolsBuilder *self,
if (self->device != device)
if (g_set_object (&self->device, device))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_DEVICE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DEVICE]);
}
static void
@@ -298,7 +298,7 @@ ide_autotools_builder_class_init (IdeAutotoolsBuilderClass *klass)
builder_class->build_async = ide_autotools_builder_build_async;
builder_class->build_finish = ide_autotools_builder_build_finish;
- gParamSpecs [PROP_CONFIG] =
+ properties [PROP_CONFIG] =
g_param_spec_boxed ("config",
"Config",
"The configuration for the build.",
@@ -307,7 +307,7 @@ ide_autotools_builder_class_init (IdeAutotoolsBuilderClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_DEVICE] =
+ properties [PROP_DEVICE] =
g_param_spec_object ("device",
"Device",
"The device to build for.",
@@ -316,7 +316,7 @@ ide_autotools_builder_class_init (IdeAutotoolsBuilderClass *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);
}
static void
diff --git a/plugins/autotools/ide-autotools-project-miner.c b/plugins/autotools/ide-autotools-project-miner.c
index 409fff7..311e3e7 100644
--- a/plugins/autotools/ide-autotools-project-miner.c
+++ b/plugins/autotools/ide-autotools-project-miner.c
@@ -42,7 +42,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static IdeDoap *
ide_autotools_project_miner_find_doap (IdeAutotoolsProjectMiner *self,
@@ -387,14 +387,14 @@ ide_autotools_project_miner_class_init (IdeAutotoolsProjectMinerClass *klass)
object_class->get_property = ide_autotools_project_miner_get_property;
object_class->set_property = ide_autotools_project_miner_set_property;
- gParamSpecs [PROP_ROOT_DIRECTORY] =
+ properties [PROP_ROOT_DIRECTORY] =
g_param_spec_object ("root-directory",
"Root Directory",
"The root directory to scan from.",
G_TYPE_FILE,
(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
@@ -426,5 +426,5 @@ ide_autotools_project_miner_set_root_directory (IdeAutotoolsProjectMiner *self,
g_return_if_fail (!root_directory || G_IS_FILE (root_directory));
if (g_set_object (&self->root_directory, root_directory))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_ROOT_DIRECTORY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_ROOT_DIRECTORY]);
}
diff --git a/plugins/autotools/ide-makecache.c b/plugins/autotools/ide-makecache.c
index c224fe8..4751f7e 100644
--- a/plugins/autotools/ide-makecache.c
+++ b/plugins/autotools/ide-makecache.c
@@ -77,7 +77,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
file_flags_lookup_free (gpointer data)
@@ -1241,14 +1241,14 @@ ide_makecache_class_init (IdeMakecacheClass *klass)
object_class->get_property = ide_makecache_get_property;
object_class->set_property = ide_makecache_set_property;
- gParamSpecs [PROP_MAKEFILE] =
+ properties [PROP_MAKEFILE] =
g_param_spec_object ("makefile",
"Makefile",
"The root makefile to be cached.",
G_TYPE_FILE,
(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
diff --git a/plugins/c-pack/ide-c-format-provider.c b/plugins/c-pack/ide-c-format-provider.c
index ff6666d..d4f159a 100644
--- a/plugins/c-pack/ide-c-format-provider.c
+++ b/plugins/c-pack/ide-c-format-provider.c
@@ -51,7 +51,7 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED (IdeCFormatProvider,
completion_provider_iface_init)
G_IMPLEMENT_INTERFACE (IDE_TYPE_COMPLETION_PROVIDER, NULL))
-static const FormatItem gGDateTimeFormats[] = {
+static const FormatItem g_dateTimeFormats[] = {
{ "%a", "the abbreviated weekday name according to the current locale" },
{ "%A", "the full weekday name according to the current locale" },
{ "%b", "the abbreviated month name according to the current locale" },
@@ -167,18 +167,18 @@ create_matches_g_date_time_format (const gchar *text)
if (text)
{
- for (i = 0; gGDateTimeFormats [i].format; i++)
+ for (i = 0; g_dateTimeFormats [i].format; i++)
{
- if (g_str_has_prefix (gGDateTimeFormats [i].format, text))
+ if (g_str_has_prefix (g_dateTimeFormats [i].format, text))
{
g_autofree gchar *markup = NULL;
const gchar *insert;
- insert = gGDateTimeFormats [i].format + strlen (text);
+ insert = g_dateTimeFormats [i].format + strlen (text);
markup = g_strdup_printf ("%s - %s",
- gGDateTimeFormats [i].format,
- gGDateTimeFormats [i].description);
+ g_dateTimeFormats [i].format,
+ g_dateTimeFormats [i].description);
list = g_list_prepend (list,
g_object_new (GTK_SOURCE_TYPE_COMPLETION_ITEM,
"markup", markup,
diff --git a/plugins/clang/ide-clang-completion-item.c b/plugins/clang/ide-clang-completion-item.c
index 17ebc96..8d563a9 100644
--- a/plugins/clang/ide-clang-completion-item.c
+++ b/plugins/clang/ide-clang-completion-item.c
@@ -41,7 +41,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
ide_clang_completion_item_lazy_init (IdeClangCompletionItem *self)
@@ -413,7 +413,7 @@ ide_clang_completion_item_class_init (IdeClangCompletionItemClass *klass)
object_class->get_property = ide_clang_completion_item_get_property;
object_class->set_property = ide_clang_completion_item_set_property;
- gParamSpecs [PROP_INDEX] =
+ properties [PROP_INDEX] =
g_param_spec_uint ("index",
"Index",
"The index in the result set.",
@@ -422,14 +422,14 @@ ide_clang_completion_item_class_init (IdeClangCompletionItemClass *klass)
0,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_RESULTS] =
+ properties [PROP_RESULTS] =
g_param_spec_boxed ("results",
"Results",
"The Clang result set.",
IDE_TYPE_REF_PTR,
(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
diff --git a/plugins/clang/ide-clang-symbol-tree.c b/plugins/clang/ide-clang-symbol-tree.c
index c6cfd1d..3857b52 100644
--- a/plugins/clang/ide-clang-symbol-tree.c
+++ b/plugins/clang/ide-clang-symbol-tree.c
@@ -52,7 +52,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
/**
* ide_clang_symbol_tree_get_file:
@@ -289,21 +289,21 @@ ide_clang_symbol_tree_class_init (IdeClangSymbolTreeClass *klass)
object_class->get_property = ide_clang_symbol_tree_get_property;
object_class->set_property = ide_clang_symbol_tree_set_property;
- gParamSpecs [PROP_FILE] =
+ properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
"File",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_NATIVE] =
+ properties [PROP_NATIVE] =
g_param_spec_boxed ("native",
"Native",
"Native",
IDE_TYPE_REF_PTR,
(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
diff --git a/plugins/clang/ide-clang-translation-unit.c b/plugins/clang/ide-clang-translation-unit.c
index 9faa31c..bba3c8c 100644
--- a/plugins/clang/ide-clang-translation-unit.c
+++ b/plugins/clang/ide-clang-translation-unit.c
@@ -82,7 +82,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
code_complete_state_free (gpointer data)
@@ -139,7 +139,7 @@ ide_clang_translation_unit_set_file (IdeClangTranslationUnit *self,
g_return_if_fail (G_IS_FILE (file));
if (g_set_object (&self->file, file))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
}
IdeClangTranslationUnit *
@@ -577,27 +577,27 @@ ide_clang_translation_unit_class_init (IdeClangTranslationUnitClass *klass)
object_class->get_property = ide_clang_translation_unit_get_property;
object_class->set_property = ide_clang_translation_unit_set_property;
- gParamSpecs [PROP_FILE] =
+ properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
"The file used to build the translation unit.",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_INDEX] =
+ properties [PROP_INDEX] =
g_param_spec_boxed ("index",
"Index",
"The highlight index for the translation unit.",
IDE_TYPE_HIGHLIGHT_INDEX,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_NATIVE] =
+ properties [PROP_NATIVE] =
g_param_spec_pointer ("native",
"Native",
"The native translation unit pointer.",
(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SERIAL] =
+ properties [PROP_SERIAL] =
g_param_spec_int64 ("serial",
"Serial",
"A sequence number for the translation unit.",
@@ -606,7 +606,7 @@ ide_clang_translation_unit_class_init (IdeClangTranslationUnitClass *klass)
0,
(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
diff --git a/plugins/command-bar/gb-command-bar.c b/plugins/command-bar/gb-command-bar.c
index 791caed..39a85a8 100644
--- a/plugins/command-bar/gb-command-bar.c
+++ b/plugins/command-bar/gb-command-bar.c
@@ -75,7 +75,7 @@ enum {
LAST_SIGNAL
};
-static guint gSignals [LAST_SIGNAL];
+static guint signals [LAST_SIGNAL];
static gboolean
key_press_event_cb (GbWorkbench *workbench,
@@ -682,7 +682,7 @@ gb_command_bar_class_init (GbCommandBarClass *klass)
* GbCommandBar::complete:
* @bar: the object which received the signal.
*/
- gSignals [COMPLETE] =
+ signals [COMPLETE] =
g_signal_new_class_handler ("complete",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -696,7 +696,7 @@ gb_command_bar_class_init (GbCommandBarClass *klass)
* @bar: the object which received the signal.
* @direction: direction to move
*/
- gSignals [MOVE_HISTORY] =
+ signals [MOVE_HISTORY] =
g_signal_new_class_handler ("move-history",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
diff --git a/plugins/command-bar/gb-command-gaction.c b/plugins/command-bar/gb-command-gaction.c
index f7a607b..d668a8c 100644
--- a/plugins/command-bar/gb-command-gaction.c
+++ b/plugins/command-bar/gb-command-gaction.c
@@ -42,7 +42,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_command_gaction_set_action_group (GbCommandGaction *gaction,
@@ -182,21 +182,21 @@ gb_command_gaction_class_init (GbCommandGactionClass *klass)
command_class->execute = gb_command_gaction_execute;
- gParamSpecs [PROP_ACTION_GROUP] =
+ properties [PROP_ACTION_GROUP] =
g_param_spec_object ("action-group",
"Action Group",
"The GActionGroup containing the action.",
G_TYPE_ACTION_GROUP,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_ACTION_NAME] =
+ properties [PROP_ACTION_NAME] =
g_param_spec_string ("action-name",
"Action Name",
"The name of the action to execute.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_PARAMETERS] =
+ properties [PROP_PARAMETERS] =
g_param_spec_variant ("parameters",
"Parameters",
"The parameters for the action.",
@@ -204,7 +204,7 @@ gb_command_gaction_class_init (GbCommandGactionClass *klass)
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
diff --git a/plugins/command-bar/gb-command-provider.c b/plugins/command-bar/gb-command-provider.c
index 9735070..b449cd9 100644
--- a/plugins/command-bar/gb-command-provider.c
+++ b/plugins/command-bar/gb-command-provider.c
@@ -44,8 +44,8 @@ enum {
LAST_SIGNAL
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
GbCommandProvider *
gb_command_provider_new (GbWorkbench *workbench)
@@ -97,7 +97,7 @@ gb_command_provider_set_active_view (GbCommandProvider *provider,
}
g_object_notify_by_pspec (G_OBJECT (provider),
- gParamSpecs [PROP_ACTIVE_VIEW]);
+ properties [PROP_ACTIVE_VIEW]);
}
static void
@@ -184,7 +184,7 @@ gb_command_provider_set_workbench (GbCommandProvider *provider,
}
g_object_notify_by_pspec (G_OBJECT (provider),
- gParamSpecs [PROP_WORKBENCH]);
+ properties [PROP_WORKBENCH]);
}
}
@@ -210,7 +210,7 @@ gb_command_provider_set_priority (GbCommandProvider *provider,
{
priv->priority = priority;
g_object_notify_by_pspec (G_OBJECT (provider),
- gParamSpecs [PROP_PRIORITY]);
+ properties [PROP_PRIORITY]);
}
}
@@ -231,7 +231,7 @@ gb_command_provider_lookup (GbCommandProvider *provider,
g_return_val_if_fail (GB_IS_COMMAND_PROVIDER (provider), NULL);
g_return_val_if_fail (command_text, NULL);
- g_signal_emit (provider, gSignals [LOOKUP], 0, command_text, &ret);
+ g_signal_emit (provider, signals [LOOKUP], 0, command_text, &ret);
return ret;
}
@@ -252,7 +252,7 @@ gb_command_provider_complete (GbCommandProvider *provider,
g_return_if_fail (completions);
g_return_if_fail (initial_command_text);
- g_signal_emit (provider, gSignals [COMPLETE], 0, completions, initial_command_text);
+ g_signal_emit (provider, signals [COMPLETE], 0, completions, initial_command_text);
}
@@ -314,7 +314,7 @@ gb_command_provider_class_init (GbCommandProviderClass *klass)
object_class->get_property = gb_command_provider_get_property;
object_class->set_property = gb_command_provider_set_property;
- gParamSpecs [PROP_ACTIVE_VIEW] =
+ properties [PROP_ACTIVE_VIEW] =
g_param_spec_object ("active-tab",
"Active View",
"The last focused GbView widget.",
@@ -333,7 +333,7 @@ gb_command_provider_class_init (GbCommandProviderClass *klass)
*
* A negative priority is allowed;
*/
- gParamSpecs [PROP_PRIORITY] =
+ properties [PROP_PRIORITY] =
g_param_spec_int ("priority",
"Priority",
"The priority of the command provider.",
@@ -349,7 +349,7 @@ gb_command_provider_class_init (GbCommandProviderClass *klass)
* and the workbench to work on it. It keeps track of the last focused tab
* for convenience by action providers.
*/
- gParamSpecs [PROP_WORKBENCH] =
+ properties [PROP_WORKBENCH] =
g_param_spec_object ("workbench",
"Workbench",
"The target workbench.",
@@ -358,7 +358,7 @@ gb_command_provider_class_init (GbCommandProviderClass *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);
/**
* GbCommandProvider::lookup:
@@ -372,7 +372,7 @@ gb_command_provider_class_init (GbCommandProviderClass *klass)
* If successful, the callee can set @parameter, to specify the
* parameters that should be passed to the resulting action.
*/
- gSignals [LOOKUP] =
+ signals [LOOKUP] =
g_signal_new ("lookup",
GB_TYPE_COMMAND_PROVIDER,
G_SIGNAL_RUN_LAST,
@@ -393,7 +393,7 @@ gb_command_provider_class_init (GbCommandProviderClass *klass)
* received. All providers should all all possible completions, matching
* the initial test.
*/
- gSignals [COMPLETE] =
+ signals [COMPLETE] =
g_signal_new ("complete",
GB_TYPE_COMMAND_PROVIDER,
G_SIGNAL_RUN_LAST,
diff --git a/plugins/command-bar/gb-command-result.c b/plugins/command-bar/gb-command-result.c
index 3c39ce7..2c15773 100644
--- a/plugins/command-bar/gb-command-result.c
+++ b/plugins/command-bar/gb-command-result.c
@@ -41,7 +41,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
GbCommandResult *
gb_command_result_new (void)
@@ -68,7 +68,7 @@ gb_command_result_set_command_text (GbCommandResult *result,
g_free (result->command_text);
result->command_text = g_strdup (command_text);
g_object_notify_by_pspec (G_OBJECT (result),
- gParamSpecs [PROP_COMMAND_TEXT]);
+ properties [PROP_COMMAND_TEXT]);
}
}
@@ -91,7 +91,7 @@ gb_command_result_set_result_text (GbCommandResult *result,
g_free (result->result_text);
result->result_text = g_strdup (result_text);
g_object_notify_by_pspec (G_OBJECT (result),
- gParamSpecs [PROP_RESULT_TEXT]);
+ properties [PROP_RESULT_TEXT]);
}
}
@@ -113,7 +113,7 @@ gb_command_result_set_is_running (GbCommandResult *result,
{
result->is_running = !!is_running;
g_object_notify_by_pspec (G_OBJECT (result),
- gParamSpecs [PROP_IS_RUNNING]);
+ properties [PROP_IS_RUNNING]);
}
}
@@ -135,7 +135,7 @@ gb_command_result_set_is_error (GbCommandResult *result,
{
result->is_error = !!is_error;
g_object_notify_by_pspec (G_OBJECT (result),
- gParamSpecs [PROP_IS_ERROR]);
+ properties [PROP_IS_ERROR]);
}
}
@@ -221,7 +221,7 @@ gb_command_result_class_init (GbCommandResultClass *klass)
object_class->get_property = gb_command_result_get_property;
object_class->set_property = gb_command_result_set_property;
- gParamSpecs [PROP_COMMAND_TEXT] =
+ properties [PROP_COMMAND_TEXT] =
g_param_spec_string ("command-text",
"Command Text",
"The command text if any.",
@@ -229,7 +229,7 @@ gb_command_result_class_init (GbCommandResultClass *klass)
(G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_IS_ERROR] =
+ properties [PROP_IS_ERROR] =
g_param_spec_boolean ("is-error",
"Is Error",
"If the result is an error.",
@@ -237,7 +237,7 @@ gb_command_result_class_init (GbCommandResultClass *klass)
(G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_IS_RUNNING] =
+ properties [PROP_IS_RUNNING] =
g_param_spec_boolean ("is-running",
"Is Running",
"If the command is still running.",
@@ -245,7 +245,7 @@ gb_command_result_class_init (GbCommandResultClass *klass)
(G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_RESULT_TEXT] =
+ properties [PROP_RESULT_TEXT] =
g_param_spec_string ("result-text",
"Result Text",
"The result text if any.",
@@ -253,7 +253,7 @@ gb_command_result_class_init (GbCommandResultClass *klass)
(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
diff --git a/plugins/command-bar/gb-command-vim.c b/plugins/command-bar/gb-command-vim.c
index 519c967..f6e502f 100644
--- a/plugins/command-bar/gb-command-vim.c
+++ b/plugins/command-bar/gb-command-vim.c
@@ -41,7 +41,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
IdeSourceView *
gb_command_vim_get_source_view (GbCommandVim *vim)
@@ -59,7 +59,7 @@ gb_command_vim_set_source_view (GbCommandVim *vim,
g_return_if_fail (IDE_IS_SOURCE_VIEW (source_view));
if (ide_set_weak_pointer (&vim->source_view, source_view))
- g_object_notify_by_pspec (G_OBJECT (vim), gParamSpecs [PROP_SOURCE_VIEW]);
+ g_object_notify_by_pspec (G_OBJECT (vim), properties [PROP_SOURCE_VIEW]);
}
const gchar *
@@ -81,7 +81,7 @@ gb_command_vim_set_command_text (GbCommandVim *vim,
{
g_free (vim->command_text);
vim->command_text = g_strdup (command_text);
- g_object_notify_by_pspec (G_OBJECT (vim), gParamSpecs [PROP_COMMAND_TEXT]);
+ g_object_notify_by_pspec (G_OBJECT (vim), properties [PROP_COMMAND_TEXT]);
}
}
@@ -178,21 +178,21 @@ gb_command_vim_class_init (GbCommandVimClass *klass)
command_class->execute = gb_command_vim_execute;
- gParamSpecs [PROP_COMMAND_TEXT] =
+ properties [PROP_COMMAND_TEXT] =
g_param_spec_string ("command-text",
"Command Text",
"The command text to execute",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SOURCE_VIEW] =
+ properties [PROP_SOURCE_VIEW] =
g_param_spec_object ("source-view",
"Source View",
"The source view to modify.",
IDE_TYPE_SOURCE_VIEW,
(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
diff --git a/plugins/command-bar/gb-command.c b/plugins/command-bar/gb-command.c
index 191bc65..cd7ab65 100644
--- a/plugins/command-bar/gb-command.c
+++ b/plugins/command-bar/gb-command.c
@@ -25,7 +25,7 @@ enum {
LAST_SIGNAL
};
-static guint gSignals [LAST_SIGNAL];
+static guint signals [LAST_SIGNAL];
GbCommand *
gb_command_new (void)
@@ -44,7 +44,7 @@ gb_command_execute (GbCommand *command)
{
GbCommandResult *ret = NULL;
g_return_val_if_fail (GB_IS_COMMAND (command), NULL);
- g_signal_emit (command, gSignals [EXECUTE], 0, &ret);
+ g_signal_emit (command, signals [EXECUTE], 0, &ret);
return ret;
}
@@ -53,7 +53,7 @@ gb_command_class_init (GbCommandClass *klass)
{
klass->execute = gb_command_real_execute;
- gSignals [EXECUTE] =
+ signals [EXECUTE] =
g_signal_new ("execute",
GB_TYPE_COMMAND,
G_SIGNAL_RUN_LAST,
diff --git a/plugins/ctags/ide-ctags-builder.c b/plugins/ctags/ide-ctags-builder.c
index 0935655..3d316c4 100644
--- a/plugins/ctags/ide-ctags-builder.c
+++ b/plugins/ctags/ide-ctags-builder.c
@@ -58,7 +58,7 @@ enum {
G_DEFINE_DYNAMIC_TYPE (IdeCtagsBuilder, ide_ctags_builder, IDE_TYPE_OBJECT)
-static guint gSignals [LAST_SIGNAL];
+static guint signals [LAST_SIGNAL];
IdeCtagsBuilder *
ide_ctags_builder_new (void)
@@ -85,7 +85,7 @@ ide_ctags_builder_build_cb (GObject *object,
{
file = g_task_get_task_data (task);
g_assert (G_IS_FILE (file));
- g_signal_emit (self, gSignals [TAGS_BUILT], 0, file);
+ g_signal_emit (self, signals [TAGS_BUILT], 0, file);
}
else
{
@@ -289,7 +289,7 @@ ide_ctags_builder_class_init (IdeCtagsBuilderClass *klass)
object_class->finalize = ide_ctags_builder_finalize;
- gSignals [TAGS_BUILT] =
+ signals [TAGS_BUILT] =
g_signal_new ("tags-built",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
diff --git a/plugins/ctags/ide-ctags-index.c b/plugins/ctags/ide-ctags-index.c
index bd3368f..3a4088d 100644
--- a/plugins/ctags/ide-ctags-index.c
+++ b/plugins/ctags/ide-ctags-index.c
@@ -58,7 +58,7 @@ EGG_DEFINE_COUNTER (instances, "IdeCtagsIndex", "Instances", "Number of IdeCtags
EGG_DEFINE_COUNTER (index_entries, "IdeCtagsIndex", "N Entries", "Number of entries in indexes.")
EGG_DEFINE_COUNTER (heap_size, "IdeCtagsIndex", "Heap Size", "Size of index string heaps.")
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static gint
ide_ctags_index_entry_compare_keyword (gconstpointer a,
@@ -283,7 +283,7 @@ ide_ctags_index_set_file (IdeCtagsIndex *self,
g_assert (!file || G_IS_FILE (file));
if (g_set_object (&self->file, file))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
}
static void
@@ -296,7 +296,7 @@ ide_ctags_index_set_path_root (IdeCtagsIndex *self,
{
g_free (self->path_root);
self->path_root = g_strdup (path_root);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_PATH_ROOT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_PATH_ROOT]);
}
}
@@ -387,14 +387,14 @@ ide_ctags_index_class_init (IdeCtagsIndexClass *klass)
object_class->get_property = ide_ctags_index_get_property;
object_class->set_property = ide_ctags_index_set_property;
- gParamSpecs [PROP_FILE] =
+ properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
"The file containing the ctags data.",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_MTIME] =
+ properties [PROP_MTIME] =
g_param_spec_uint64 ("mtime",
"Mtime",
"Mtime",
@@ -403,14 +403,14 @@ ide_ctags_index_class_init (IdeCtagsIndexClass *klass)
0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_PATH_ROOT] =
+ properties [PROP_PATH_ROOT] =
g_param_spec_string ("path-root",
"Path Root",
"The root path to use when resolving relative paths.",
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
diff --git a/plugins/devhelp/gb-devhelp-document.c b/plugins/devhelp/gb-devhelp-document.c
index d457f36..f2104d2 100644
--- a/plugins/devhelp/gb-devhelp-document.c
+++ b/plugins/devhelp/gb-devhelp-document.c
@@ -51,7 +51,7 @@ enum {
PROP_TITLE
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
GbDevhelpDocument *
gb_devhelp_document_new (void)
@@ -92,7 +92,7 @@ gb_devhelp_document_set_uri (GbDevhelpDocument *document,
{
g_clear_pointer (&document->uri, g_free);
document->uri = g_strdup (uri);
- g_object_notify_by_pspec (G_OBJECT (document), gParamSpecs [PROP_URI]);
+ g_object_notify_by_pspec (G_OBJECT (document), properties [PROP_URI]);
}
}
@@ -251,14 +251,14 @@ gb_devhelp_document_class_init (GbDevhelpDocumentClass *klass)
g_object_class_override_property (object_class, PROP_READ_ONLY, "read-only");
g_object_class_override_property (object_class, PROP_TITLE, "title");
- gParamSpecs [PROP_URI] =
+ properties [PROP_URI] =
g_param_spec_string ("uri",
"URI",
"The URI to load.",
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
diff --git a/plugins/devhelp/gb-devhelp-search-result.c b/plugins/devhelp/gb-devhelp-search-result.c
index 533bf34..3d6479d 100644
--- a/plugins/devhelp/gb-devhelp-search-result.c
+++ b/plugins/devhelp/gb-devhelp-search-result.c
@@ -35,7 +35,7 @@ enum
G_DEFINE_TYPE (GbDevhelpSearchResult, gb_devhelp_search_result, IDE_TYPE_SEARCH_RESULT)
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_devhelp_search_result_finalize (GObject *object)
@@ -94,14 +94,14 @@ gb_devhelp_search_result_class_init (GbDevhelpSearchResultClass *klass)
object_class->get_property = gb_devhelp_search_result_get_property;
object_class->set_property = gb_devhelp_search_result_set_property;
- gParamSpecs [PROP_URI] =
+ properties [PROP_URI] =
g_param_spec_string ("uri",
"URI",
"The URI to the Devhelp document.",
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
diff --git a/plugins/devhelp/gb-devhelp-view.c b/plugins/devhelp/gb-devhelp-view.c
index 15f5f2d..9a29028 100644
--- a/plugins/devhelp/gb-devhelp-view.c
+++ b/plugins/devhelp/gb-devhelp-view.c
@@ -45,7 +45,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
apply_settings (WebKitWebView *view)
@@ -262,14 +262,14 @@ gb_devhelp_view_class_init (GbDevhelpViewClass *klass)
view_class->create_split = gb_devhelp_view_create_split;
view_class->set_split_view = gb_devhelp_view_set_split_view;
- gParamSpecs [PROP_DOCUMENT] =
+ properties [PROP_DOCUMENT] =
g_param_spec_object ("document",
"Document",
"The document for the devhelp view.",
GB_TYPE_DEVHELP_DOCUMENT,
(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);
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/builder/plugins/devhelp/gb-devhelp-view.ui");
gtk_widget_class_bind_template_child (widget_class, GbDevhelpView, web_view1);
diff --git a/plugins/fallback/ide-directory-build-system.c b/plugins/fallback/ide-directory-build-system.c
index b9d7ba8..be60dfe 100644
--- a/plugins/fallback/ide-directory-build-system.c
+++ b/plugins/fallback/ide-directory-build-system.c
@@ -45,7 +45,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
IdeDirectoryBuildSystem *
ide_directory_build_system_new (void)
@@ -111,14 +111,14 @@ ide_directory_build_system_class_init (IdeDirectoryBuildSystemClass *klass)
object_class->get_property = ide_directory_build_system_get_property;
object_class->set_property = ide_directory_build_system_set_property;
- gParamSpecs [PROP_PROJECT_FILE] =
+ properties [PROP_PROJECT_FILE] =
g_param_spec_object ("project-file",
"Project File",
"The path of the project file.",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT | 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
diff --git a/plugins/file-search/gb-file-search-index.c b/plugins/file-search/gb-file-search-index.c
index 8457d99..873d734 100644
--- a/plugins/file-search/gb-file-search-index.c
+++ b/plugins/file-search/gb-file-search-index.c
@@ -41,7 +41,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_file_search_index_set_root_directory (GbFileSearchIndex *self,
@@ -54,7 +54,7 @@ gb_file_search_index_set_root_directory (GbFileSearchIndex *self,
{
g_clear_pointer (&self->fuzzy, fuzzy_unref);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_ROOT_DIRECTORY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_ROOT_DIRECTORY]);
}
}
@@ -117,14 +117,14 @@ gb_file_search_index_class_init (GbFileSearchIndexClass *klass)
object_class->get_property = gb_file_search_index_get_property;
object_class->set_property = gb_file_search_index_set_property;
- gParamSpecs [PROP_ROOT_DIRECTORY] =
+ properties [PROP_ROOT_DIRECTORY] =
g_param_spec_object ("root-directory",
"Root Directory",
"Root Directory",
G_TYPE_FILE,
(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
diff --git a/plugins/file-search/gb-file-search-result.c b/plugins/file-search/gb-file-search-result.c
index 0fad4fc..aa0bba6 100644
--- a/plugins/file-search/gb-file-search-result.c
+++ b/plugins/file-search/gb-file-search-result.c
@@ -32,7 +32,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_file_search_result_finalize (GObject *object)
@@ -91,14 +91,14 @@ gb_file_search_result_class_init (GbFileSearchResultClass *klass)
object_class->get_property = gb_file_search_result_get_property;
object_class->set_property = gb_file_search_result_set_property;
- gParamSpecs [PROP_PATH] =
+ properties [PROP_PATH] =
g_param_spec_string ("path",
"Path",
"The relative path to the file.",
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
diff --git a/plugins/mingw/ide-mingw-device-provider.c b/plugins/mingw/ide-mingw-device-provider.c
index 5cd35fb..2c418ae 100644
--- a/plugins/mingw/ide-mingw-device-provider.c
+++ b/plugins/mingw/ide-mingw-device-provider.c
@@ -48,7 +48,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static GPtrArray *
ide_mingw_device_provider_get_devices (IdeDeviceProvider *provider)
@@ -145,7 +145,7 @@ load_cb (GObject *object,
}
self->settled = TRUE;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SETTLED]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SETTLED]);
}
static void
@@ -188,14 +188,14 @@ ide_mingw_device_provider_class_init (IdeMingwDeviceProviderClass *klass)
object_class->constructed = ide_mingw_device_provider_constructed;
object_class->get_property = ide_mingw_device_provider_get_property;
- gParamSpecs [PROP_SETTLED] =
+ properties [PROP_SETTLED] =
g_param_spec_boolean ("settled",
"Settled",
"Settled",
FALSE,
(G_PARAM_READABLE | 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
diff --git a/plugins/terminal/gb-terminal-view.c b/plugins/terminal/gb-terminal-view.c
index db853e9..6bd085b 100644
--- a/plugins/terminal/gb-terminal-view.c
+++ b/plugins/terminal/gb-terminal-view.c
@@ -37,7 +37,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
/* TODO: allow palette to come from gnome-terminal. */
static const GdkRGBA solarized_palette[] =
@@ -616,21 +616,21 @@ gb_terminal_view_class_init (GbTerminalViewClass *klass)
g_type_ensure (VTE_TYPE_TERMINAL);
- gParamSpecs [PROP_DOCUMENT] =
+ properties [PROP_DOCUMENT] =
g_param_spec_object ("document",
"Document",
"The document for the VTE terminal view.",
GB_TYPE_TERMINAL_DOCUMENT,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FONT_NAME] =
+ properties [PROP_FONT_NAME] =
g_param_spec_string ("font-name",
"Font Name",
"Font Name",
NULL,
(G_PARAM_WRITABLE | 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
diff --git a/src/dialogs/gb-new-project-dialog.c b/src/dialogs/gb-new-project-dialog.c
index 5fcaaeb..e074647 100644
--- a/src/dialogs/gb-new-project-dialog.c
+++ b/src/dialogs/gb-new-project-dialog.c
@@ -73,7 +73,7 @@ enum {
LAST_SIGNAL
};
-static guint gSignals [LAST_SIGNAL];
+static guint signals [LAST_SIGNAL];
static void
clone_request_free (gpointer data)
@@ -145,7 +145,7 @@ open_after_timeout (gpointer user_data)
}
else
{
- g_signal_emit (self, gSignals [OPEN_PROJECT], 0, file);
+ g_signal_emit (self, signals [OPEN_PROJECT], 0, file);
}
return G_SOURCE_REMOVE;
@@ -304,7 +304,7 @@ gb_new_project_dialog__create_button_clicked (GbNewProjectDialog *self,
file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (self->file_chooser));
if (file != NULL)
- g_signal_emit (self, gSignals [OPEN_PROJECT], 0, file);
+ g_signal_emit (self, signals [OPEN_PROJECT], 0, file);
}
else if (visible_child == GTK_WIDGET (self->page_clone_remote))
{
@@ -429,7 +429,7 @@ gb_new_project_dialog__file_chooser_file_activated (GbNewProjectDialog *self,
file = gtk_file_chooser_get_file (file_chooser);
if (file != NULL)
- g_signal_emit (self, gSignals [OPEN_PROJECT], 0, file);
+ g_signal_emit (self, signals [OPEN_PROJECT], 0, file);
}
static void
@@ -534,7 +534,7 @@ gb_new_project_dialog_class_init (GbNewProjectDialogClass *klass)
{
GtkBindingSet *binding_set;
- gSignals [BACK] =
+ signals [BACK] =
g_signal_new_class_handler ("back",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -543,7 +543,7 @@ gb_new_project_dialog_class_init (GbNewProjectDialogClass *klass)
G_TYPE_NONE,
0);
- gSignals [CLOSE] =
+ signals [CLOSE] =
g_signal_new_class_handler ("close",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -552,7 +552,7 @@ gb_new_project_dialog_class_init (GbNewProjectDialogClass *klass)
G_TYPE_NONE,
0);
- gSignals [OPEN_PROJECT] =
+ signals [OPEN_PROJECT] =
g_signal_new ("open-project",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
diff --git a/src/dialogs/gb-recent-project-row.c b/src/dialogs/gb-recent-project-row.c
index fac6761..105af08 100644
--- a/src/dialogs/gb-recent-project-row.c
+++ b/src/dialogs/gb-recent-project-row.c
@@ -47,7 +47,7 @@ enum
G_DEFINE_TYPE (GbRecentProjectRow, gb_recent_project_row, GTK_TYPE_LIST_BOX_ROW)
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_recent_project_row_set_selection_mode (GbRecentProjectRow *self,
@@ -107,7 +107,7 @@ gb_recent_project_row_set_project_info (GbRecentProjectRow *self,
gtk_label_set_label (self->date_label, datestr);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_PROJECT_INFO]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_PROJECT_INFO]);
}
}
@@ -118,7 +118,7 @@ gb_recent_project_row__check_button_toggled (GbRecentProjectRow *self,
g_assert (GB_IS_RECENT_PROJECT_ROW (self));
g_assert (GTK_IS_TOGGLE_BUTTON (toggle_button));
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SELECTED]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SELECTED]);
}
static void
@@ -202,28 +202,28 @@ gb_recent_project_row_class_init (GbRecentProjectRowClass *klass)
GB_WIDGET_CLASS_BIND (klass, GbRecentProjectRow, name_label);
GB_WIDGET_CLASS_BIND (klass, GbRecentProjectRow, revealer);
- gParamSpecs [PROP_PROJECT_INFO] =
+ properties [PROP_PROJECT_INFO] =
g_param_spec_object ("project-info",
"Project Information",
"The project information for the row.",
IDE_TYPE_PROJECT_INFO,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SELECTED] =
+ properties [PROP_SELECTED] =
g_param_spec_boolean ("selected",
"Selected",
"Selected",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SELECTION_MODE] =
+ properties [PROP_SELECTION_MODE] =
g_param_spec_boolean ("selection-mode",
"Selection Mode",
"Selection Mode",
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);
}
static void
diff --git a/src/documents/gb-document.c b/src/documents/gb-document.c
index 00b6b14..8c050c7 100644
--- a/src/documents/gb-document.c
+++ b/src/documents/gb-document.c
@@ -38,8 +38,8 @@ enum {
LAST_SIGNAL
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
gboolean
gb_document_is_untitled (GbDocument *document)
@@ -116,7 +116,7 @@ gb_document_create_view (GbDocument *document)
g_return_val_if_fail (GB_IS_DOCUMENT (document), NULL);
- g_signal_emit (document, gSignals [CREATE_VIEW], 0, &ret);
+ g_signal_emit (document, signals [CREATE_VIEW], 0, &ret);
if (!ret)
g_warning ("%s failed to implement create_view() signal",
@@ -188,29 +188,29 @@ gb_document_save_as_finish (GbDocument *document,
static void
gb_document_default_init (GbDocumentInterface *iface)
{
- gParamSpecs [PROP_MODIFIED] =
+ properties [PROP_MODIFIED] =
g_param_spec_boolean ("modified",
"Modified",
"If the document has been modified from disk.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- g_object_interface_install_property (iface, gParamSpecs [PROP_MODIFIED]);
+ g_object_interface_install_property (iface, properties [PROP_MODIFIED]);
- gParamSpecs [PROP_TITLE] =
+ properties [PROP_TITLE] =
g_param_spec_string ("title",
"Title",
"The title of the document.",
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- g_object_interface_install_property (iface, gParamSpecs [PROP_TITLE]);
+ g_object_interface_install_property (iface, properties [PROP_TITLE]);
- gParamSpecs [PROP_READ_ONLY] =
+ properties [PROP_READ_ONLY] =
g_param_spec_boolean ("read-only",
"Read Only",
"If the document is read only.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- g_object_interface_install_property (iface, gParamSpecs [PROP_READ_ONLY]);
+ g_object_interface_install_property (iface, properties [PROP_READ_ONLY]);
/**
* GbDocument::create-view:
@@ -220,7 +220,7 @@ gb_document_default_init (GbDocumentInterface *iface)
*
* Returns: (type GbView) (transfer full): A #GbView.
*/
- gSignals [CREATE_VIEW] =
+ signals [CREATE_VIEW] =
g_signal_new ("create-view",
GB_TYPE_DOCUMENT,
G_SIGNAL_RUN_LAST,
diff --git a/src/editor/gb-editor-frame.c b/src/editor/gb-editor-frame.c
index a8d85b5..5abe118 100644
--- a/src/editor/gb-editor-frame.c
+++ b/src/editor/gb-editor-frame.c
@@ -48,7 +48,7 @@ enum {
TARGET_URI_LIST = 100
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_editor_frame_update_ruler (GbEditorFrame *self)
@@ -139,7 +139,7 @@ gb_editor_frame_set_show_ruler (GbEditorFrame *self,
{
self->show_ruler = show_ruler;
gb_editor_frame_update_ruler (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SHOW_RULER]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_RULER]);
}
}
@@ -619,7 +619,7 @@ gb_editor_frame_set_show_map (GbEditorFrame *self,
g_signal_emit_by_name (self->source_map, "show-map");
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SHOW_MAP]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_MAP]);
}
}
@@ -634,7 +634,7 @@ gb_editor_frame_set_auto_hide_map (GbEditorFrame *self,
if (auto_hide_map != self->auto_hide_map)
{
self->auto_hide_map = auto_hide_map;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_AUTO_HIDE_MAP]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_AUTO_HIDE_MAP]);
}
}
@@ -810,42 +810,42 @@ gb_editor_frame_class_init (GbEditorFrameClass *klass)
widget_class->grab_focus = gb_editor_frame_grab_focus;
- gParamSpecs [PROP_AUTO_HIDE_MAP] =
+ properties [PROP_AUTO_HIDE_MAP] =
g_param_spec_boolean ("auto-hide-map",
"Auto Hide Map",
"Auto Hide Map",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_BACK_FORWARD_LIST] =
+ properties [PROP_BACK_FORWARD_LIST] =
g_param_spec_object ("back-forward-list",
"Back Forward List",
"The back forward list.",
IDE_TYPE_BACK_FORWARD_LIST,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_DOCUMENT] =
+ properties [PROP_DOCUMENT] =
g_param_spec_object ("document",
"Document",
"The editor document.",
GB_TYPE_EDITOR_DOCUMENT,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SHOW_MAP] =
+ properties [PROP_SHOW_MAP] =
g_param_spec_boolean ("show-map",
"Show Map",
"If the overview map should be shown.",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SHOW_RULER] =
+ properties [PROP_SHOW_RULER] =
g_param_spec_boolean ("show-ruler",
"Show Ruler",
"If the ruler should always be shown.",
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);
GB_WIDGET_CLASS_TEMPLATE (klass, "gb-editor-frame.ui");
diff --git a/src/editor/gb-editor-map-bin.c b/src/editor/gb-editor-map-bin.c
index 23c9730..5eecb33 100644
--- a/src/editor/gb-editor-map-bin.c
+++ b/src/editor/gb-editor-map-bin.c
@@ -39,8 +39,8 @@ enum {
LAST_PROP
};
-static FcConfig *gLocalFontConfig;
-static GParamSpec *gParamSpecs [LAST_PROP];
+static FcConfig *localFontConfig;
+static GParamSpec *properties [LAST_PROP];
static void
gb_editor_map_bin__floating_bar_size_allocate (GbEditorMapBin *self,
@@ -113,7 +113,7 @@ gb_editor_map_bin_add (GtkContainer *container,
PangoFontDescription *font_desc;
font_map = pango_cairo_font_map_new_for_font_type (CAIRO_FONT_TYPE_FT);
- pango_fc_font_map_set_config (PANGO_FC_FONT_MAP (font_map), gLocalFontConfig);
+ pango_fc_font_map_set_config (PANGO_FC_FONT_MAP (font_map), localFontConfig);
gtk_widget_set_font_map (child, font_map);
font_desc = pango_font_description_from_string ("Builder Blocks 1");
@@ -196,12 +196,12 @@ gb_editor_map_bin_load_font (void)
{
const gchar *font_path = PACKAGE_DATADIR"/gnome-builder/fonts/BuilderBlocks.ttf";
- gLocalFontConfig = FcInitLoadConfigAndFonts ();
+ localFontConfig = FcInitLoadConfigAndFonts ();
if (g_getenv ("GB_IN_TREE_FONTS") != NULL)
font_path = "data/fonts/BuilderBlocks.ttf";
- FcConfigAppFontAddFile (gLocalFontConfig, (const FcChar8 *)font_path);
+ FcConfigAppFontAddFile (localFontConfig, (const FcChar8 *)font_path);
}
static void
@@ -220,14 +220,14 @@ gb_editor_map_bin_class_init (GbEditorMapBinClass *klass)
container_class->add = gb_editor_map_bin_add;
container_class->remove = gb_editor_map_bin_remove;
- gParamSpecs [PROP_FLOATING_BAR] =
+ properties [PROP_FLOATING_BAR] =
g_param_spec_object ("floating-bar",
"Floating Bar",
"The floating bar to use for relative allocation size.",
GTK_TYPE_WIDGET,
(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);
gb_editor_map_bin_load_font ();
}
diff --git a/src/editor/gb-editor-print-operation.c b/src/editor/gb-editor-print-operation.c
index b397daf..2ae875a 100644
--- a/src/editor/gb-editor-print-operation.c
+++ b/src/editor/gb-editor-print-operation.c
@@ -41,7 +41,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_editor_print_operation_dispose (GObject *object)
@@ -166,14 +166,14 @@ gb_editor_print_operation_class_init (GbEditorPrintOperationClass *klass)
operation_class->draw_page = gb_editor_print_operation_draw_page;
operation_class->end_print = gb_editor_print_operation_end_print;
- gParamSpecs [PROP_VIEW] =
+ properties [PROP_VIEW] =
g_param_spec_object ("view",
"View",
"The source view.",
IDE_TYPE_SOURCE_VIEW,
(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 gboolean
diff --git a/src/editor/gb-editor-settings-widget.c b/src/editor/gb-editor-settings-widget.c
index 12b04f8..bbf4aa5 100644
--- a/src/editor/gb-editor-settings-widget.c
+++ b/src/editor/gb-editor-settings-widget.c
@@ -49,7 +49,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
const gchar *
gb_editor_settings_widget_get_language (GbEditorSettingsWidget *widget)
@@ -174,7 +174,7 @@ gb_editor_settings_widget_set_language (GbEditorSettingsWidget *widget,
sm = g_object_new (IDE_TYPE_SOURCE_SNIPPETS_MANAGER, NULL);
ide_source_snippets_manager_load_async (sm, NULL, load_snippets_cb, g_object_ref (widget));
- g_object_notify_by_pspec (G_OBJECT (widget), gParamSpecs [PROP_LANGUAGE]);
+ g_object_notify_by_pspec (G_OBJECT (widget), properties [PROP_LANGUAGE]);
}
}
@@ -322,14 +322,14 @@ gb_editor_settings_widget_class_init (GbEditorSettingsWidgetClass *klass)
GB_WIDGET_CLASS_BIND (klass, GbEditorSettingsWidget, tab_width);
GB_WIDGET_CLASS_BIND (klass, GbEditorSettingsWidget, trim_trailing_whitespace);
- gParamSpecs [PROP_LANGUAGE] =
+ properties [PROP_LANGUAGE] =
g_param_spec_string ("language",
"Language",
"The language to change the settings for.",
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
diff --git a/src/editor/gb-editor-tweak-widget.c b/src/editor/gb-editor-tweak-widget.c
index 6c87c16..08f718a 100644
--- a/src/editor/gb-editor-tweak-widget.c
+++ b/src/editor/gb-editor-tweak-widget.c
@@ -35,7 +35,7 @@ struct _GbEditorTweakWidget
G_DEFINE_TYPE (GbEditorTweakWidget, gb_editor_tweak_widget, GTK_TYPE_BIN)
-static GQuark gLangQuark;
+static GQuark langQuark;
GtkWidget *
gb_editor_tweak_widget_new (void)
@@ -58,7 +58,7 @@ gb_editor_tweak_widget_filter_func (GtkListBoxRow *row,
g_return_val_if_fail (needle, FALSE);
child = gtk_bin_get_child (GTK_BIN (row));
- language = g_object_get_qdata (G_OBJECT (child), gLangQuark);
+ language = g_object_get_qdata (G_OBJECT (child), langQuark);
lang_id = gtk_source_language_get_id (language);
lang_name = gtk_source_language_get_name (language);
lang_name_cf = g_utf8_casefold (lang_name, -1);
@@ -106,7 +106,7 @@ gb_editor_tweak_widget_row_activated (GbEditorTweakWidget *self,
g_return_if_fail (GTK_IS_LIST_BOX (list_box));
child = gtk_bin_get_child (GTK_BIN (row));
- lang = g_object_get_qdata (G_OBJECT (child), gLangQuark);
+ lang = g_object_get_qdata (G_OBJECT (child), langQuark);
if (lang)
{
@@ -146,7 +146,7 @@ gb_editor_tweak_widget_constructed (GObject *object)
"margin-top", 3,
"margin-bottom", 3,
NULL);
- g_object_set_qdata (G_OBJECT (row), gLangQuark, lang);
+ g_object_set_qdata (G_OBJECT (row), langQuark, lang);
gtk_list_box_insert (self->list_box, row, -1);
}
@@ -174,7 +174,7 @@ gb_editor_tweak_widget_class_init (GbEditorTweakWidgetClass *klass)
GB_WIDGET_CLASS_BIND (klass, GbEditorTweakWidget, entry);
GB_WIDGET_CLASS_BIND (klass, GbEditorTweakWidget, list_box);
- gLangQuark = g_quark_from_static_string ("GtkSourceLanguage");
+ langQuark = g_quark_from_static_string ("GtkSourceLanguage");
}
static void
diff --git a/src/editor/gb-editor-view.c b/src/editor/gb-editor-view.c
index f2fba8d..4b0f259 100644
--- a/src/editor/gb-editor-view.c
+++ b/src/editor/gb-editor-view.c
@@ -45,8 +45,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 GbDocument *
gb_editor_view_get_document (GbView *view)
@@ -392,7 +392,7 @@ gb_editor_view_set_document (GbEditorView *self,
self,
G_CONNECT_SWAPPED);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_DOCUMENT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DOCUMENT]);
g_object_bind_property (document, "has-diagnostics",
self->warning_button, "visible",
@@ -450,7 +450,7 @@ gb_editor_view_request_documentation (GbEditorView *self,
word = ide_buffer_get_word_at_iter (buffer, &iter);
- g_signal_emit (self, gSignals [REQUEST_DOCUMENTATION], 0, word);
+ g_signal_emit (self, signals [REQUEST_DOCUMENTATION], 0, word);
}
static void
@@ -848,16 +848,16 @@ gb_editor_view_class_init (GbEditorViewClass *klass)
view_class->set_back_forward_list = gb_editor_view_set_back_forward_list;
view_class->navigate_to = gb_editor_view_navigate_to;
- gParamSpecs [PROP_DOCUMENT] =
+ properties [PROP_DOCUMENT] =
g_param_spec_object ("document",
"Document",
"The editor document.",
GB_TYPE_EDITOR_DOCUMENT,
(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);
- gSignals [REQUEST_DOCUMENTATION] =
+ signals [REQUEST_DOCUMENTATION] =
g_signal_new ("request-documentation",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
diff --git a/src/greeter/gb-greeter-pill-box.c b/src/greeter/gb-greeter-pill-box.c
index 1d6348b..fdf1e56 100644
--- a/src/greeter/gb-greeter-pill-box.c
+++ b/src/greeter/gb-greeter-pill-box.c
@@ -37,7 +37,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
const gchar *
gb_greeter_pill_box_get_label (GbGreeterPillBox *self)
@@ -111,13 +111,13 @@ gb_greeter_pill_box_class_init (GbGreeterPillBoxClass *klass)
object_class->get_property = gb_greeter_pill_box_get_property;
object_class->set_property = gb_greeter_pill_box_set_property;
- gParamSpecs [PROP_LABEL] =
+ properties [PROP_LABEL] =
g_param_spec_string ("label",
"Label",
"The label for the pill box.",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (object_class, PROP_LABEL, gParamSpecs [PROP_LABEL]);
+ g_object_class_install_property (object_class, PROP_LABEL, properties [PROP_LABEL]);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/builder/ui/gb-greeter-pill-box.ui");
gtk_widget_class_bind_template_child (widget_class, GbGreeterPillBox, label);
diff --git a/src/greeter/gb-greeter-project-row.c b/src/greeter/gb-greeter-project-row.c
index 78f8838..fe353d8 100644
--- a/src/greeter/gb-greeter-project-row.c
+++ b/src/greeter/gb-greeter-project-row.c
@@ -53,8 +53,8 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static GFile *gHomeDir;
+static GParamSpec *properties [LAST_PROP];
+static GFile *homeDir;
void
gb_greeter_project_row_set_selection_mode (GbGreeterProjectRow *self,
@@ -161,7 +161,7 @@ gb_greeter_project_row_set_project_info (GbGreeterProjectRow *self,
gb_greeter_project_row_create_search_text (self, project_info);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_PROJECT_INFO]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_PROJECT_INFO]);
}
}
@@ -205,7 +205,7 @@ truncate_location (GBinding *binding,
{
gchar *relative_path;
- if ((relative_path = g_file_get_relative_path (gHomeDir, file)) ||
+ if ((relative_path = g_file_get_relative_path (homeDir, file)) ||
(relative_path = g_file_get_path (file)))
{
g_value_set_string (to_value, relative_path);
@@ -307,30 +307,30 @@ gb_greeter_project_row_class_init (GbGreeterProjectRowClass *klass)
gtk_widget_class_bind_template_child (widget_class, GbGreeterProjectRow, languages_box);
gtk_widget_class_bind_template_child (widget_class, GbGreeterProjectRow, title_label);
- gParamSpecs [PROP_SELECTED] =
+ properties [PROP_SELECTED] =
g_param_spec_boolean ("selected",
"Selected",
"Selected",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SELECTION_MODE] =
+ properties [PROP_SELECTION_MODE] =
g_param_spec_boolean ("selection-mode",
"Selection Mode",
"Selection Mode",
FALSE,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_PROJECT_INFO] =
+ properties [PROP_PROJECT_INFO] =
g_param_spec_object ("project-info",
"Project Information",
"The project information to render.",
IDE_TYPE_PROJECT_INFO,
(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);
- gHomeDir = g_file_new_for_path (g_get_home_dir ());
+ homeDir = g_file_new_for_path (g_get_home_dir ());
}
static void
diff --git a/src/greeter/gb-greeter-window.c b/src/greeter/gb-greeter-window.c
index 66f9b9a..9676856 100644
--- a/src/greeter/gb-greeter-window.c
+++ b/src/greeter/gb-greeter-window.c
@@ -61,7 +61,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_greeter_window_first_visible_cb (GtkWidget *widget,
@@ -335,7 +335,7 @@ gb_greeter_window_set_recent_projects (GbGreeterWindow *self,
gb_greeter_window__recent_projects_items_changed (self, 0, 0, n_items, list_model);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_RECENT_PROJECTS]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_RECENT_PROJECTS]);
}
}
@@ -555,14 +555,14 @@ gb_greeter_window_class_init (GbGreeterWindowClass *klass)
object_class->get_property = gb_greeter_window_get_property;
object_class->set_property = gb_greeter_window_set_property;
- gParamSpecs [PROP_RECENT_PROJECTS] =
+ properties [PROP_RECENT_PROJECTS] =
g_param_spec_object ("recent-projects",
"Recent Projects",
"The recent projects that have been mined.",
IDE_TYPE_RECENT_PROJECTS,
(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);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/builder/ui/gb-greeter-window.ui");
gtk_widget_class_bind_template_child (widget_class, GbGreeterWindow, header_bar);
diff --git a/src/keybindings/gb-keybindings.c b/src/keybindings/gb-keybindings.c
index d15c4e3..6ad75f0 100644
--- a/src/keybindings/gb-keybindings.c
+++ b/src/keybindings/gb-keybindings.c
@@ -43,7 +43,7 @@ enum
G_DEFINE_TYPE (GbKeybindings, gb_keybindings, G_TYPE_OBJECT)
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
GbKeybindings *
gb_keybindings_new (GtkApplication *application,
@@ -106,7 +106,7 @@ gb_keybindings_set_mode (GbKeybindings *self,
self->mode = g_strdup (mode);
if (self->constructed)
gb_keybindings_reload (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_MODE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MODE]);
}
}
@@ -253,21 +253,21 @@ gb_keybindings_class_init (GbKeybindingsClass *klass)
object_class->get_property = gb_keybindings_get_property;
object_class->set_property = gb_keybindings_set_property;
- gParamSpecs [PROP_APPLICATION] =
+ properties [PROP_APPLICATION] =
g_param_spec_object ("application",
"Application",
"The application to register keybindings for.",
GTK_TYPE_APPLICATION,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_MODE] =
+ properties [PROP_MODE] =
g_param_spec_string ("mode",
"Mode",
"The name of the keybindings mode.",
NULL,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT | 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
diff --git a/src/preferences/gb-preferences-page.c b/src/preferences/gb-preferences-page.c
index 3f7314b..e2a4756 100644
--- a/src/preferences/gb-preferences-page.c
+++ b/src/preferences/gb-preferences-page.c
@@ -49,7 +49,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static gboolean
gb_preferences_page_match (const gchar *needle,
@@ -171,7 +171,7 @@ gb_preferences_page_set_title (GbPreferencesPage *page,
g_free (priv->title);
priv->title = g_strdup (title);
g_object_notify_by_pspec (G_OBJECT (page),
- gParamSpecs [PROP_TITLE]);
+ properties [PROP_TITLE]);
}
}
@@ -277,7 +277,7 @@ gb_preferences_page_class_init (GbPreferencesPageClass *klass)
object_class->get_property = gb_preferences_page_get_property;
object_class->set_property = gb_preferences_page_set_property;
- gParamSpecs [PROP_TITLE] =
+ properties [PROP_TITLE] =
g_param_spec_string ("title",
"Title",
"The title for the preferences page.",
@@ -285,7 +285,7 @@ gb_preferences_page_class_init (GbPreferencesPageClass *klass)
(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);
g_type_ensure (GB_TYPE_PREFERENCES_SWITCH);
}
diff --git a/src/preferences/gb-preferences-switch.c b/src/preferences/gb-preferences-switch.c
index 390f57d..45bed0e 100644
--- a/src/preferences/gb-preferences-switch.c
+++ b/src/preferences/gb-preferences-switch.c
@@ -53,7 +53,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
GtkWidget *
gb_preferences_switch_new (void)
@@ -309,42 +309,42 @@ gb_preferences_switch_class_init (GbPreferencesSwitchClass *klass)
widget_class->enter_notify_event = gb_preferences_switch_enter_notify_event;
widget_class->leave_notify_event = gb_preferences_switch_leave_notify_event;
- gParamSpecs [PROP_TITLE] =
+ properties [PROP_TITLE] =
g_param_spec_string ("title",
"Title",
"The title of the switch.",
NULL,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_DESCRIPTION] =
+ properties [PROP_DESCRIPTION] =
g_param_spec_string ("description",
"Description",
"The description for the switch.",
NULL,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_IS_RADIO] =
+ properties [PROP_IS_RADIO] =
g_param_spec_boolean ("is-radio",
"Is Radio",
"If a radio button should be used.",
FALSE,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SETTINGS] =
+ properties [PROP_SETTINGS] =
g_param_spec_object ("settings",
"Settings",
"The GSettings for the setting.",
G_TYPE_SETTINGS,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SETTINGS_SCHEMA_KEY] =
+ properties [PROP_SETTINGS_SCHEMA_KEY] =
g_param_spec_string ("settings-schema-key",
"Settings Schema Key",
"The settings schema key.",
NULL,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SETTINGS_SCHEMA_VALUE] =
+ properties [PROP_SETTINGS_SCHEMA_VALUE] =
g_param_spec_variant ("settings-schema-value",
"Settings Schema Value",
"An action-target for the settings action.",
@@ -352,14 +352,14 @@ gb_preferences_switch_class_init (GbPreferencesSwitchClass *klass)
NULL,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SIZE_GROUP] =
+ properties [PROP_SIZE_GROUP] =
g_param_spec_object ("size-group",
"Size Group",
"The sizing group for the control.",
GTK_TYPE_SIZE_GROUP,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
+ g_object_class_install_properties (object_class, LAST_PROP, properties);
GB_WIDGET_CLASS_TEMPLATE (klass, "gb-preferences-switch.ui");
diff --git a/src/preferences/gb-preferences-window.c b/src/preferences/gb-preferences-window.c
index 38a87a4..3446e9a 100644
--- a/src/preferences/gb-preferences-window.c
+++ b/src/preferences/gb-preferences-window.c
@@ -55,7 +55,7 @@ enum {
LAST_SIGNAL
};
-static guint gSignals [LAST_SIGNAL];
+static guint signals [LAST_SIGNAL];
GtkWidget *
gb_preferences_window_new (void)
@@ -251,7 +251,7 @@ gb_preferences_window_class_init (GbPreferencesWindowClass *klass)
widget_class->destroy = gb_preferences_window_destroy;
widget_class->key_press_event = gb_preferences_window_key_press_event;
- gSignals [CLOSE] =
+ signals [CLOSE] =
g_signal_new_class_handler ("close",
G_TYPE_FROM_CLASS (klass),
(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),
diff --git a/src/project-tree/gb-new-file-popover.c b/src/project-tree/gb-new-file-popover.c
index 6324aea..cc5184d 100644
--- a/src/project-tree/gb-new-file-popover.c
+++ b/src/project-tree/gb-new-file-popover.c
@@ -50,8 +50,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
gb_new_file_popover__button_clicked (GbNewFilePopover *self,
@@ -72,7 +72,7 @@ gb_new_file_popover__button_clicked (GbNewFilePopover *self,
file = g_file_get_child (self->directory, path);
- g_signal_emit (self, gSignals [CREATE_FILE], 0, file, self->file_type);
+ g_signal_emit (self, signals [CREATE_FILE], 0, file, self->file_type);
}
static void
@@ -263,14 +263,14 @@ gb_new_file_popover_class_init (GbNewFilePopoverClass *klass)
object_class->get_property = gb_new_file_popover_get_property;
object_class->set_property = gb_new_file_popover_set_property;
- gParamSpecs [PROP_DIRECTORY] =
+ properties [PROP_DIRECTORY] =
g_param_spec_object ("directory",
"Directory",
"Directory",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FILE_TYPE] =
+ properties [PROP_FILE_TYPE] =
g_param_spec_enum ("file-type",
"File Type",
"The file type to create.",
@@ -278,9 +278,9 @@ gb_new_file_popover_class_init (GbNewFilePopoverClass *klass)
G_FILE_TYPE_REGULAR,
(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 [CREATE_FILE] =
+ signals [CREATE_FILE] =
g_signal_new ("create-file",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
@@ -350,7 +350,7 @@ gb_new_file_popover_set_file_type (GbNewFilePopover *self,
else
gtk_label_set_label (self->title, _("Folder Name"));
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE_TYPE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE_TYPE]);
}
}
@@ -367,7 +367,7 @@ gb_new_file_popover_set_directory (GbNewFilePopover *self,
path = gtk_entry_get_text (self->entry);
gb_new_file_popover_check_exists (self, directory, path);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_DIRECTORY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DIRECTORY]);
}
}
diff --git a/src/project-tree/gb-project-file.c b/src/project-tree/gb-project-file.c
index cef2db6..787adde 100644
--- a/src/project-tree/gb-project-file.c
+++ b/src/project-tree/gb-project-file.c
@@ -39,7 +39,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
gint
gb_project_file_compare (GbProjectFile *a,
@@ -154,35 +154,35 @@ gb_project_file_class_init (GbProjectFileClass *klass)
object_class->get_property = gb_project_file_get_property;
object_class->set_property = gb_project_file_set_property;
- gParamSpecs [PROP_DISPLAY_NAME] =
+ properties [PROP_DISPLAY_NAME] =
g_param_spec_string ("display-name",
"Display Name",
"Display Name",
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_ICON_NAME] =
+ properties [PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
"Icon Name",
"Icon Name",
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FILE] =
+ properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
"File",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_FILE_INFO] =
+ properties [PROP_FILE_INFO] =
g_param_spec_object ("file-info",
"File Info",
"File Info",
G_TYPE_FILE_INFO,
(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
@@ -219,7 +219,7 @@ gb_project_file_set_file (GbProjectFile *self,
g_return_if_fail (!file || G_IS_FILE (file));
if (g_set_object (&self->file, file))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
}
GFileInfo *
@@ -238,7 +238,7 @@ gb_project_file_set_file_info (GbProjectFile *self,
g_return_if_fail (!file_info || G_IS_FILE_INFO (file_info));
if (g_set_object (&self->file_info, file_info))
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE_INFO]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE_INFO]);
}
gboolean
diff --git a/src/project-tree/gb-project-tree.c b/src/project-tree/gb-project-tree.c
index 2b3acf0..b6b8545 100644
--- a/src/project-tree/gb-project-tree.c
+++ b/src/project-tree/gb-project-tree.c
@@ -31,7 +31,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
GtkWidget *
gb_project_tree_new (void)
@@ -152,14 +152,14 @@ gb_project_tree_class_init (GbProjectTreeClass *klass)
object_class->get_property = gb_project_tree_get_property;
object_class->set_property = gb_project_tree_set_property;
- gParamSpecs [PROP_SHOW_IGNORED_FILES] =
+ properties [PROP_SHOW_IGNORED_FILES] =
g_param_spec_boolean ("show-ignored-files",
"Show Ignored Files",
"If files ignored by the VCS should be displayed.",
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);
}
static void
@@ -206,7 +206,7 @@ gb_project_tree_set_show_ignored_files (GbProjectTree *self,
if (show_ignored_files != self->show_ignored_files)
{
self->show_ignored_files = show_ignored_files;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SHOW_IGNORED_FILES]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_IGNORED_FILES]);
gb_tree_rebuild (GB_TREE (self));
}
}
diff --git a/src/project-tree/gb-rename-file-popover.c b/src/project-tree/gb-rename-file-popover.c
index 0fd7b61..d2c32f7 100644
--- a/src/project-tree/gb-rename-file-popover.c
+++ b/src/project-tree/gb-rename-file-popover.c
@@ -51,8 +51,8 @@ enum {
G_DEFINE_TYPE (GbRenameFilePopover, gb_rename_file_popover, GTK_TYPE_POPOVER)
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
GFile *
gb_rename_file_popover_get_file (GbRenameFilePopover *self)
@@ -85,7 +85,7 @@ gb_rename_file_popover_set_file (GbRenameFilePopover *self,
g_free (label);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_FILE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_FILE]);
}
}
@@ -100,7 +100,7 @@ gb_rename_file_popover_set_is_directory (GbRenameFilePopover *self,
if (is_directory != self->is_directory)
{
self->is_directory = is_directory;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_IS_DIRECTORY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_IS_DIRECTORY]);
}
}
@@ -228,7 +228,7 @@ gb_rename_file_popover__button_clicked (GbRenameFilePopover *self,
/* only activate once */
gtk_widget_set_sensitive (GTK_WIDGET (self->button), FALSE);
- g_signal_emit (self, gSignals [RENAME_FILE], 0, self->file, file);
+ g_signal_emit (self, signals [RENAME_FILE], 0, self->file, file);
}
static void
@@ -303,23 +303,23 @@ gb_rename_file_popover_class_init (GbRenameFilePopoverClass *klass)
object_class->get_property = gb_rename_file_popover_get_property;
object_class->set_property = gb_rename_file_popover_set_property;
- gParamSpecs [PROP_FILE] =
+ properties [PROP_FILE] =
g_param_spec_object ("file",
"File",
"File",
G_TYPE_FILE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_IS_DIRECTORY] =
+ properties [PROP_IS_DIRECTORY] =
g_param_spec_boolean ("is-directory",
"Is Directory",
"Is Directory",
FALSE,
(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);
- gSignals [RENAME_FILE] =
+ signals [RENAME_FILE] =
g_signal_new ("rename-file",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
diff --git a/src/scrolledwindow/gb-scrolled-window.c b/src/scrolledwindow/gb-scrolled-window.c
index 49fa45b..a5750a7 100644
--- a/src/scrolledwindow/gb-scrolled-window.c
+++ b/src/scrolledwindow/gb-scrolled-window.c
@@ -35,7 +35,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
GtkWidget *
gb_scrolled_window_new (void)
@@ -74,7 +74,7 @@ gb_scrolled_window_set_max_content_height (GbScrolledWindow *self,
if (max_content_height != priv->max_content_height)
{
priv->max_content_height = max_content_height;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_MAX_CONTENT_HEIGHT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MAX_CONTENT_HEIGHT]);
gtk_widget_queue_resize (GTK_WIDGET (self));
}
}
@@ -110,7 +110,7 @@ gb_scrolled_window_set_max_content_width (GbScrolledWindow *self,
if (max_content_width != priv->max_content_width)
{
priv->max_content_width = max_content_width;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_MAX_CONTENT_HEIGHT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MAX_CONTENT_HEIGHT]);
gtk_widget_queue_resize (GTK_WIDGET (self));
}
}
@@ -249,7 +249,7 @@ gb_scrolled_window_class_init (GbScrolledWindowClass *klass)
widget_class->get_preferred_width = gb_scrolled_window_get_preferred_width;
widget_class->get_preferred_height = gb_scrolled_window_get_preferred_height;
- gParamSpecs [PROP_MAX_CONTENT_HEIGHT] =
+ properties [PROP_MAX_CONTENT_HEIGHT] =
g_param_spec_int ("max-content-height",
"Max Content Height",
"The maximum height request that can be made.",
@@ -258,7 +258,7 @@ gb_scrolled_window_class_init (GbScrolledWindowClass *klass)
-1,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_MAX_CONTENT_WIDTH] =
+ properties [PROP_MAX_CONTENT_WIDTH] =
g_param_spec_int ("max-content-width",
"Max Content Width",
"The maximum width request that can be made.",
@@ -267,7 +267,7 @@ gb_scrolled_window_class_init (GbScrolledWindowClass *klass)
-1,
(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
diff --git a/src/search/gb-search-display-group.c b/src/search/gb-search-display-group.c
index d96a30e..844d6c3 100644
--- a/src/search/gb-search-display-group.c
+++ b/src/search/gb-search-display-group.c
@@ -53,9 +53,9 @@ enum {
LAST_SIGNAL
};
-static GQuark gQuarkRow;
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GQuark quarkRow;
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
static void
gb_search_display_group_foreach_cb (GtkWidget *widget,
@@ -131,7 +131,7 @@ gb_search_display_group_create_row (IdeSearchResult *result)
provider = ide_search_result_get_provider (result);
row = ide_search_provider_create_row (provider, result);
- g_object_set_qdata (G_OBJECT (result), gQuarkRow, row);
+ g_object_set_qdata (G_OBJECT (result), quarkRow, row);
return row;
}
@@ -145,7 +145,7 @@ gb_search_display_group_remove_result (GbSearchDisplayGroup *self,
g_return_if_fail (GB_IS_SEARCH_DISPLAY_GROUP (self));
g_return_if_fail (IDE_IS_SEARCH_RESULT (result));
- row = g_object_get_qdata (G_OBJECT (result), gQuarkRow);
+ row = g_object_get_qdata (G_OBJECT (result), quarkRow);
if (row)
gtk_container_remove (GTK_CONTAINER (self->rows), row);
@@ -258,7 +258,7 @@ gb_search_display_group_row_activated (GbSearchDisplayGroup *self,
result = gb_search_display_row_get_result (GB_SEARCH_DISPLAY_ROW (row));
if (result)
- g_signal_emit (self, gSignals [RESULT_ACTIVATED], 0, row, result);
+ g_signal_emit (self, signals [RESULT_ACTIVATED], 0, row, result);
}
static void
@@ -282,7 +282,7 @@ gb_search_display_group_row_selected (GbSearchDisplayGroup *self,
result = gb_search_display_row_get_result (GB_SEARCH_DISPLAY_ROW (child));
if (result)
- g_signal_emit (self, gSignals [RESULT_SELECTED], 0, result);
+ g_signal_emit (self, signals [RESULT_SELECTED], 0, result);
}
}
}
@@ -417,23 +417,23 @@ gb_search_display_group_class_init (GbSearchDisplayGroupClass *klass)
object_class->get_property = gb_search_display_group_get_property;
object_class->set_property = gb_search_display_group_set_property;
- gParamSpecs [PROP_PROVIDER] =
+ properties [PROP_PROVIDER] =
g_param_spec_object ("provider",
"Provider",
"The search provider",
IDE_TYPE_SEARCH_PROVIDER,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SIZE_GROUP] =
+ properties [PROP_SIZE_GROUP] =
g_param_spec_object ("size-group",
"Size Group",
"The size group for the label.",
GTK_TYPE_SIZE_GROUP,
(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);
- gSignals [RESULT_ACTIVATED] =
+ signals [RESULT_ACTIVATED] =
g_signal_new_class_handler ("result-activated",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -444,7 +444,7 @@ gb_search_display_group_class_init (GbSearchDisplayGroupClass *klass)
GTK_TYPE_WIDGET,
IDE_TYPE_SEARCH_RESULT);
- gSignals [RESULT_SELECTED] =
+ signals [RESULT_SELECTED] =
g_signal_new ("result-selected",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -460,7 +460,7 @@ gb_search_display_group_class_init (GbSearchDisplayGroupClass *klass)
GB_WIDGET_CLASS_BIND (widget_class, GbSearchDisplayGroup, label);
GB_WIDGET_CLASS_BIND (widget_class, GbSearchDisplayGroup, rows);
- gQuarkRow = g_quark_from_static_string ("GB_SEARCH_DISPLAY_ROW");
+ quarkRow = g_quark_from_static_string ("GB_SEARCH_DISPLAY_ROW");
}
static void
diff --git a/src/search/gb-search-display-row.c b/src/search/gb-search-display-row.c
index 47ce729..1fc83fd 100644
--- a/src/search/gb-search-display-row.c
+++ b/src/search/gb-search-display-row.c
@@ -41,7 +41,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_search_display_row_connect (GbSearchDisplayRow *row,
@@ -103,7 +103,7 @@ gb_search_display_row_set_result (GbSearchDisplayRow *row,
gb_search_display_row_connect (row, result);
}
- g_object_notify_by_pspec (G_OBJECT (row), gParamSpecs [PROP_RESULT]);
+ g_object_notify_by_pspec (G_OBJECT (row), properties [PROP_RESULT]);
}
}
@@ -165,14 +165,14 @@ gb_search_display_row_class_init (GbSearchDisplayRowClass *klass)
object_class->get_property = gb_search_display_row_get_property;
object_class->set_property = gb_search_display_row_set_property;
- gParamSpecs [PROP_RESULT] =
+ properties [PROP_RESULT] =
g_param_spec_object ("result",
"Result",
"Result",
IDE_TYPE_SEARCH_RESULT,
(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);
GB_WIDGET_CLASS_TEMPLATE (widget_class, "gb-search-display-row.ui");
GB_WIDGET_CLASS_BIND (widget_class, GbSearchDisplayRow, progress);
diff --git a/src/search/gb-search-display.c b/src/search/gb-search-display.c
index 29ff284..c517d68 100644
--- a/src/search/gb-search-display.c
+++ b/src/search/gb-search-display.c
@@ -53,8 +53,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
provider_entry_destroy (gpointer data)
@@ -113,7 +113,7 @@ gb_search_display_result_activated (GbSearchDisplay *self,
g_return_if_fail (IDE_IS_SEARCH_RESULT (result));
g_return_if_fail (GB_IS_SEARCH_DISPLAY_GROUP (group));
- g_signal_emit (self, gSignals [RESULT_ACTIVATED], 0, result);
+ g_signal_emit (self, signals [RESULT_ACTIVATED], 0, result);
}
static void
@@ -484,7 +484,7 @@ gb_search_display_set_context (GbSearchDisplay *self,
gb_search_display_connect_context (self, self->context);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CONTEXT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CONTEXT]);
}
}
@@ -572,16 +572,16 @@ gb_search_display_class_init (GbSearchDisplayClass *klass)
object_class->get_property = gb_search_display_get_property;
object_class->set_property = gb_search_display_set_property;
- gParamSpecs [PROP_CONTEXT] =
+ properties [PROP_CONTEXT] =
g_param_spec_object ("context",
"Context",
"The active search context.",
IDE_TYPE_SEARCH_CONTEXT,
(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 [RESULT_ACTIVATED] =
+ signals [RESULT_ACTIVATED] =
g_signal_new_class_handler ("result-activated",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
diff --git a/src/shortcuts/gb-accel-label.c b/src/shortcuts/gb-accel-label.c
index fc81a64..792e2c7 100644
--- a/src/shortcuts/gb-accel-label.c
+++ b/src/shortcuts/gb-accel-label.c
@@ -33,7 +33,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_accel_label_rebuild (GbAccelLabel *self)
@@ -159,14 +159,14 @@ gb_accel_label_class_init (GbAccelLabelClass *klass)
object_class->get_property = gb_accel_label_get_property;
object_class->set_property = gb_accel_label_set_property;
- gParamSpecs [PROP_ACCELERATOR] =
+ properties [PROP_ACCELERATOR] =
g_param_spec_string ("accelerator",
"Accelerator",
"Accelerator",
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
@@ -202,6 +202,6 @@ gb_accel_label_set_accelerator (GbAccelLabel *self,
g_free (self->accelerator);
self->accelerator = g_strdup (accelerator);
gb_accel_label_rebuild (self);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_ACCELERATOR]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_ACCELERATOR]);
}
}
diff --git a/src/shortcuts/gb-shortcuts-dialog.c b/src/shortcuts/gb-shortcuts-dialog.c
index 8adc67d..b9b6601 100644
--- a/src/shortcuts/gb-shortcuts-dialog.c
+++ b/src/shortcuts/gb-shortcuts-dialog.c
@@ -80,8 +80,8 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
static void
gb_shortcuts_dialog_add_view (GbShortcutsDialog *self,
@@ -794,16 +794,16 @@ gb_shortcuts_dialog_class_init (GbShortcutsDialogClass *klass)
klass->close = gb_shortcuts_dialog_real_close;
- gParamSpecs [PROP_VIEW_NAME] =
+ properties [PROP_VIEW_NAME] =
g_param_spec_string ("view-name",
"ViewName",
"ViewName",
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);
- gSignals [CLOSE] = g_signal_new ("close",
+ signals [CLOSE] = g_signal_new ("close",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GbShortcutsDialogClass, close),
diff --git a/src/shortcuts/gb-shortcuts-gesture.c b/src/shortcuts/gb-shortcuts-gesture.c
index fbb752e..b61a0db 100644
--- a/src/shortcuts/gb-shortcuts-gesture.c
+++ b/src/shortcuts/gb-shortcuts-gesture.c
@@ -40,7 +40,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_shortcuts_gesture_set_icon_name (GbShortcutsGesture *self,
@@ -146,42 +146,42 @@ gb_shortcuts_gesture_class_init (GbShortcutsGestureClass *klass)
object_class->get_property = gb_shortcuts_gesture_get_property;
object_class->set_property = gb_shortcuts_gesture_set_property;
- gParamSpecs [PROP_DESC_SIZE_GROUP] =
+ properties [PROP_DESC_SIZE_GROUP] =
g_param_spec_object ("desc-size-group",
"Description Size Group",
"Description Size Group",
GTK_TYPE_SIZE_GROUP,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_ICON_NAME] =
+ properties [PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
"Icon Name",
"Icon Name",
NULL,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_ICON_SIZE_GROUP] =
+ properties [PROP_ICON_SIZE_GROUP] =
g_param_spec_object ("icon-size-group",
"Icon Size Group",
"Icon Size Group",
GTK_TYPE_SIZE_GROUP,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_SUBTITLE] =
+ properties [PROP_SUBTITLE] =
g_param_spec_string ("subtitle",
"Subtitle",
"Subtitle",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_TITLE] =
+ properties [PROP_TITLE] =
g_param_spec_string ("title",
"Title",
"Title",
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
diff --git a/src/shortcuts/gb-shortcuts-group.c b/src/shortcuts/gb-shortcuts-group.c
index e4ce9ff..37eb2dc 100644
--- a/src/shortcuts/gb-shortcuts-group.c
+++ b/src/shortcuts/gb-shortcuts-group.c
@@ -33,7 +33,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_shortcuts_group_get_property (GObject *object,
@@ -81,14 +81,14 @@ gb_shortcuts_group_class_init (GbShortcutsGroupClass *klass)
object_class->get_property = gb_shortcuts_group_get_property;
object_class->set_property = gb_shortcuts_group_set_property;
- gParamSpecs [PROP_TITLE] =
+ properties [PROP_TITLE] =
g_param_spec_string ("title",
"Title",
"Title",
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
diff --git a/src/shortcuts/gb-shortcuts-shortcut.c b/src/shortcuts/gb-shortcuts-shortcut.c
index 453553a..5ec6157 100644
--- a/src/shortcuts/gb-shortcuts-shortcut.c
+++ b/src/shortcuts/gb-shortcuts-shortcut.c
@@ -38,7 +38,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_shortcuts_shortcut_get_property (GObject *object,
@@ -112,35 +112,35 @@ gb_shortcuts_shortcut_class_init (GbShortcutsShortcutClass *klass)
object_class->get_property = gb_shortcuts_shortcut_get_property;
object_class->set_property = gb_shortcuts_shortcut_set_property;
- gParamSpecs [PROP_ACCELERATOR] =
+ properties [PROP_ACCELERATOR] =
g_param_spec_string ("accelerator",
"Accelerator",
"Accelerator",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_ACCELERATOR_SIZE_GROUP] =
+ properties [PROP_ACCELERATOR_SIZE_GROUP] =
g_param_spec_object ("accelerator-size-group",
"Accelerator Size Group",
"Accelerator Size Group",
GTK_TYPE_SIZE_GROUP,
(G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_TITLE] =
+ properties [PROP_TITLE] =
g_param_spec_string ("title",
"Title",
"Title",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_TITLE_SIZE_GROUP] =
+ properties [PROP_TITLE_SIZE_GROUP] =
g_param_spec_object ("title-size-group",
"Title Size Group",
"Title Size Group",
GTK_TYPE_SIZE_GROUP,
(G_PARAM_WRITABLE | 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
diff --git a/src/shortcuts/gb-shortcuts-view.c b/src/shortcuts/gb-shortcuts-view.c
index a6a46c8..6bfd523 100644
--- a/src/shortcuts/gb-shortcuts-view.c
+++ b/src/shortcuts/gb-shortcuts-view.c
@@ -41,7 +41,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
adjust_page_buttons (GtkWidget *widget,
@@ -157,21 +157,21 @@ gb_shortcuts_view_class_init (GbShortcutsViewClass *klass)
container_class->add = gb_shortcuts_view_add;
- gParamSpecs [PROP_VIEW_NAME] =
+ properties [PROP_VIEW_NAME] =
g_param_spec_string ("view-name",
"View Name",
"View Name",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_TITLE] =
+ properties [PROP_TITLE] =
g_param_spec_string ("title",
"Title",
"Title",
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
diff --git a/src/tree/gb-tree-builder.c b/src/tree/gb-tree-builder.c
index 4ee9bc5..72b22e1 100644
--- a/src/tree/gb-tree-builder.c
+++ b/src/tree/gb-tree-builder.c
@@ -47,8 +47,8 @@ enum {
LAST_SIGNAL
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
gboolean
_gb_tree_builder_node_activated (GbTreeBuilder *builder,
@@ -59,7 +59,7 @@ _gb_tree_builder_node_activated (GbTreeBuilder *builder,
g_return_val_if_fail (GB_IS_TREE_BUILDER(builder), FALSE);
g_return_val_if_fail (GB_IS_TREE_NODE(node), FALSE);
- g_signal_emit (builder, gSignals [NODE_ACTIVATED], 0, node, &ret);
+ g_signal_emit (builder, signals [NODE_ACTIVATED], 0, node, &ret);
return ret;
}
@@ -73,7 +73,7 @@ _gb_tree_builder_node_popup (GbTreeBuilder *builder,
g_return_if_fail (GB_IS_TREE_NODE (node));
g_return_if_fail (G_IS_MENU (menu));
- g_signal_emit (builder, gSignals [NODE_POPUP], 0, node, menu);
+ g_signal_emit (builder, signals [NODE_POPUP], 0, node, menu);
}
void
@@ -83,7 +83,7 @@ _gb_tree_builder_node_selected (GbTreeBuilder *builder,
g_return_if_fail (GB_IS_TREE_BUILDER (builder));
g_return_if_fail (GB_IS_TREE_NODE (node));
- g_signal_emit (builder, gSignals [NODE_SELECTED], 0, node);
+ g_signal_emit (builder, signals [NODE_SELECTED], 0, node);
}
void
@@ -93,7 +93,7 @@ _gb_tree_builder_node_unselected (GbTreeBuilder *builder,
g_return_if_fail (GB_IS_TREE_BUILDER (builder));
g_return_if_fail (GB_IS_TREE_NODE (node));
- g_signal_emit (builder, gSignals [NODE_UNSELECTED], 0, node);
+ g_signal_emit (builder, signals [NODE_UNSELECTED], 0, node);
}
void
@@ -103,7 +103,7 @@ _gb_tree_builder_build_node (GbTreeBuilder *builder,
g_return_if_fail (GB_IS_TREE_BUILDER (builder));
g_return_if_fail (GB_IS_TREE_NODE (node));
- g_signal_emit (builder, gSignals [BUILD_NODE], 0, node);
+ g_signal_emit (builder, signals [BUILD_NODE], 0, node);
}
void
@@ -113,7 +113,7 @@ _gb_tree_builder_added (GbTreeBuilder *builder,
g_return_if_fail (GB_IS_TREE_BUILDER (builder));
g_return_if_fail (GB_IS_TREE (tree));
- g_signal_emit (builder, gSignals [ADDED], 0, tree);
+ g_signal_emit (builder, signals [ADDED], 0, tree);
}
void
@@ -123,7 +123,7 @@ _gb_tree_builder_removed (GbTreeBuilder *builder,
g_return_if_fail (GB_IS_TREE_BUILDER (builder));
g_return_if_fail (GB_IS_TREE (tree));
- g_signal_emit (builder, gSignals [REMOVED], 0, tree);
+ g_signal_emit (builder, signals [REMOVED], 0, tree);
}
void
@@ -150,7 +150,7 @@ _gb_tree_builder_set_tree (GbTreeBuilder *builder,
g_object_add_weak_pointer (G_OBJECT (priv->tree), (gpointer *)&priv->tree);
}
- g_object_notify_by_pspec (G_OBJECT (builder), gParamSpecs [PROP_TREE]);
+ g_object_notify_by_pspec (G_OBJECT (builder), properties [PROP_TREE]);
}
}
@@ -215,16 +215,16 @@ gb_tree_builder_class_init (GbTreeBuilderClass *klass)
object_class->finalize = gb_tree_builder_finalize;
object_class->get_property = gb_tree_builder_get_property;
- gParamSpecs[PROP_TREE] =
+ properties[PROP_TREE] =
g_param_spec_object("tree",
"Tree",
"The GbTree the builder belongs to.",
GB_TYPE_TREE,
G_PARAM_READABLE | 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 [ADDED] =
+ signals [ADDED] =
g_signal_new ("added",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -234,7 +234,7 @@ gb_tree_builder_class_init (GbTreeBuilderClass *klass)
1,
GB_TYPE_TREE);
- gSignals [BUILD_NODE] =
+ signals [BUILD_NODE] =
g_signal_new ("build-node",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -244,7 +244,7 @@ gb_tree_builder_class_init (GbTreeBuilderClass *klass)
1,
GB_TYPE_TREE_NODE);
- gSignals [NODE_ACTIVATED] =
+ signals [NODE_ACTIVATED] =
g_signal_new ("node-activated",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -254,7 +254,7 @@ gb_tree_builder_class_init (GbTreeBuilderClass *klass)
1,
GB_TYPE_TREE_NODE);
- gSignals [NODE_POPUP] =
+ signals [NODE_POPUP] =
g_signal_new ("node-popup",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -265,7 +265,7 @@ gb_tree_builder_class_init (GbTreeBuilderClass *klass)
GB_TYPE_TREE_NODE,
G_TYPE_MENU);
- gSignals [NODE_SELECTED] =
+ signals [NODE_SELECTED] =
g_signal_new ("node-selected",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -275,7 +275,7 @@ gb_tree_builder_class_init (GbTreeBuilderClass *klass)
1,
GB_TYPE_TREE_NODE);
- gSignals [NODE_UNSELECTED] =
+ signals [NODE_UNSELECTED] =
g_signal_new ("node-unselected",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -285,7 +285,7 @@ gb_tree_builder_class_init (GbTreeBuilderClass *klass)
1,
GB_TYPE_TREE_NODE);
- gSignals [REMOVED] =
+ signals [REMOVED] =
g_signal_new ("removed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
diff --git a/src/tree/gb-tree-node.c b/src/tree/gb-tree-node.c
index a4a5fb9..b6817d9 100644
--- a/src/tree/gb-tree-node.c
+++ b/src/tree/gb-tree-node.c
@@ -64,7 +64,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
/**
* gb_tree_node_new:
@@ -294,7 +294,7 @@ gb_tree_node_set_icon_name (GbTreeNode *node,
g_return_if_fail (GB_IS_TREE_NODE (node));
node->icon_name = g_quark_from_string (icon_name);
- g_object_notify_by_pspec (G_OBJECT (node), gParamSpecs [PROP_ICON_NAME]);
+ g_object_notify_by_pspec (G_OBJECT (node), properties [PROP_ICON_NAME]);
}
/**
@@ -313,7 +313,7 @@ gb_tree_node_set_item (GbTreeNode *node,
g_return_if_fail (!item || G_IS_OBJECT (item));
if (g_set_object (&node->item, item))
- g_object_notify_by_pspec (G_OBJECT (node), gParamSpecs [PROP_ITEM]);
+ g_object_notify_by_pspec (G_OBJECT (node), properties [PROP_ITEM]);
}
void
@@ -366,7 +366,7 @@ gb_tree_node_set_text (GbTreeNode *node,
{
g_free (node->text);
node->text = g_strdup (text);
- g_object_notify_by_pspec (G_OBJECT (node), gParamSpecs [PROP_TEXT]);
+ g_object_notify_by_pspec (G_OBJECT (node), properties [PROP_TEXT]);
}
}
@@ -389,7 +389,7 @@ gb_tree_node_set_use_markup (GbTreeNode *self,
if (self->use_markup != use_markup)
{
self->use_markup = use_markup;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_USE_MARKUP]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_USE_MARKUP]);
}
}
@@ -638,7 +638,7 @@ gb_tree_node_class_init (GbTreeNodeClass *klass)
* and simply hide the arrow if there were in fact no children (upon
* expansion).
*/
- gParamSpecs [PROP_CHILDREN_POSSIBLE] =
+ properties [PROP_CHILDREN_POSSIBLE] =
g_param_spec_boolean ("children-possible",
"Children Possible",
"Allows for lazy creation of children nodes.",
@@ -650,7 +650,7 @@ gb_tree_node_class_init (GbTreeNodeClass *klass)
*
* An icon-name to display on the row.
*/
- gParamSpecs[PROP_ICON_NAME] =
+ properties[PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
"Icon Name",
"The icon name to display.",
@@ -662,7 +662,7 @@ gb_tree_node_class_init (GbTreeNodeClass *klass)
*
* An optional #GObject to associate with the node.
*/
- gParamSpecs[PROP_ITEM] =
+ properties[PROP_ITEM] =
g_param_spec_object ("item",
"Item",
"Optional object to associate with node.",
@@ -674,7 +674,7 @@ gb_tree_node_class_init (GbTreeNodeClass *klass)
*
* The parent of the node.
*/
- gParamSpecs [PROP_PARENT] =
+ properties [PROP_PARENT] =
g_param_spec_object ("parent",
"Parent",
"The parent node.",
@@ -686,7 +686,7 @@ gb_tree_node_class_init (GbTreeNodeClass *klass)
*
* The tree the node belongs to.
*/
- gParamSpecs [PROP_TREE] =
+ properties [PROP_TREE] =
g_param_spec_object ("tree",
"Tree",
"The GbTree the node belongs to.",
@@ -698,7 +698,7 @@ gb_tree_node_class_init (GbTreeNodeClass *klass)
*
* Text to display on the tree node.
*/
- gParamSpecs [PROP_TEXT] =
+ properties [PROP_TEXT] =
g_param_spec_string ("text",
"Text",
"The text of the node.",
@@ -710,21 +710,21 @@ gb_tree_node_class_init (GbTreeNodeClass *klass)
*
* If the "text" property includes #GMarkup.
*/
- gParamSpecs [PROP_USE_MARKUP] =
+ properties [PROP_USE_MARKUP] =
g_param_spec_boolean ("use-markup",
"Use Markup",
"If text should be translated as markup.",
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
- gParamSpecs [PROP_USE_DIM_LABEL] =
+ properties [PROP_USE_DIM_LABEL] =
g_param_spec_boolean ("use-dim-label",
"Use Dim Label",
"If text should be rendered with a dim label.",
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);
}
static void
@@ -965,6 +965,6 @@ gb_tree_node_set_use_dim_label (GbTreeNode *self,
if (use_dim_label != self->use_dim_label)
{
self->use_dim_label = use_dim_label;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_USE_DIM_LABEL]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_USE_DIM_LABEL]);
}
}
diff --git a/src/tree/gb-tree.c b/src/tree/gb-tree.c
index c5715d4..ac7d773 100644
--- a/src/tree/gb-tree.c
+++ b/src/tree/gb-tree.c
@@ -75,8 +75,8 @@ enum {
};
static GtkBuildableIface *gb_tree_parent_buildable_iface;
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
void
_gb_tree_build_node (GbTree *self,
@@ -270,7 +270,7 @@ gb_tree_popup (GbTree *self,
menu_widget = gtk_menu_new_from_model (G_MENU_MODEL (menu));
g_clear_object (&menu);
- g_signal_emit (self, gSignals [POPULATE_POPUP], 0, menu_widget);
+ g_signal_emit (self, signals [POPULATE_POPUP], 0, menu_widget);
if ((target_x >= 0) && (target_y >= 0))
{
@@ -366,7 +366,7 @@ gb_tree_selection_changed (GbTree *self,
}
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_SELECTION]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SELECTION]);
IDE_EXIT;
}
@@ -948,21 +948,21 @@ gb_tree_class_init (GbTreeClass *klass)
klass->action = gb_tree_real_action;
- gParamSpecs[PROP_ROOT] =
+ properties[PROP_ROOT] =
g_param_spec_object ("root",
"Root",
"The root object of the tree.",
GB_TYPE_TREE_NODE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
- gParamSpecs[PROP_SELECTION] =
+ properties[PROP_SELECTION] =
g_param_spec_object ("selection",
"Selection",
"The node selection.",
GB_TYPE_TREE_NODE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
- gParamSpecs [PROP_SHOW_ICONS] =
+ properties [PROP_SHOW_ICONS] =
g_param_spec_boolean ("show-icons",
"Show Icons",
"Show Icons",
@@ -970,9 +970,9 @@ gb_tree_class_init (GbTreeClass *klass)
(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 [ACTION] =
+ signals [ACTION] =
g_signal_new ("action",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
@@ -984,7 +984,7 @@ gb_tree_class_init (GbTreeClass *klass)
G_TYPE_STRING,
G_TYPE_STRING);
- gSignals [POPULATE_POPUP] =
+ signals [POPULATE_POPUP] =
g_signal_new ("populate-popup",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -1098,7 +1098,7 @@ gb_tree_set_show_icons (GbTree *self,
gtk_tree_view_column_set_visible (priv->column, FALSE);
gtk_tree_view_column_set_visible (priv->column, TRUE);
g_object_notify_by_pspec (G_OBJECT (self),
- gParamSpecs [PROP_SHOW_ICONS]);
+ properties [PROP_SHOW_ICONS]);
}
}
@@ -1327,7 +1327,7 @@ gb_tree_set_root (GbTree *self,
_gb_tree_build_node (self, priv->root);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_ROOT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_ROOT]);
}
IDE_EXIT;
diff --git a/src/util/gb-settings.c b/src/util/gb-settings.c
index 389275b..632669d 100644
--- a/src/util/gb-settings.c
+++ b/src/util/gb-settings.c
@@ -22,7 +22,7 @@
#define GB_WINDOW_MIN_HEIGHT 720
#define SAVE_TIMEOUT_SECS 1
-static GSettings *gSettings;
+static GSettings *settings;
static gboolean
gb_settings__window_save_settings_cb (gpointer data)
@@ -32,7 +32,7 @@ gb_settings__window_save_settings_cb (gpointer data)
gboolean maximized;
g_assert (GTK_IS_WINDOW (window));
- g_assert (G_IS_SETTINGS (gSettings));
+ g_assert (G_IS_SETTINGS (settings));
g_object_set_data (G_OBJECT (window), "SETTINGS_HANDLER_ID", NULL);
@@ -40,23 +40,22 @@ gb_settings__window_save_settings_cb (gpointer data)
gtk_window_get_position (window, &geom.x, &geom.y);
maximized = gtk_window_is_maximized (window);
- g_settings_set (gSettings, "window-size", "(ii)", geom.width, geom.height);
- g_settings_set (gSettings, "window-position", "(ii)", geom.x, geom.y);
- g_settings_set_boolean (gSettings, "window-maximized", maximized);
+ g_settings_set (settings, "window-size", "(ii)", geom.width, geom.height);
+ g_settings_set (settings, "window-position", "(ii)", geom.x, geom.y);
+ g_settings_set_boolean (settings, "window-maximized", maximized);
return G_SOURCE_REMOVE;
}
static gboolean
gb_settings__window_configure_event (GtkWindow *window,
- GdkEventConfigure *event,
- GSettings *settings)
+ GdkEventConfigure *event)
{
guint handler;
g_assert (GTK_IS_WINDOW (window));
g_assert (event != NULL);
- g_assert (G_IS_SETTINGS (gSettings));
+ g_assert (G_IS_SETTINGS (settings));
handler = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (window), "SETTINGS_HANDLER_ID"));
@@ -72,18 +71,17 @@ gb_settings__window_configure_event (GtkWindow *window,
}
static void
-gb_settings__window_realize (GtkWindow *window,
- GSettings *settings)
+gb_settings__window_realize (GtkWindow *window)
{
GdkRectangle geom = { 0 };
gboolean maximized = FALSE;
g_assert (GTK_IS_WINDOW (window));
- g_assert (G_IS_SETTINGS (gSettings));
+ g_assert (G_IS_SETTINGS (settings));
- g_settings_get (gSettings, "window-position", "(ii)", &geom.x, &geom.y);
- g_settings_get (gSettings, "window-size", "(ii)", &geom.width, &geom.height);
- g_settings_get (gSettings, "window-maximized", "b", &maximized);
+ g_settings_get (settings, "window-position", "(ii)", &geom.x, &geom.y);
+ g_settings_get (settings, "window-size", "(ii)", &geom.width, &geom.height);
+ g_settings_get (settings, "window-maximized", "b", &maximized);
geom.width = MAX (geom.width, GB_WINDOW_MIN_WIDTH);
geom.height = MAX (geom.height, GB_WINDOW_MIN_HEIGHT);
@@ -96,13 +94,12 @@ gb_settings__window_realize (GtkWindow *window,
}
static void
-gb_settings__window_destroy (GtkWindow *window,
- GSettings *settings)
+gb_settings__window_destroy (GtkWindow *window)
{
guint handler;
g_assert (GTK_IS_WINDOW (window));
- g_assert (G_IS_SETTINGS (gSettings));
+ g_assert (G_IS_SETTINGS (settings));
handler = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (window), "SETTINGS_HANDLER_ID"));
@@ -124,20 +121,20 @@ gb_settings__window_destroy (GtkWindow *window,
G_CALLBACK (gb_settings__window_realize),
NULL);
- g_object_unref (gSettings);
+ g_object_unref (settings);
}
void
gb_settings_init_window (GtkWindow *window)
{
- if (gSettings == NULL)
+ if (settings == NULL)
{
- gSettings = g_settings_new ("org.gnome.builder");
- g_object_add_weak_pointer (G_OBJECT (gSettings), (gpointer *)&gSettings);
+ settings = g_settings_new ("org.gnome.builder");
+ g_object_add_weak_pointer (G_OBJECT (settings), (gpointer *)&settings);
}
else
{
- g_object_ref (gSettings);
+ g_object_ref (settings);
}
g_signal_connect (window,
diff --git a/src/util/gb-simple-popover.c b/src/util/gb-simple-popover.c
index 9c034cf..b8df7d9 100644
--- a/src/util/gb-simple-popover.c
+++ b/src/util/gb-simple-popover.c
@@ -47,8 +47,8 @@ enum {
LAST_SIGNAL
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
const gchar *
gb_simple_popover_get_button_text (GbSimplePopover *self)
@@ -69,7 +69,7 @@ gb_simple_popover_set_button_text (GbSimplePopover *self,
g_return_if_fail (GB_IS_SIMPLE_POPOVER (self));
gtk_button_set_label (priv->button, button_text);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_BUTTON_TEXT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_BUTTON_TEXT]);
}
const gchar *
@@ -91,7 +91,7 @@ gb_simple_popover_set_message (GbSimplePopover *self,
g_return_if_fail (GB_IS_SIMPLE_POPOVER (self));
gtk_label_set_label (priv->message, message);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_MESSAGE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MESSAGE]);
}
gboolean
@@ -113,7 +113,7 @@ gb_simple_popover_set_ready (GbSimplePopover *self,
g_return_if_fail (GB_IS_SIMPLE_POPOVER (self));
gtk_widget_set_sensitive (GTK_WIDGET (priv->button), ready);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_READY]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_READY]);
}
const gchar *
@@ -135,7 +135,7 @@ gb_simple_popover_set_text (GbSimplePopover *self,
g_return_if_fail (GB_IS_SIMPLE_POPOVER (self));
gtk_entry_set_text (priv->entry, text);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_TEXT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TEXT]);
}
const gchar *
@@ -157,7 +157,7 @@ gb_simple_popover_set_title (GbSimplePopover *self,
g_return_if_fail (GB_IS_SIMPLE_POPOVER (self));
gtk_label_set_label (priv->title, title);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_TITLE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TITLE]);
}
static void
@@ -171,7 +171,7 @@ gb_simple_popover_button_clicked (GbSimplePopover *self,
g_assert (GTK_IS_BUTTON (button));
text = gtk_entry_get_text (GTK_ENTRY (priv->entry));
- g_signal_emit (self, gSignals [ACTIVATE], 0, text);
+ g_signal_emit (self, signals [ACTIVATE], 0, text);
gtk_widget_hide (GTK_WIDGET (self));
}
@@ -195,7 +195,7 @@ gb_simple_popover_entry_changed (GbSimplePopover *self,
g_assert (GB_IS_SIMPLE_POPOVER (self));
g_assert (GTK_IS_ENTRY (entry));
- g_signal_emit (self, gSignals [CHANGED], 0);
+ g_signal_emit (self, signals [CHANGED], 0);
}
static void
@@ -216,7 +216,7 @@ gb_simple_popover_entry_insert_text (GbSimplePopover *self,
pos = *position;
n_chars = (new_text_length >= 0) ? new_text_length : g_utf8_strlen (new_text, -1);
- g_signal_emit (self, gSignals [INSERT_TEXT], 0, pos, new_text, n_chars, &ret);
+ g_signal_emit (self, signals [INSERT_TEXT], 0, pos, new_text, n_chars, &ret);
if (ret == GDK_EVENT_STOP)
g_signal_stop_emission_by_name (entry, "insert-text");
@@ -301,44 +301,44 @@ gb_simple_popover_class_init (GbSimplePopoverClass *klass)
object_class->get_property = gb_simple_popover_get_property;
object_class->set_property = gb_simple_popover_set_property;
- gParamSpecs [PROP_BUTTON_TEXT] =
+ properties [PROP_BUTTON_TEXT] =
g_param_spec_string ("button-text",
"Button Text",
"Button Text",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_MESSAGE] =
+ properties [PROP_MESSAGE] =
g_param_spec_string ("message",
"Message",
"Message",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_READY] =
+ properties [PROP_READY] =
g_param_spec_boolean ("ready",
"Ready",
"Ready",
FALSE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_TEXT] =
+ properties [PROP_TEXT] =
g_param_spec_string ("text",
"Text",
"Text",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_TITLE] =
+ properties [PROP_TITLE] =
g_param_spec_string ("title",
"Title",
"Title",
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);
- gSignals [ACTIVATE] =
+ signals [ACTIVATE] =
g_signal_new ("activate",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -348,7 +348,7 @@ gb_simple_popover_class_init (GbSimplePopoverClass *klass)
1,
G_TYPE_STRING);
- gSignals [CHANGED] =
+ signals [CHANGED] =
g_signal_new ("changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -357,7 +357,7 @@ gb_simple_popover_class_init (GbSimplePopoverClass *klass)
G_TYPE_NONE,
0);
- gSignals [INSERT_TEXT] =
+ signals [INSERT_TEXT] =
g_signal_new ("insert-text",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
diff --git a/src/views/gb-view-stack-actions.c b/src/views/gb-view-stack-actions.c
index e32a70c..5d695db 100644
--- a/src/views/gb-view-stack-actions.c
+++ b/src/views/gb-view-stack-actions.c
@@ -276,7 +276,7 @@ gb_view_stack_actions_show_list (GSimpleAction *action,
g_signal_emit_by_name (self->views_button, "activate");
}
-static const GActionEntry gGbViewStackActions[] = {
+static const GActionEntry gbViewStackActions[] = {
{ "close", gb_view_stack_actions_close },
{ "go-forward", gb_view_stack_actions_go_forward },
{ "go-backward", gb_view_stack_actions_go_backward },
@@ -298,7 +298,7 @@ gb_view_stack_actions_init (GbViewStack *self)
g_assert (GB_IS_VIEW_STACK (self));
actions = g_simple_action_group_new ();
- g_action_map_add_action_entries (G_ACTION_MAP (actions), gGbViewStackActions,
- G_N_ELEMENTS (gGbViewStackActions), self);
+ g_action_map_add_action_entries (G_ACTION_MAP (actions), gbViewStackActions,
+ G_N_ELEMENTS (gbViewStackActions), self);
gtk_widget_insert_action_group (GTK_WIDGET (self), "view-stack", G_ACTION_GROUP (actions));
}
diff --git a/src/views/gb-view-stack.c b/src/views/gb-view-stack.c
index 41b6f6d..d4bb75f 100644
--- a/src/views/gb-view-stack.c
+++ b/src/views/gb-view-stack.c
@@ -44,8 +44,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
gb_view_stack_add_list_row (GbViewStack *self,
@@ -204,7 +204,7 @@ gb_view_stack_remove (GbViewStack *self,
g_clear_object (&focus_after_close);
}
else
- g_signal_emit (self, gSignals [EMPTY], 0);
+ g_signal_emit (self, signals [EMPTY], 0);
}
static void
@@ -550,16 +550,16 @@ gb_view_stack_class_init (GbViewStackClass *klass)
container_class->add = gb_view_stack_add;
container_class->remove = gb_view_stack_real_remove;
- gParamSpecs [PROP_ACTIVE_VIEW] =
+ properties [PROP_ACTIVE_VIEW] =
g_param_spec_object ("active-view",
"Active View",
"The active view.",
GB_TYPE_VIEW,
(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 [EMPTY] =
+ signals [EMPTY] =
g_signal_new_class_handler ("empty",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -578,7 +578,7 @@ gb_view_stack_class_init (GbViewStackClass *klass)
*
* This should only be used by #GbViewGrid.
*/
- gSignals [SPLIT] = g_signal_new ("split",
+ signals [SPLIT] = g_signal_new ("split",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
@@ -726,7 +726,7 @@ gb_view_stack_set_active_view (GbViewStack *self,
gb_view_stack_move_top_list_row (self, GB_VIEW (active_view));
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_ACTIVE_VIEW]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_ACTIVE_VIEW]);
}
}
diff --git a/src/views/gb-view.c b/src/views/gb-view.c
index 0a71094..0980223 100644
--- a/src/views/gb-view.c
+++ b/src/views/gb-view.c
@@ -42,7 +42,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
/**
* gb_view_get_can_preview:
@@ -212,8 +212,8 @@ gb_view_notify (GObject *object,
* This should get removed after 3.18 when path bar lands.
* This also notifies of special-title after title is emitted.
*/
- if (pspec == gParamSpecs [PROP_TITLE])
- g_object_notify_by_pspec (object, gParamSpecs [PROP_SPECIAL_TITLE]);
+ if (pspec == properties [PROP_TITLE])
+ g_object_notify_by_pspec (object, properties [PROP_SPECIAL_TITLE]);
if (G_OBJECT_CLASS (gb_view_parent_class)->notify)
G_OBJECT_CLASS (gb_view_parent_class)->notify (object, pspec);
@@ -279,28 +279,28 @@ gb_view_class_init (GbViewClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/builder/ui/gb-view.ui");
gtk_widget_class_bind_template_child_private (widget_class, GbView, menu);
- gParamSpecs [PROP_CAN_SPLIT] =
+ properties [PROP_CAN_SPLIT] =
g_param_spec_boolean ("can-split",
"Can Split",
"If the view can be split.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_DOCUMENT] =
+ properties [PROP_DOCUMENT] =
g_param_spec_object ("document",
"Document",
"The underlying document.",
GB_TYPE_DOCUMENT,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_MODIFIED] =
+ properties [PROP_MODIFIED] =
g_param_spec_boolean ("modified",
"Modified",
"If the document has been modified.",
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_TITLE] =
+ properties [PROP_TITLE] =
g_param_spec_string ("title",
"Title",
"The view title.",
@@ -312,14 +312,14 @@ gb_view_class_init (GbViewClass *klass)
*
* This property should be removed after 3.18 when path bar lands.
*/
- gParamSpecs [PROP_SPECIAL_TITLE] =
+ properties [PROP_SPECIAL_TITLE] =
g_param_spec_string ("special-title",
"Special Title",
"The special title to be displayed in the document menu button.",
NULL,
(G_PARAM_READABLE | 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
diff --git a/src/workbench/gb-workbench.c b/src/workbench/gb-workbench.c
index b7b61e3..48f60ac 100644
--- a/src/workbench/gb-workbench.c
+++ b/src/workbench/gb-workbench.c
@@ -54,9 +54,9 @@ enum {
TARGET_URI_LIST = 100
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
-static const GtkTargetEntry gDropTypes[] = {
+static GParamSpec *properties [LAST_PROP];
+static guint signals [LAST_SIGNAL];
+static const GtkTargetEntry dropTypes[] = {
{ "text/uri-list", 0, TARGET_URI_LIST}
};
@@ -307,7 +307,7 @@ gb_workbench_set_context (GbWorkbench *self,
gb_workbench_connect_context (self, context);
}
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_CONTEXT]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CONTEXT]);
}
}
@@ -362,7 +362,7 @@ gb_workbench_delete_event (GtkWidget *widget,
self->unloading = TRUE;
self->unload_cancellable = g_cancellable_new ();
- g_signal_emit (self, gSignals [UNLOAD], 0, self->context);
+ g_signal_emit (self, signals [UNLOAD], 0, self->context);
ide_context_unload_async (self->context,
self->unload_cancellable,
gb_workbench__unload_cb,
@@ -448,7 +448,7 @@ gb_workbench_active_view_unref (gpointer data,
g_assert (GB_IS_WORKBENCH (self));
self->active_view = NULL;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_ACTIVE_VIEW]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_ACTIVE_VIEW]);
}
static void
@@ -573,7 +573,7 @@ gb_workbench_set_focus (GtkWindow *window,
self);
}
- g_object_notify_by_pspec (G_OBJECT (window), gParamSpecs [PROP_ACTIVE_VIEW]);
+ g_object_notify_by_pspec (G_OBJECT (window), properties [PROP_ACTIVE_VIEW]);
chainup:
GTK_WINDOW_CLASS (gb_workbench_parent_class)->set_focus (window, widget);
@@ -679,14 +679,14 @@ gb_workbench_class_init (GbWorkbenchClass *klass)
window_class->set_focus = gb_workbench_set_focus;
- gParamSpecs [PROP_ACTIVE_VIEW] =
+ properties [PROP_ACTIVE_VIEW] =
g_param_spec_object ("active-view",
"Active View",
"Active View",
GB_TYPE_VIEW,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_BUILDING] =
+ properties [PROP_BUILDING] =
g_param_spec_boolean ("building",
"Building",
"If the project is currently building.",
@@ -701,16 +701,16 @@ gb_workbench_class_init (GbWorkbenchClass *klass)
* another window or dialog to choose the project information before
* creating a workbench window.
*/
- gParamSpecs [PROP_CONTEXT] =
+ properties [PROP_CONTEXT] =
g_param_spec_object ("context",
"Context",
"The IdeContext for the workbench.",
IDE_TYPE_CONTEXT,
(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);
- gSignals [UNLOAD] =
+ signals [UNLOAD] =
g_signal_new ("unload",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -747,7 +747,7 @@ gb_workbench_init (GbWorkbench *self)
/* Drag and drop support*/
gtk_drag_dest_set (GTK_WIDGET (self),
(GTK_DEST_DEFAULT_MOTION | GTK_DEST_DEFAULT_HIGHLIGHT | GTK_DEST_DEFAULT_DROP),
- gDropTypes, G_N_ELEMENTS (gDropTypes), GDK_ACTION_COPY);
+ dropTypes, G_N_ELEMENTS (dropTypes), GDK_ACTION_COPY);
gb_settings_init_window (GTK_WINDOW (self));
@@ -924,7 +924,7 @@ gb_workbench__builder_build_cb (GObject *object,
g_assert (GB_IS_WORKBENCH (self));
self->building = FALSE;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_BUILDING]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_BUILDING]);
build_result = ide_builder_build_finish (builder, result, &error);
@@ -993,7 +993,7 @@ gb_workbench_build_async (GbWorkbench *self,
}
self->building = TRUE;
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_BUILDING]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_BUILDING]);
ide_builder_build_async (builder,
force_rebuild ? IDE_BUILDER_BUILD_FLAGS_FORCE_REBUILD : 0,
diff --git a/src/workspace/gb-slider.c b/src/workspace/gb-slider.c
index 4b34e7c..17ff9cb 100644
--- a/src/workspace/gb-slider.c
+++ b/src/workspace/gb-slider.c
@@ -63,7 +63,7 @@ enum {
#define ANIMATION_MODE EGG_ANIMATION_EASE_IN_QUAD
#define ANIMATION_DURATION 150
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
gb_slider_child_free (GbSliderChild *child)
@@ -750,7 +750,7 @@ gb_slider_class_init (GbSliderClass *klass)
container_class->remove = gb_slider_remove;
container_class->set_child_property = gb_slider_set_child_property;
- gParamSpecs [PROP_POSITION] =
+ properties [PROP_POSITION] =
g_param_spec_enum ("position",
"Position",
"Which slider child is visible.",
@@ -758,7 +758,7 @@ gb_slider_class_init (GbSliderClass *klass)
GB_SLIDER_NONE,
(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);
gtk_container_class_install_child_property (container_class,
CHILD_PROP_POSITION,
@@ -918,7 +918,7 @@ gb_slider_set_position (GbSlider *self,
NULL);
ide_set_weak_pointer (&priv->v_anim, anim);
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_POSITION]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_POSITION]);
gtk_widget_queue_resize (GTK_WIDGET (self));
}
}
diff --git a/src/workspace/gb-workspace-pane.c b/src/workspace/gb-workspace-pane.c
index 8a518ef..13a2fba 100644
--- a/src/workspace/gb-workspace-pane.c
+++ b/src/workspace/gb-workspace-pane.c
@@ -51,8 +51,8 @@ enum {
LAST_STYLE_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static GParamSpec *gStyleParamSpecs [LAST_STYLE_PROP];
+static GParamSpec *properties [LAST_PROP];
+static GParamSpec *styleParamSpecs [LAST_STYLE_PROP];
static gboolean
gb_workspace_pane_draw (GtkWidget *widget,
@@ -286,7 +286,7 @@ gb_workspace_pane_class_init (GbWorkspacePaneClass *klass)
* being placed on the right, and animations to and from the leftmost
* of the allocation.
*/
- gParamSpecs [PROP_POSITION] =
+ properties [PROP_POSITION] =
g_param_spec_enum ("position",
"Position",
"The position of the pane.",
@@ -294,9 +294,9 @@ gb_workspace_pane_class_init (GbWorkspacePaneClass *klass)
GTK_POS_LEFT,
(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);
- gStyleParamSpecs [STYLE_PROP_HANDLE_SIZE] =
+ styleParamSpecs [STYLE_PROP_HANDLE_SIZE] =
g_param_spec_int ("handle-size",
"Handle Size",
"Width of handle.",
@@ -304,7 +304,7 @@ gb_workspace_pane_class_init (GbWorkspacePaneClass *klass)
1,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gtk_widget_class_install_style_property (widget_class,
- gStyleParamSpecs [STYLE_PROP_HANDLE_SIZE]);
+ styleParamSpecs [STYLE_PROP_HANDLE_SIZE]);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/builder/ui/gb-workspace-pane.ui");
gtk_widget_class_bind_template_child (widget_class, GbWorkspacePane, box);
@@ -351,7 +351,7 @@ gb_workspace_pane_set_position (GbWorkspacePane *self,
{
self->position = position;
gtk_widget_queue_resize (GTK_WIDGET (self));
- g_object_notify_by_pspec (G_OBJECT (self), gParamSpecs [PROP_POSITION]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_POSITION]);
}
}
diff --git a/src/workspace/gb-workspace.c b/src/workspace/gb-workspace.c
index 6f79a90..abb5564 100644
--- a/src/workspace/gb-workspace.c
+++ b/src/workspace/gb-workspace.c
@@ -85,8 +85,8 @@ enum {
};
static GtkBuildableIface *gb_workspace_parent_buildable_iface;
-static GParamSpec *gParamSpecs [LAST_PROP];
-static GParamSpec *gChildParamSpecs [LAST_CHILD_PROP];
+static GParamSpec *properties [LAST_PROP];
+static GParamSpec *childParamSpecs [LAST_CHILD_PROP];
static void
gb_workspace_move_resize_handle (GbWorkspace *self,
@@ -1058,37 +1058,37 @@ gb_workspace_class_init (GbWorkspaceClass *klass)
overlay_class->get_child_position = gb_workspace_get_child_position;
- gParamSpecs [PROP_LEFT_PANE] =
+ properties [PROP_LEFT_PANE] =
g_param_spec_object ("left-pane",
"Left Pane",
"The left workspace pane.",
GTK_TYPE_WIDGET,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_RIGHT_PANE] =
+ properties [PROP_RIGHT_PANE] =
g_param_spec_object ("right-pane",
"Right Pane",
"The right workspace pane.",
GTK_TYPE_WIDGET,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_BOTTOM_PANE] =
+ properties [PROP_BOTTOM_PANE] =
g_param_spec_object ("bottom-pane",
"Bottom Pane",
"The bottom workspace pane.",
GTK_TYPE_WIDGET,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_CONTENT_PANE] =
+ properties [PROP_CONTENT_PANE] =
g_param_spec_object ("content-pane",
"Content Pane",
"The content workspace pane.",
GTK_TYPE_WIDGET,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
+ g_object_class_install_properties (object_class, LAST_PROP, properties);
- gChildParamSpecs [CHILD_PROP_POSITION] =
+ childParamSpecs [CHILD_PROP_POSITION] =
g_param_spec_uint ("position",
"Position",
"The position of the pane relative to its edge.",
@@ -1096,16 +1096,16 @@ gb_workspace_class_init (GbWorkspaceClass *klass)
0,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gtk_container_class_install_child_property (container_class, CHILD_PROP_POSITION,
- gChildParamSpecs [CHILD_PROP_POSITION]);
+ childParamSpecs [CHILD_PROP_POSITION]);
- gChildParamSpecs [CHILD_PROP_REVEAL] =
+ childParamSpecs [CHILD_PROP_REVEAL] =
g_param_spec_boolean ("reveal",
"Reveal",
"If the pane should be revealed.",
TRUE,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gtk_container_class_install_child_property (container_class, CHILD_PROP_REVEAL,
- gChildParamSpecs [CHILD_PROP_REVEAL]);
+ childParamSpecs [CHILD_PROP_REVEAL]);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/builder/ui/gb-workspace.ui");
diff --git a/tests/test-egg-signal-group.c b/tests/test-egg-signal-group.c
index 08f7c83..88cfe9a 100644
--- a/tests/test-egg-signal-group.c
+++ b/tests/test-egg-signal-group.c
@@ -20,12 +20,12 @@ enum {
LAST_SIGNAL
};
-static guint gSignals [LAST_SIGNAL];
+static guint signals [LAST_SIGNAL];
static void
signal_target_class_init (SignalTargetClass *klass)
{
- gSignals [THE_SIGNAL] =
+ signals [THE_SIGNAL] =
g_signal_new ("the-signal",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
@@ -35,7 +35,7 @@ signal_target_class_init (SignalTargetClass *klass)
1,
G_TYPE_OBJECT);
- gSignals [NEVER_EMITTED] =
+ signals [NEVER_EMITTED] =
g_signal_new ("never-emitted",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
@@ -219,7 +219,7 @@ assert_signals (SignalTarget *target,
g_assert (group == NULL || EGG_IS_SIGNAL_GROUP (group));
global_signal_calls = 0;
- g_signal_emit (target, gSignals [THE_SIGNAL],
+ g_signal_emit (target, signals [THE_SIGNAL],
signal_detail_quark (), group);
g_assert_cmpint (global_signal_calls, ==, success ? 5 : 0);
}
diff --git a/tests/test-egg-state-machine.c b/tests/test-egg-state-machine.c
index cfae1bb..f2e3c74 100644
--- a/tests/test-egg-state-machine.c
+++ b/tests/test-egg-state-machine.c
@@ -41,7 +41,7 @@ enum {
LAST_PROP
};
-static GParamSpec *gParamSpecs [LAST_PROP];
+static GParamSpec *properties [LAST_PROP];
static void
get_property (GObject *object,
@@ -102,14 +102,14 @@ test_object_class_init (TestObjectClass *klass)
obj_class->get_property = get_property;
obj_class->set_property = set_property;
- gParamSpecs [PROP_STRING] =
+ properties [PROP_STRING] =
g_param_spec_string ("string",
"string",
"string",
NULL,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_properties (obj_class, LAST_PROP, gParamSpecs);
+ g_object_class_install_properties (obj_class, LAST_PROP, properties);
g_signal_new ("frobnicate",
G_TYPE_FROM_CLASS (klass),
diff --git a/tests/test-ide-ctags.c b/tests/test-ide-ctags.c
index 130117b..029aa5b 100644
--- a/tests/test-ide-ctags.c
+++ b/tests/test-ide-ctags.c
@@ -20,7 +20,7 @@
#include "ctags/ide-ctags-index.h"
-static GMainLoop *gMainLoop;
+static GMainLoop *main_loop;
static void
init_cb (GObject *object,
@@ -68,7 +68,7 @@ init_cb (GObject *object,
for (i = 0; i < 815; i++)
g_assert (g_str_has_prefix (entries [i].name, "Ide"));
- g_main_loop_quit (gMainLoop);
+ g_main_loop_quit (main_loop);
}
static void
@@ -78,7 +78,7 @@ test_ctags_basic (void)
GFile *test_file;
gchar *path;
- gMainLoop = g_main_loop_new (NULL, FALSE);
+ main_loop = g_main_loop_new (NULL, FALSE);
path = g_build_filename (TEST_DATA_DIR, "project1", "tags", NULL);
test_file = g_file_new_for_path (path);
@@ -91,7 +91,7 @@ test_ctags_basic (void)
init_cb,
NULL);
- g_main_loop_run (gMainLoop);
+ g_main_loop_run (main_loop);
g_object_unref (index);
g_free (path);
diff --git a/tests/test-ide-source-view.c b/tests/test-ide-source-view.c
index a029fd6..8c3c5d4 100644
--- a/tests/test-ide-source-view.c
+++ b/tests/test-ide-source-view.c
@@ -32,20 +32,20 @@
#define ADD_CLASS(widget,name) \
gtk_style_context_add_class(gtk_widget_get_style_context(GTK_WIDGET(widget)), name)
-static IdeContext *gContext;
-static GtkWindow *gWindow;
-static GtkStack *gDocStack;
-static GtkMenuButton *gDocname;
-static GtkProgressBar *gProgress;
-static GHashTable *gBufferToView;
-static GList *gFilesToOpen;
-static gint gExitCode = EXIT_SUCCESS;
-static gboolean gWordCompletion;
-static gboolean gDarkMode;
-static gboolean gSearchShadow;
-static gboolean gSmartBackspace;
-static gboolean gDebugScrollOffset;
-static gchar *gCss = "\
+static IdeContext *context;
+static GtkWindow *window;
+static GtkStack *docStack;
+static GtkMenuButton *docname;
+static GtkProgressBar *progress;
+static GHashTable *bufferToView;
+static GList *filesToOpen;
+static gint exit_code = EXIT_SUCCESS;
+static gboolean wordCompletion;
+static gboolean darkMode;
+static gboolean searchShadow;
+static gboolean smartBackspace;
+static gboolean debugScrollOffset;
+static gchar *css = "\
@binding-set file-keybindings { \
bind \"<ctrl>s\" { \"action\" (\"file\", \"save\", \"\") }; \
} \
@@ -57,7 +57,7 @@ IdeSourceView { \
static void
quit (int exit_code)
{
- gExitCode = exit_code;
+ exit_code = exit_code;
gtk_main_quit ();
return;
}
@@ -92,7 +92,7 @@ idedit__context_unload_cb (GObject *object,
g_clear_error (&error);
}
- gtk_window_close (gWindow);
+ gtk_window_close (window);
}
static gboolean
@@ -100,13 +100,13 @@ delete_event_cb (GtkWindow *window,
GdkEvent *event,
gpointer user_data)
{
- if (gContext)
+ if (context)
{
- ide_context_unload_async (gContext,
+ ide_context_unload_async (context,
NULL,
idedit__context_unload_cb,
NULL);
- g_clear_object (&gContext);
+ g_clear_object (&context);
return TRUE;
}
@@ -149,9 +149,9 @@ add_buffer (IdeBuffer *buffer)
IdeSourceView *view;
IdeBackForwardList *bflist;
- bflist = ide_context_get_back_forward_list (gContext);
+ bflist = ide_context_get_back_forward_list (context);
- view = g_hash_table_lookup (gBufferToView, buffer);
+ view = g_hash_table_lookup (bufferToView, buffer);
if (!view)
{
@@ -165,29 +165,29 @@ add_buffer (IdeBuffer *buffer)
"auto-indent", TRUE,
"back-forward-list", bflist,
"buffer", buffer,
- "enable-word-completion", gWordCompletion,
+ "enable-word-completion", wordCompletion,
"highlight-current-line", TRUE,
"insert-matching-brace", TRUE,
"overwrite-braces", TRUE,
- "scroll-offset", gDebugScrollOffset ? 5 : 0,
+ "scroll-offset", debugScrollOffset ? 5 : 0,
"sensitive", FALSE,
"show-grid-lines", TRUE,
"show-line-changes", TRUE,
"show-line-numbers", TRUE,
"show-right-margin", TRUE,
"show-search-bubbles", TRUE,
- "show-search-shadow", gSearchShadow,
- "smart-backspace", gSmartBackspace,
+ "show-search-shadow", searchShadow,
+ "smart-backspace", smartBackspace,
"snippet-completion", TRUE,
"visible", TRUE,
NULL);
completion = gtk_source_view_get_completion (GTK_SOURCE_VIEW (view));
g_object_set (completion, "show-headers", FALSE, NULL);
- if (gDebugScrollOffset)
+ if (debugScrollOffset)
g_signal_connect_after (view, "draw", G_CALLBACK (debug_draw), NULL);
gtk_container_add (GTK_CONTAINER (scroller), GTK_WIDGET (view));
- gtk_container_add (GTK_CONTAINER (gDocStack), GTK_WIDGET (scroller));
- g_hash_table_insert (gBufferToView, buffer, view);
+ gtk_container_add (GTK_CONTAINER (docStack), GTK_WIDGET (scroller));
+ g_hash_table_insert (bufferToView, buffer, view);
}
}
@@ -216,11 +216,11 @@ switch_to_buffer (IdeBuffer *buffer,
GtkTextIter iter;
GtkWidget *parent;
- view = g_hash_table_lookup (gBufferToView, buffer);
+ view = g_hash_table_lookup (bufferToView, buffer);
g_assert (view);
parent = gtk_widget_get_parent (GTK_WIDGET (view));
- gtk_stack_set_visible_child (GTK_STACK (gDocStack), parent);
+ gtk_stack_set_visible_child (GTK_STACK (docStack), parent);
gtk_text_buffer_get_iter_at_line (GTK_TEXT_BUFFER (buffer), &iter, line);
for (; line_offset; line_offset--)
@@ -261,12 +261,12 @@ idedit__bufmgr_load_file_cb (GObject *object,
switch_to_buffer (buf, line, line_offset);
}
- view = g_hash_table_lookup (gBufferToView, buf);
+ view = g_hash_table_lookup (bufferToView, buf);
if (view)
{
GtkSourceStyleScheme *scheme;
GtkSourceStyleSchemeManager *schememgr;
- const gchar *name = gDarkMode ? "builder-dark" : "builder";
+ const gchar *name = darkMode ? "builder-dark" : "builder";
schememgr = gtk_source_style_scheme_manager_get_default ();
scheme = gtk_source_style_scheme_manager_get_scheme (schememgr, name);
@@ -297,8 +297,8 @@ notify_visible_child_cb (GtkStack *stack,
view = IDE_SOURCE_VIEW (gtk_bin_get_child (GTK_BIN (child)));
buffer = IDE_BUFFER (gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)));
title = ide_buffer_get_title (buffer);
- gtk_window_set_title (gWindow, title);
- gtk_button_set_label (GTK_BUTTON (gDocname), title);
+ gtk_window_set_title (window, title);
+ gtk_button_set_label (GTK_BUTTON (docname), title);
}
}
@@ -348,7 +348,7 @@ save_activate (GSimpleAction *action,
{
GtkWidget *current;
- current = gtk_stack_get_visible_child (gDocStack);
+ current = gtk_stack_get_visible_child (docStack);
if (current != NULL)
{
current = gtk_bin_get_child (GTK_BIN (current));
@@ -360,13 +360,13 @@ save_activate (GSimpleAction *action,
IdeProgress *progress = NULL;
buffer = IDE_BUFFER (gtk_text_view_get_buffer (GTK_TEXT_VIEW (current)));
- bufmgr = ide_context_get_buffer_manager (gContext);
+ bufmgr = ide_context_get_buffer_manager (context);
file = ide_buffer_get_file (buffer);
ide_buffer_manager_save_file_async (bufmgr, buffer, file, &progress, NULL, NULL, NULL);
- g_object_bind_property (progress, "fraction", gProgress, "fraction", G_BINDING_SYNC_CREATE);
- g_signal_connect (progress, "notify::completed", G_CALLBACK (progress_completed), gProgress);
- gtk_widget_show (GTK_WIDGET (gProgress));
+ g_object_bind_property (progress, "fraction", progress, "fraction", G_BINDING_SYNC_CREATE);
+ g_signal_connect (progress, "notify::completed", G_CALLBACK (progress_completed), progress);
+ gtk_widget_show (GTK_WIDGET (progress));
}
}
}
@@ -378,7 +378,7 @@ go_forward_activate (GSimpleAction *action,
{
IdeBackForwardList *list;
- list = ide_context_get_back_forward_list (gContext);
+ list = ide_context_get_back_forward_list (context);
if (ide_back_forward_list_get_can_go_forward (list))
ide_back_forward_list_go_forward (list);
@@ -391,7 +391,7 @@ go_backward_activate (GSimpleAction *action,
{
IdeBackForwardList *list;
- list = ide_context_get_back_forward_list (gContext);
+ list = ide_context_get_back_forward_list (context);
if (ide_back_forward_list_get_can_go_backward (list))
ide_back_forward_list_go_backward (list);
@@ -417,7 +417,7 @@ navigate_to_cb (IdeBackForwardList *list,
line_offset = ide_source_location_get_line_offset (srcloc);
gfile = ide_file_get_file (file);
- bufmgr = ide_context_get_buffer_manager (gContext);
+ bufmgr = ide_context_get_buffer_manager (context);
buffer = ide_buffer_manager_find_buffer (bufmgr, gfile);
if (buffer)
@@ -458,29 +458,29 @@ create_window (void)
css = gtk_css_provider_new ();
g_signal_connect (css, "parsing-error", G_CALLBACK (parsing_error_cb), NULL);
- gtk_css_provider_load_from_data (css, gCss, -1, NULL);
+ gtk_css_provider_load_from_data (css, css, -1, NULL);
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
GTK_STYLE_PROVIDER (css),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
g_clear_object (&css);
- gWindow = g_object_new (GTK_TYPE_WINDOW,
+ window = g_object_new (GTK_TYPE_WINDOW,
"default-width", 1280,
"default-height", 720,
"title", _("idedit"),
NULL);
- g_signal_connect (gWindow, "delete-event", G_CALLBACK (delete_event_cb), NULL);
+ g_signal_connect (window, "delete-event", G_CALLBACK (delete_event_cb), NULL);
- bflist = ide_context_get_back_forward_list (gContext);
+ bflist = ide_context_get_back_forward_list (context);
g_signal_connect (bflist, "navigate-to", G_CALLBACK (navigate_to_cb), NULL);
group = g_simple_action_group_new ();
g_action_map_add_action_entries (G_ACTION_MAP (group), entries, G_N_ELEMENTS (entries), NULL);
- gtk_widget_insert_action_group (GTK_WIDGET (gWindow), "file", G_ACTION_GROUP (group));
+ gtk_widget_insert_action_group (GTK_WIDGET (window), "file", G_ACTION_GROUP (group));
nav_group = g_simple_action_group_new ();
g_action_map_add_action_entries (G_ACTION_MAP (nav_group), nav_entries, G_N_ELEMENTS (nav_entries), NULL);
- gtk_widget_insert_action_group (GTK_WIDGET (gWindow), "navigation", G_ACTION_GROUP (nav_group));
+ gtk_widget_insert_action_group (GTK_WIDGET (window), "navigation", G_ACTION_GROUP (nav_group));
g_object_bind_property (bflist, "can-go-backward",
g_action_map_lookup_action (G_ACTION_MAP (nav_group), "go-backward"), "enabled",
@@ -495,13 +495,13 @@ create_window (void)
"title", "idedit",
"visible", TRUE,
NULL);
- gtk_window_set_titlebar (gWindow, GTK_WIDGET (header));
+ gtk_window_set_titlebar (window, GTK_WIDGET (header));
box = g_object_new (GTK_TYPE_BOX,
"orientation", GTK_ORIENTATION_VERTICAL,
"visible", TRUE,
NULL);
- gtk_container_add (GTK_CONTAINER (gWindow), GTK_WIDGET (box));
+ gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (box));
hbox = g_object_new (GTK_TYPE_BOX,
"orientation", GTK_ORIENTATION_HORIZONTAL,
@@ -559,14 +559,14 @@ create_window (void)
gtk_box_pack_start (hbox2, GTK_WIDGET (sep), FALSE, FALSE, 0);
/* document name */
- gDocname = g_object_new (GTK_TYPE_MENU_BUTTON,
+ docname = g_object_new (GTK_TYPE_MENU_BUTTON,
"label", "my-document.c",
"hexpand", TRUE,
"visible", TRUE,
NULL);
- ADD_CLASS (gDocname, "text-button");
- ADD_CLASS (gDocname, "flat");
- gtk_box_set_center_widget (hbox2, GTK_WIDGET (gDocname));
+ ADD_CLASS (docname, "text-button");
+ ADD_CLASS (docname, "flat");
+ gtk_box_set_center_widget (hbox2, GTK_WIDGET (docname));
closebtn = g_object_new (GTK_TYPE_BUTTON,
"child", g_object_new (GTK_TYPE_IMAGE,
@@ -611,20 +611,20 @@ create_window (void)
NULL);
gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (overlay));
- gProgress = g_object_new (GTK_TYPE_PROGRESS_BAR,
+ progress = g_object_new (GTK_TYPE_PROGRESS_BAR,
"valign", GTK_ALIGN_START,
"orientation", GTK_ORIENTATION_HORIZONTAL,
"visible", FALSE,
NULL);
- ADD_CLASS (gProgress, "osd");
- gtk_overlay_add_overlay (overlay, GTK_WIDGET (gProgress));
+ ADD_CLASS (progress, "osd");
+ gtk_overlay_add_overlay (overlay, GTK_WIDGET (progress));
- gDocStack = g_object_new (GTK_TYPE_STACK,
+ docStack = g_object_new (GTK_TYPE_STACK,
"expand", TRUE,
"visible", TRUE,
NULL);
- g_signal_connect (gDocStack, "notify::visible-child", G_CALLBACK (notify_visible_child_cb), NULL);
- gtk_container_add (GTK_CONTAINER (overlay), GTK_WIDGET (gDocStack));
+ g_signal_connect (docStack, "notify::visible-child", G_CALLBACK (notify_visible_child_cb), NULL);
+ gtk_container_add (GTK_CONTAINER (overlay), GTK_WIDGET (docStack));
}
static void
@@ -638,9 +638,9 @@ idedit__context_new_cb (GObject *object,
GList *iter;
gsize i;
- gContext = ide_context_new_finish (result, &error);
+ context = ide_context_new_finish (result, &error);
- if (!gContext)
+ if (!context)
{
g_printerr ("%s\n", error->message);
g_clear_error (&error);
@@ -651,9 +651,9 @@ idedit__context_new_cb (GObject *object,
create_window ();
/* now open all the requested buffers */
- gBufferToView = g_hash_table_new (g_direct_hash, g_direct_equal);
+ bufferToView = g_hash_table_new (g_direct_hash, g_direct_equal);
- bufmgr = ide_context_get_buffer_manager (gContext);
+ bufmgr = ide_context_get_buffer_manager (context);
g_signal_connect (bufmgr, "load-buffer", G_CALLBACK (load_buffer_cb), NULL);
g_signal_connect (bufmgr, "buffer-loaded", G_CALLBACK (buffer_loaded_cb), NULL);
@@ -661,13 +661,13 @@ idedit__context_new_cb (GObject *object,
for (i = 0; i < bufs->len; i++)
add_buffer (g_ptr_array_index (bufs, i));
- for (iter = gFilesToOpen; iter; iter = iter->next)
+ for (iter = filesToOpen; iter; iter = iter->next)
{
const gchar *path = iter->data;
IdeProject *project;
IdeFile *file;
- project = ide_context_get_project (gContext);
+ project = ide_context_get_project (context);
g_assert (project);
g_assert (IDE_IS_PROJECT (project));
@@ -681,7 +681,7 @@ idedit__context_new_cb (GObject *object,
g_object_unref (file);
}
- gtk_window_present (gWindow);
+ gtk_window_present (window);
}
static gboolean
@@ -716,16 +716,16 @@ main (int argc,
gboolean vim = FALSE;
gsize i;
const GOptionEntry entries[] = {
- { "words", 'w', 0, G_OPTION_ARG_NONE, &gWordCompletion,
+ { "words", 'w', 0, G_OPTION_ARG_NONE, &wordCompletion,
N_("Use words in all buffers for autocompletion") },
{ "verbose", 'v', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK,
increase_verbosity, N_("Increase logging verbosity.") },
{ "emacs", 'e', 0, G_OPTION_ARG_NONE, &emacs, N_("Use emacs keybindings") },
{ "vim", 'm', 0, G_OPTION_ARG_NONE, &vim, N_("Use Vim keybindings") },
- { "dark", 'd', 0, G_OPTION_ARG_NONE, &gDarkMode, N_("Use dark mode") },
- { "shadow", 's', 0, G_OPTION_ARG_NONE, &gSearchShadow, N_("Show shadow when searching") },
- { "smart-backspace", 'b', 0, G_OPTION_ARG_NONE, &gSmartBackspace, N_("Enable smart backspace") },
- { "debug-scroll-offset", 0, 0, G_OPTION_ARG_NONE, &gDebugScrollOffset,
+ { "dark", 'd', 0, G_OPTION_ARG_NONE, &darkMode, N_("Use dark mode") },
+ { "shadow", 's', 0, G_OPTION_ARG_NONE, &searchShadow, N_("Show shadow when searching") },
+ { "smart-backspace", 'b', 0, G_OPTION_ARG_NONE, &smartBackspace, N_("Enable smart backspace") },
+ { "debug-scroll-offset", 0, 0, G_OPTION_ARG_NONE, &debugScrollOffset,
N_("Render a rectangle over the visible region taking scroll offset into account.") },
{ NULL }
};
@@ -751,7 +751,7 @@ main (int argc,
}
for (i = 1; i < argc; i++)
- gFilesToOpen = g_list_append (gFilesToOpen, g_strdup (argv [i]));
+ filesToOpen = g_list_append (filesToOpen, g_strdup (argv [i]));
project_dir = g_file_new_for_path (".");
@@ -774,12 +774,12 @@ main (int argc,
if (vim)
load_css_resource ("/org/gnome/libide/keybindings/vim.css");
- if (gDarkMode)
+ if (darkMode)
g_object_set (gtk_settings_get_default (),
"gtk-application-prefer-dark-theme", TRUE,
NULL);
gtk_main ();
- return gExitCode;
+ return exit_code;
}
diff --git a/tools/ide-build.c b/tools/ide-build.c
index df698c4..4d23909 100644
--- a/tools/ide-build.c
+++ b/tools/ide-build.c
@@ -27,24 +27,24 @@
#include "gb-plugins.h"
-static GMainLoop *gMainLoop;
-static gchar *gDeviceId;
-static gint gExitCode = EXIT_SUCCESS;
-static IdeContext *gContext;
-static guint gTimeout;
-static gulong gAddedHandler;
-static guint64 gBuildStart;
-static gboolean gRebuild;
-static GList *gLogThreads;
-static gboolean gBuildDone;
-static gint gParallel;
+static GMainLoop *main_loop;
+static gchar *deviceId;
+static gint exit_code = EXIT_SUCCESS;
+static IdeContext *ide_context;
+static guint timeout;
+static gulong added_handler;
+static guint64 build_start;
+static gboolean rebuild;
+static GList *log_threads;
+static gboolean build_done;
+static gint parallel;
static void
-quit (gint exit_code)
+quit (gint code)
{
- gExitCode = exit_code;
- g_clear_object (&gContext);
- g_main_loop_quit (gMainLoop);
+ exit_code = code;
+ g_clear_object (&ide_context);
+ g_main_loop_quit (main_loop);
}
static void
@@ -52,7 +52,7 @@ flush_logs (void)
{
GList *iter;
- for (iter = gLogThreads; iter; iter = iter->next)
+ for (iter = log_threads; iter; iter = iter->next)
g_thread_join (iter->data);
}
@@ -70,9 +70,9 @@ build_cb (GObject *object,
completed_at = g_get_monotonic_time ();
build_result = ide_builder_build_finish (builder, result, &error);
- total_usec = completed_at - gBuildStart;
+ total_usec = completed_at - build_start;
- g_atomic_int_set (&gBuildDone, TRUE);
+ g_atomic_int_set (&build_done, TRUE);
flush_logs ();
@@ -140,7 +140,7 @@ again:
if (!closing)
{
- if (g_atomic_int_get (&gBuildDone))
+ if (g_atomic_int_get (&build_done))
closing = TRUE;
/* one final attempt to flush the logs */
@@ -164,7 +164,7 @@ log_dumper (GInputStream *stream,
g_object_set_data (G_OBJECT (data_stream), "IS_STDERR", GINT_TO_POINTER (!!is_stderr));
thread = g_thread_new ("LogThread", log_thread, g_object_ref (data_stream));
- gLogThreads = g_list_prepend (gLogThreads, thread);
+ log_threads = g_list_prepend (log_threads, thread);
}
static void
@@ -221,11 +221,11 @@ build_for_device (IdeContext *context,
config = g_key_file_new ();
- if (gRebuild)
+ if (rebuild)
flags |= IDE_BUILDER_BUILD_FLAGS_FORCE_REBUILD;
- if (gParallel)
- g_key_file_set_integer (config, "parallel", "workers", gParallel);
+ if (parallel)
+ g_key_file_set_integer (config, "parallel", "workers", parallel);
build_system = ide_context_get_build_system (context);
builder = ide_build_system_get_builder (build_system, config, device, &error);
@@ -238,7 +238,7 @@ build_for_device (IdeContext *context,
return;
}
- gBuildStart = g_get_monotonic_time ();
+ build_start = g_get_monotonic_time ();
ide_builder_build_async (builder, flags, &build_result, NULL, build_cb, NULL);
@@ -268,17 +268,17 @@ device_added_cb (IdeDeviceManager *device_manager,
device_id = ide_device_get_id (device);
- if (g_strcmp0 (device_id, gDeviceId) == 0)
+ if (g_strcmp0 (device_id, deviceId) == 0)
{
- build_for_device (gContext, device);
+ build_for_device (ide_context, device);
- if (gTimeout)
+ if (timeout)
{
- g_source_remove (gTimeout);
- gTimeout = 0;
+ g_source_remove (timeout);
+ timeout = 0;
}
- g_signal_handler_disconnect (device_manager, gAddedHandler);
+ g_signal_handler_disconnect (device_manager, added_handler);
}
}
@@ -310,7 +310,7 @@ context_cb (GObject *object,
return;
}
- gContext = g_object_ref (context);
+ ide_context = g_object_ref (context);
/*
* Try to locate the device we are building for. If the device is not found,
@@ -329,20 +329,20 @@ context_cb (GObject *object,
device = g_ptr_array_index (devices, i);
device_id = ide_device_get_id (device);
- if (g_strcmp0 (device_id, gDeviceId) == 0)
+ if (g_strcmp0 (device_id, deviceId) == 0)
{
- build_for_device (gContext, device);
+ build_for_device (context, device);
g_ptr_array_unref (devices);
return;
}
}
g_ptr_array_unref (devices);
- gAddedHandler = g_signal_connect (device_manager,
+ added_handler = g_signal_connect (device_manager,
"device-added",
G_CALLBACK (device_added_cb),
NULL);
- gTimeout = g_timeout_add_seconds (60, timeout_cb, NULL);
+ timeout = g_timeout_add_seconds (60, timeout_cb, NULL);
g_printerr (_("Waiting up to 60 seconds for devices to settle. Ctrl+C to exit.\n"));
}
@@ -351,13 +351,13 @@ main (gint argc,
gchar *argv[])
{
GOptionEntry entries[] = {
- { "device", 'd', 0, G_OPTION_ARG_STRING, &gDeviceId,
+ { "device", 'd', 0, G_OPTION_ARG_STRING, &deviceId,
N_("The target device we are building for."),
N_("DEVICE_ID")
},
- { "rebuild", 'r', 0, G_OPTION_ARG_NONE, &gRebuild,
+ { "rebuild", 'r', 0, G_OPTION_ARG_NONE, &rebuild,
N_("Clean and rebuild the project.") },
- { "parallel", 'j', 0, G_OPTION_ARG_INT, &gParallel,
+ { "parallel", 'j', 0, G_OPTION_ARG_INT, ¶llel,
N_("Increase parallelism in the build."),
N_("N") },
{ NULL }
@@ -380,21 +380,21 @@ main (gint argc,
return EXIT_FAILURE;
}
- gMainLoop = g_main_loop_new (NULL, FALSE);
+ main_loop = g_main_loop_new (NULL, FALSE);
if (argc > 1)
project_path = argv [1];
project_file = g_file_new_for_path (project_path);
- if (!gDeviceId)
- gDeviceId = g_strdup ("local");
+ if (!deviceId)
+ deviceId = g_strdup ("local");
gb_plugins_init ();
ide_context_new_async (project_file, NULL, context_cb, NULL);
- g_main_loop_run (gMainLoop);
- g_clear_pointer (&gMainLoop, g_main_loop_unref);
+ g_main_loop_run (main_loop);
+ g_clear_pointer (&main_loop, g_main_loop_unref);
- return gExitCode;
+ return exit_code;
}
diff --git a/tools/ide-list-build-flags.c b/tools/ide-list-build-flags.c
index 3634fd2..4a1b679 100644
--- a/tools/ide-list-build-flags.c
+++ b/tools/ide-list-build-flags.c
@@ -27,17 +27,17 @@
#include "gb-plugins.h"
-static GMainLoop *gMainLoop;
-static gint gExitCode = EXIT_SUCCESS;
-static IdeContext *gContext;
-static const gchar *gPath;
+static GMainLoop *main_loop;
+static gint exit_code = EXIT_SUCCESS;
+static IdeContext *ide_context;
+static const gchar *path;
static void
-quit (gint exit_code)
+quit (gint code)
{
- gExitCode = exit_code;
- g_clear_object (&gContext);
- g_main_loop_quit (gMainLoop);
+ exit_code = code;
+ g_clear_object (&ide_context);
+ g_main_loop_quit (main_loop);
}
static void
@@ -89,11 +89,11 @@ context_cb (GObject *object,
return;
}
- gContext = g_object_ref (context);
+ ide_context = g_object_ref (context);
build_system = ide_context_get_build_system (context);
project = ide_context_get_project (context);
- file = ide_project_get_file_for_path (project, gPath);
+ file = ide_project_get_file_for_path (project, path);
ide_build_system_get_build_flags_async (build_system, file, NULL, get_flags_cb, NULL);
}
@@ -121,17 +121,17 @@ main (gint argc,
return EXIT_FAILURE;
}
- gMainLoop = g_main_loop_new (NULL, FALSE);
+ main_loop = g_main_loop_new (NULL, FALSE);
if (argc > 2)
{
project_path = argv [1];
- gPath = argv [2];
+ path = argv [2];
}
else if (argc > 1)
{
project_path = ".";
- gPath = argv [1];
+ path = argv [1];
}
else
{
@@ -145,8 +145,8 @@ main (gint argc,
ide_context_new_async (project_file, NULL, context_cb, NULL);
- g_main_loop_run (gMainLoop);
- g_clear_pointer (&gMainLoop, g_main_loop_unref);
+ g_main_loop_run (main_loop);
+ g_clear_pointer (&main_loop, g_main_loop_unref);
- return gExitCode;
+ return exit_code;
}
diff --git a/tools/ide-list-devices.c b/tools/ide-list-devices.c
index 854cbee..f94f02e 100644
--- a/tools/ide-list-devices.c
+++ b/tools/ide-list-devices.c
@@ -27,14 +27,14 @@
#include "gb-plugins.h"
-static GMainLoop *gMainLoop;
-static gint gExitCode = EXIT_SUCCESS;
+static GMainLoop *main_loop;
+static gint exit_code = EXIT_SUCCESS;
static void
-quit (gint exit_code)
+quit (gint code)
{
- gExitCode = exit_code;
- g_main_loop_quit (gMainLoop);
+ exit_code = code;
+ g_main_loop_quit (main_loop);
}
static void
@@ -114,7 +114,7 @@ main (gint argc,
return EXIT_FAILURE;
}
- gMainLoop = g_main_loop_new (NULL, FALSE);
+ main_loop = g_main_loop_new (NULL, FALSE);
if (argc > 1)
project_path = argv [1];
@@ -124,8 +124,8 @@ main (gint argc,
ide_context_new_async (project_file, NULL, context_cb, NULL);
- g_main_loop_run (gMainLoop);
- g_clear_pointer (&gMainLoop, g_main_loop_unref);
+ g_main_loop_run (main_loop);
+ g_clear_pointer (&main_loop, g_main_loop_unref);
- return gExitCode;
+ return exit_code;
}
diff --git a/tools/ide-list-diagnostics.c b/tools/ide-list-diagnostics.c
index 7ef3257..abbec25 100644
--- a/tools/ide-list-diagnostics.c
+++ b/tools/ide-list-diagnostics.c
@@ -27,15 +27,15 @@
#include "gb-plugins.h"
-static GMainLoop *gMainLoop;
-static gint gExitCode = EXIT_SUCCESS;
-static GFile *gFile;
+static GMainLoop *main_loop;
+static gint exit_code = EXIT_SUCCESS;
+GFile *target_file;
static void
-quit (gint exit_code)
+quit (gint code)
{
- gExitCode = exit_code;
- g_main_loop_quit (gMainLoop);
+ exit_code = code;
+ g_main_loop_quit (main_loop);
}
static const gchar *
@@ -239,7 +239,7 @@ context_cb (GObject *object,
project = ide_context_get_project (context);
vcs = ide_context_get_vcs (context);
workdir = ide_vcs_get_working_directory (vcs);
- relpath = g_file_get_relative_path (workdir, gFile);
+ relpath = g_file_get_relative_path (workdir, target_file);
ide_project_reader_lock (project);
file = ide_project_get_file_for_path (project, relpath);
@@ -289,7 +289,7 @@ main (gint argc,
return EXIT_FAILURE;
}
- gMainLoop = g_main_loop_new (NULL, FALSE);
+ main_loop = g_main_loop_new (NULL, FALSE);
if (argc == 2)
{
@@ -306,7 +306,7 @@ main (gint argc,
return EXIT_FAILURE;
}
- gFile = g_file_new_for_path (path);
+ target_file = g_file_new_for_path (path);
project_file = g_file_new_for_path (project_path);
@@ -314,11 +314,11 @@ main (gint argc,
ide_context_new_async (project_file, NULL, context_cb, NULL);
- g_main_loop_run (gMainLoop);
+ g_main_loop_run (main_loop);
g_clear_object (&project_file);
- g_clear_object (&gFile);
- g_clear_pointer (&gMainLoop, g_main_loop_unref);
+ g_clear_object (&target_file);
+ g_clear_pointer (&main_loop, g_main_loop_unref);
- return gExitCode;
+ return exit_code;
}
diff --git a/tools/ide-list-file-settings.c b/tools/ide-list-file-settings.c
index 6e216da..e530a3f 100644
--- a/tools/ide-list-file-settings.c
+++ b/tools/ide-list-file-settings.c
@@ -27,17 +27,17 @@
#include "gb-plugins.h"
-static GMainLoop *gMainLoop;
-static gint gExitCode = EXIT_SUCCESS;
-static gchar **gPaths;
-static int gActive;
-static IdeContext *gContext;
+static GMainLoop *main_loop;
+static gint exit_code = EXIT_SUCCESS;
+static gchar **paths;
+static int active;
+static IdeContext *ide_context;
static void
-quit (gint exit_code)
+quit (gint code)
{
- gExitCode = exit_code;
- g_main_loop_quit (gMainLoop);
+ exit_code = code;
+ g_main_loop_quit (main_loop);
}
static const gchar *
@@ -92,8 +92,8 @@ print_settings (IdeFileSettings *settings)
static void
unref_job (void)
{
- if (!--gActive)
- quit (gExitCode);
+ if (!--active)
+ quit (exit_code);
}
static void
@@ -122,7 +122,7 @@ load_settings_cb (GObject *object,
{
g_printerr ("%s\n", error->message);
g_clear_error (&error);
- gExitCode = EXIT_FAILURE;
+ exit_code = EXIT_FAILURE;
goto cleanup;
}
@@ -164,12 +164,12 @@ context_cb (GObject *object,
project = ide_context_get_project (context);
- if (gPaths)
+ if (paths)
{
- for (i = 0; gPaths [i]; i++)
+ for (i = 0; paths [i]; i++)
{
- gActive++;
- file = ide_project_get_file_for_path (project, gPaths [i]);
+ active++;
+ file = ide_project_get_file_for_path (project, paths [i]);
ide_file_load_settings_async (file,
NULL,
load_settings_cb,
@@ -177,13 +177,13 @@ context_cb (GObject *object,
}
}
- if (!gActive)
+ if (!active)
{
g_printerr (_("No files provided to load settings for.\n"));
quit (EXIT_FAILURE);
}
- gContext = g_object_ref (context);
+ ide_context = g_object_ref (context);
}
gint
@@ -212,7 +212,7 @@ main (gint argc,
return EXIT_FAILURE;
}
- gMainLoop = g_main_loop_new (NULL, FALSE);
+ main_loop = g_main_loop_new (NULL, FALSE);
project_path = argv [1];
@@ -223,16 +223,16 @@ main (gint argc,
g_ptr_array_add (strv, g_strdup (argv [i]));
g_ptr_array_add (strv, NULL);
- gPaths = (gchar **)g_ptr_array_free (strv, FALSE);
+ paths = (gchar **)g_ptr_array_free (strv, FALSE);
gb_plugins_init ();
ide_context_new_async (project_file, NULL, context_cb, NULL);
- g_main_loop_run (gMainLoop);
- g_clear_pointer (&gMainLoop, g_main_loop_unref);
- g_strfreev (gPaths);
- g_clear_object (&gContext);
+ g_main_loop_run (main_loop);
+ g_clear_pointer (&main_loop, g_main_loop_unref);
+ g_strfreev (paths);
+ g_clear_object (&context);
- return gExitCode;
+ return exit_code;
}
diff --git a/tools/ide-list-files.c b/tools/ide-list-files.c
index 5e97d81..ae54199 100644
--- a/tools/ide-list-files.c
+++ b/tools/ide-list-files.c
@@ -27,14 +27,14 @@
#include "gb-plugins.h"
-static GMainLoop *gMainLoop;
-static gint gExitCode = EXIT_SUCCESS;
+static GMainLoop *main_loop;
+static gint exit_code = EXIT_SUCCESS;
static void
-quit (gint exit_code)
+quit (gint code)
{
- gExitCode = exit_code;
- g_main_loop_quit (gMainLoop);
+ exit_code = code;
+ g_main_loop_quit (main_loop);
}
static void
@@ -132,7 +132,7 @@ main (gint argc,
return EXIT_FAILURE;
}
- gMainLoop = g_main_loop_new (NULL, FALSE);
+ main_loop = g_main_loop_new (NULL, FALSE);
if (argc > 1)
project_path = argv [1];
@@ -142,8 +142,8 @@ main (gint argc,
ide_context_new_async (project_file, NULL, context_cb, NULL);
- g_main_loop_run (gMainLoop);
- g_clear_pointer (&gMainLoop, g_main_loop_unref);
+ g_main_loop_run (main_loop);
+ g_clear_pointer (&main_loop, g_main_loop_unref);
- return gExitCode;
+ return exit_code;
}
diff --git a/tools/ide-search.c b/tools/ide-search.c
index 1b132b0..42a8ecc 100644
--- a/tools/ide-search.c
+++ b/tools/ide-search.c
@@ -27,16 +27,16 @@
#include "gb-plugins.h"
-static GMainLoop *gMainLoop;
-static gint gExitCode = EXIT_SUCCESS;
-static gchar *gSearchTerms;
-static gsize gCount;
+static GMainLoop *main_loop;
+static gint exit_code = EXIT_SUCCESS;
+static gchar *search_terms;
+static gsize count;
static void
-quit (gint exit_code)
+quit (gint code)
{
- gExitCode = exit_code;
- g_main_loop_quit (gMainLoop);
+ exit_code = code;
+ g_main_loop_quit (main_loop);
}
static void
@@ -48,7 +48,7 @@ on_result_added_cb (IdeSearchContext *search_context,
const gchar *title;
const gchar *subtitle;
- gCount++;
+ count++;
title = ide_search_result_get_title (result);
subtitle = ide_search_result_get_subtitle (result);
@@ -63,12 +63,12 @@ static void
on_completed_cb (IdeSearchContext *search_context,
IdeContext *context)
{
- gchar *gCount_str;
- gCount_str = g_strdup_printf ("%"G_GSIZE_FORMAT, gCount);
- g_print (ngettext ("%s result\n", "%s results\n", gCount), gCount_str);
- g_free (gCount_str);
+ gchar *count_str;
+ count_str = g_strdup_printf ("%"G_GSIZE_FORMAT, count);
+ g_print (ngettext ("%s result\n", "%s results\n", count), count_str);
+ g_free (count_str);
g_object_unref (context);
- quit (gExitCode);
+ quit (exit_code);
}
static void
@@ -91,7 +91,7 @@ context_cb (GObject *object,
}
search_engine = ide_context_get_search_engine (context);
- search_context = ide_search_engine_search (search_engine, gSearchTerms);
+ search_context = ide_search_engine_search (search_engine, search_terms);
/* FIXME: ^ search terms duplicated */
g_signal_connect (search_context, "result-added",
@@ -100,7 +100,7 @@ context_cb (GObject *object,
G_CALLBACK (on_completed_cb),
g_object_ref (context));
- ide_search_context_execute (search_context, gSearchTerms, 0);
+ ide_search_context_execute (search_context, search_terms, 0);
}
gint
@@ -111,7 +111,7 @@ main (gint argc,
g_autoptr(GError) error = NULL;
g_autoptr(GFile) project_file = NULL;
const gchar *project_path = ".";
- GString *search_terms;
+ GString *search_terms_string;
gint i;
ide_set_program_name ("gnome-builder");
@@ -126,24 +126,24 @@ main (gint argc,
return EXIT_FAILURE;
}
- gMainLoop = g_main_loop_new (NULL, FALSE);
+ main_loop = g_main_loop_new (NULL, FALSE);
if (argc > 1)
project_path = argv [1];
project_file = g_file_new_for_path (project_path);
- search_terms = g_string_new (NULL);
+ search_terms_string = g_string_new (NULL);
for (i = 2; i < argc; i++)
- g_string_append_printf (search_terms, " %s", argv [i]);
- gSearchTerms = g_string_free (search_terms, FALSE);
+ g_string_append_printf (search_terms_string, " %s", argv [i]);
+ search_terms = g_string_free (search_terms_string, FALSE);
gb_plugins_init ();
ide_context_new_async (project_file, NULL, context_cb, NULL);
- g_main_loop_run (gMainLoop);
- g_clear_pointer (&gMainLoop, g_main_loop_unref);
- g_clear_pointer (&gSearchTerms, g_free);
+ g_main_loop_run (main_loop);
+ g_clear_pointer (&main_loop, g_main_loop_unref);
+ g_clear_pointer (&search_terms, g_free);
- return gExitCode;
+ return exit_code;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]