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



commit 5193889e4a13e4b006b89935ea94a15a987f2785
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]