[gtk+] popover: Make position property not CONSTRUCT



commit 0384f9eaf3d4d3219d7520efae6b8dd5656308d1
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 2 01:07:02 2015 -0500

    popover: Make position property not CONSTRUCT
    
    There is no good reason for it, and it causes problems
    with widget templates.

 gtk/gtkpopover.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index d6ceb9b..4c55577 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -203,6 +203,7 @@ gtk_popover_init (GtkPopover *popover)
   popover->priv->modal = TRUE;
   popover->priv->tick_id = 0;
   popover->priv->transitions_enabled = TRUE;
+  popover->priv->preferred_position = GTK_POS_TOP;
   popover->priv->constraint = GTK_POPOVER_CONSTRAINT_WINDOW;
 
   context = gtk_widget_get_style_context (GTK_WIDGET (popover));
@@ -1677,7 +1678,7 @@ gtk_popover_class_init (GtkPopoverClass *klass)
                          P_("Position"),
                          P_("Position to place the bubble window"),
                          GTK_TYPE_POSITION_TYPE, GTK_POS_TOP,
-                         GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
+                         GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
    * GtkPopover:modal


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]