[gtk+] GtkCellAreaBox: Explicitly notify orientation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkCellAreaBox: Explicitly notify orientation
- Date: Mon, 9 Jun 2014 17:41:30 +0000 (UTC)
commit be25e4ebcb59b7d9a2e9c2528cec77284a6179e8
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 8 11:24:12 2014 -0400
GtkCellAreaBox: Explicitly notify orientation
gtk/gtkcellareabox.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c
index c682ec6..f0a72bc 100644
--- a/gtk/gtkcellareabox.c
+++ b/gtk/gtkcellareabox.c
@@ -1050,11 +1050,13 @@ gtk_cell_area_box_set_property (GObject *object,
switch (prop_id)
{
case PROP_ORIENTATION:
- box->priv->orientation = g_value_get_enum (value);
-
- /* Notify that size needs to be requested again */
- reset_contexts (box);
-
+ if (box->priv->orientation != g_value_get_enum (value))
+ {
+ box->priv->orientation = g_value_get_enum (value);
+ /* Notify that size needs to be requested again */
+ reset_contexts (box);
+ g_object_notify_by_pspec (object, pspec);
+ }
break;
case PROP_SPACING:
gtk_cell_area_box_set_spacing (box, g_value_get_int (value));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]