[gtk+] GtkEntryCompletion: call setter for "text-column"



commit 9761a966d8ffda724226a21022a42ce40932b443
Author: Lars Uebernickel <lars uebernickel canonical com>
Date:   Wed Oct 30 23:34:50 2013 -0700

    GtkEntryCompletion: call setter for "text-column"
    
    Call gtk_entry_completion_set_text_column() when setting the
    "text-column" property directly.
    
    The completion appeared empty when setting "text-column" directly (for
    example from a GtkBuilder file), because the setter creates and adds the
    GtkCellRendererText.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710533

 gtk/gtkentrycompletion.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index b62f81d..0d77663 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -653,7 +653,8 @@ gtk_entry_completion_set_property (GObject      *object,
         break;
 
       case PROP_TEXT_COLUMN:
-        priv->text_column = g_value_get_int (value);
+        gtk_entry_completion_set_text_column (completion,
+                                              g_value_get_int (value));
         break;
 
       case PROP_INLINE_COMPLETION:


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