[gtksourceview] map: rename static variable pspecs -> properties
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] map: rename static variable pspecs -> properties
- Date: Mon, 13 Jun 2016 17:30:38 +0000 (UTC)
commit e68f00e501f76984f81105177bff1d500e7000fd
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Jun 13 13:40:38 2016 +0200
map: rename static variable pspecs -> properties
A GParamSpec can be used for other things than properties.
gtksourceview/gtksourcemap.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtksourceview/gtksourcemap.c b/gtksourceview/gtksourcemap.c
index 7199887..27a176b 100644
--- a/gtksourceview/gtksourcemap.c
+++ b/gtksourceview/gtksourcemap.c
@@ -181,7 +181,7 @@ enum
G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceMap, gtk_source_map, GTK_SOURCE_TYPE_VIEW)
-static GParamSpec *pspecs[N_PROPERTIES];
+static GParamSpec *properties[N_PROPERTIES];
static void
update_scrubber_position (GtkSourceMap *map)
@@ -1130,21 +1130,21 @@ gtk_source_map_class_init (GtkSourceMapClass *klass)
widget_class->state_flags_changed = gtk_source_map_state_flags_changed;
widget_class->realize = gtk_source_map_realize;
- pspecs[PROP_VIEW] =
+ properties[PROP_VIEW] =
g_param_spec_object ("view",
"View",
"The view this widget is mapping.",
GTK_SOURCE_TYPE_VIEW,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- pspecs[PROP_FONT_DESC] =
+ properties[PROP_FONT_DESC] =
g_param_spec_boxed ("font-desc",
"Font Description",
"The Pango font description to use.",
PANGO_TYPE_FONT_DESCRIPTION,
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_properties (object_class, N_PROPERTIES, pspecs);
+ g_object_class_install_properties (object_class, N_PROPERTIES, properties);
}
static void
@@ -1234,7 +1234,7 @@ gtk_source_map_set_view (GtkSourceMap *map,
connect_view (map, view);
}
- g_object_notify_by_pspec (G_OBJECT (map), pspecs[PROP_VIEW]);
+ g_object_notify_by_pspec (G_OBJECT (map), properties[PROP_VIEW]);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]