[gnome-builder] c-format-provider: more style clean ups
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] c-format-provider: more style clean ups
- Date: Thu, 29 Oct 2015 14:51:36 +0000 (UTC)
commit a36f661d61926c1c10641c89d88a80a698e936e7
Author: Ray Strode <rstrode redhat com>
Date: Thu Oct 29 08:18:56 2015 -0400
c-format-provider: more style clean ups
The sed substitution for commit
d9922c159b1edfaff185f116cb3e7faa36aa2c6b
fell over for the globals in the c-format-provider
code.
This commit mops up the fall out.
plugins/c-pack/ide-c-format-provider.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/plugins/c-pack/ide-c-format-provider.c b/plugins/c-pack/ide-c-format-provider.c
index d4f159a..439d122 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 g_dateTimeFormats[] = {
+static const FormatItem date_time_formats[] = {
{ "%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; g_dateTimeFormats [i].format; i++)
+ for (i = 0; date_time_formats [i].format; i++)
{
- if (g_str_has_prefix (g_dateTimeFormats [i].format, text))
+ if (g_str_has_prefix (date_time_formats [i].format, text))
{
g_autofree gchar *markup = NULL;
const gchar *insert;
- insert = g_dateTimeFormats [i].format + strlen (text);
+ insert = date_time_formats [i].format + strlen (text);
markup = g_strdup_printf ("%s - %s",
- g_dateTimeFormats [i].format,
- g_dateTimeFormats [i].description);
+ date_time_formats [i].format,
+ date_time_formats [i].description);
list = g_list_prepend (list,
g_object_new (GTK_SOURCE_TYPE_COMPLETION_ITEM,
"markup", markup,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]