[gtk+/wip/csoriano/pathbar-bin-view-window: 13/31] gtkhidingbox: use class_install_properties
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csoriano/pathbar-bin-view-window: 13/31] gtkhidingbox: use class_install_properties
- Date: Thu, 2 Jun 2016 15:47:32 +0000 (UTC)
commit d404fe4956c6b5f12251c94c4cb4b8027281ba99
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Nov 4 16:36:53 2015 +0100
gtkhidingbox: use class_install_properties
gtk/gtkhidingbox.c | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkhidingbox.c b/gtk/gtkhidingbox.c
index 7f04665..aef3080 100644
--- a/gtk/gtkhidingbox.c
+++ b/gtk/gtkhidingbox.c
@@ -59,6 +59,8 @@ enum {
LAST_PROP
};
+static GParamSpec *hiding_box_properties[LAST_PROP] = { NULL, };
+
static void
gtk_hiding_box_set_property (GObject *object,
guint prop_id,
@@ -392,15 +394,16 @@ gtk_hiding_box_class_init (GtkHidingBoxClass *class)
container_class->remove = gtk_hiding_box_remove;
container_class->forall = gtk_hiding_box_forall;
- g_object_class_install_property (object_class,
- PROP_SPACING,
- g_param_spec_int ("spacing",
- /* TRANSLATORS: Here are 2 strings the same as in
gtk/gtkbox.c
- in GTK+ project. Please use the same translation. */
- _("Spacing"),
- _("The amount of space between children"),
- 0, G_MAXINT, 0,
- G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
+ hiding_box_properties[PROP_SPACING] =
+ g_param_spec_int ("spacing",
+ /* TRANSLATORS: Here are 2 strings the same as in gtk/gtkbox.c
+ in GTK+ project. Please use the same translation. */
+ _("Spacing"),
+ _("The amount of space between children"),
+ 0, G_MAXINT, 0,
+ G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
+
+ g_object_class_install_properties (object_class, LAST_PROP, hiding_box_properties);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]