[gtk+/combo-refactor: 32/49] Fixed a spot where the created cell view wasnt getting the model set.



commit d1eb47101bb92f9ee2f9fef1a30ff19bcae5afda
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Fri Nov 26 13:19:27 2010 +0900

    Fixed a spot where the created cell view wasnt getting the model set.

 gtk/gtkcombobox.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 2eef7cb..da8db3e 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -1052,6 +1052,7 @@ gtk_combo_box_constructor (GType                  type,
     {
       priv->cell_view = gtk_cell_view_new_with_context (priv->area, NULL);
       gtk_cell_view_set_fit_model (GTK_CELL_VIEW (priv->cell_view), TRUE);
+      gtk_cell_view_set_model (GTK_CELL_VIEW (priv->cell_view), priv->model);
       gtk_container_add (GTK_CONTAINER (combo_box), priv->cell_view);
       gtk_widget_show (priv->cell_view);
     }



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