[gtk+] GtkCellView: Explicitly notify for orientation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkCellView: Explicitly notify for orientation
- Date: Mon, 9 Jun 2014 17:42:05 +0000 (UTC)
commit d33b14bfbe4d2a3be05b04824d4a16edaf4ad23c
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 8 11:29:32 2014 -0400
GtkCellView: Explicitly notify for orientation
gtk/gtkcellview.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index d554dd8..ba19dca 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -439,11 +439,14 @@ gtk_cell_view_set_property (GObject *object,
switch (param_id)
{
case PROP_ORIENTATION:
- priv->orientation = g_value_get_enum (value);
- if (priv->context)
- gtk_cell_area_context_reset (priv->context);
-
- _gtk_orientable_set_style_classes (GTK_ORIENTABLE (object));
+ if (priv->orientation != g_value_get_enum (value))
+ {
+ priv->orientation = g_value_get_enum (value);
+ if (priv->context)
+ gtk_cell_area_context_reset (priv->context);
+ _gtk_orientable_set_style_classes (GTK_ORIENTABLE (object));
+ g_object_notify_by_pspec (object, pspec);
+ }
break;
case PROP_BACKGROUND:
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]