[gtk+] Fix margin-start/end property implementation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix margin-start/end property implementation
- Date: Sat, 8 Feb 2014 01:27:45 +0000 (UTC)
commit c823498b4c5a033ae3040be2f2ee85f30e63cd3d
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 7 20:25:12 2014 -0500
Fix margin-start/end property implementation
The properties are declared read-write, but only the setter
was hooked up. This was leading to criticals in test apps using
the prop-editor.c code. Complete the implementation by adding the
getter side too.
gtk/gtkwidget.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 70b49ce..0807ce1 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3909,6 +3909,12 @@ gtk_widget_get_property (GObject *object,
g_value_set_int (value, gtk_widget_get_margin_right (widget));
G_GNUC_END_IGNORE_DEPRECATIONS;
break;
+ case PROP_MARGIN_START:
+ g_value_set_int (value, gtk_widget_get_margin_start (widget));
+ break;
+ case PROP_MARGIN_END:
+ g_value_set_int (value, gtk_widget_get_margin_end (widget));
+ break;
case PROP_MARGIN_TOP:
g_value_set_int (value, gtk_widget_get_margin_top (widget));
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]