[gtksourceview] Rename LAST_PROP -> N_PROPERTIES
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Rename LAST_PROP -> N_PROPERTIES
- Date: Mon, 13 Jun 2016 17:30:33 +0000 (UTC)
commit 87e3cc0fa6293dfb434b9409f42b7be268c3ebd1
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Jun 13 13:37:45 2016 +0200
Rename LAST_PROP -> N_PROPERTIES
It's a more correct name, and it's now consistent with N_SIGNALS.
gtksourceview/gtksourcemap.c | 6 +++---
gtksourceview/gtksourceregion.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtksourceview/gtksourcemap.c b/gtksourceview/gtksourcemap.c
index 556ab0c..7199887 100644
--- a/gtksourceview/gtksourcemap.c
+++ b/gtksourceview/gtksourcemap.c
@@ -176,12 +176,12 @@ enum
PROP_0,
PROP_VIEW,
PROP_FONT_DESC,
- LAST_PROP
+ N_PROPERTIES
};
G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceMap, gtk_source_map, GTK_SOURCE_TYPE_VIEW)
-static GParamSpec *pspecs[LAST_PROP];
+static GParamSpec *pspecs[N_PROPERTIES];
static void
update_scrubber_position (GtkSourceMap *map)
@@ -1144,7 +1144,7 @@ gtk_source_map_class_init (GtkSourceMapClass *klass)
PANGO_TYPE_FONT_DESCRIPTION,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_properties (object_class, LAST_PROP, pspecs);
+ g_object_class_install_properties (object_class, N_PROPERTIES, pspecs);
}
static void
diff --git a/gtksourceview/gtksourceregion.c b/gtksourceview/gtksourceregion.c
index afca655..9d3f9cd 100644
--- a/gtksourceview/gtksourceregion.c
+++ b/gtksourceview/gtksourceregion.c
@@ -128,10 +128,10 @@ enum
{
PROP_0,
PROP_BUFFER,
- LAST_PROP
+ N_PROPERTIES
};
-static GParamSpec *properties[LAST_PROP];
+static GParamSpec *properties[N_PROPERTIES];
G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceRegion, gtk_source_region, G_TYPE_OBJECT)
@@ -313,7 +313,7 @@ gtk_source_region_class_init (GtkSourceRegionClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS);
- g_object_class_install_properties (object_class, LAST_PROP, properties);
+ g_object_class_install_properties (object_class, N_PROPERTIES, properties);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]