[gtk+] GtkSeparator: Explicitly notify orientation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkSeparator: Explicitly notify orientation
- Date: Mon, 9 Jun 2014 17:46:32 +0000 (UTC)
commit 0dd1102cc4c6c2c42a709a6e6d262933ad3eb6d6
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jun 9 09:28:39 2014 -0400
GtkSeparator: Explicitly notify orientation
gtk/gtkseparator.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkseparator.c b/gtk/gtkseparator.c
index d8452f1..8c6d492 100644
--- a/gtk/gtkseparator.c
+++ b/gtk/gtkseparator.c
@@ -70,9 +70,13 @@ gtk_separator_set_property (GObject *object,
switch (prop_id)
{
case PROP_ORIENTATION:
- private->orientation = g_value_get_enum (value);
- _gtk_orientable_set_style_classes (GTK_ORIENTABLE (object));
- gtk_widget_queue_resize (GTK_WIDGET (object));
+ if (private->orientation != g_value_get_enum (value))
+ {
+ private->orientation = g_value_get_enum (value);
+ _gtk_orientable_set_style_classes (GTK_ORIENTABLE (object));
+ gtk_widget_queue_resize (GTK_WIDGET (object));
+ g_object_notify_by_pspec (object, pspec);
+ }
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]