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



commit 8c49b3d3add704496b253e4fceb97e4cafa12dd0
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 39ed723..80473a9 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -1018,6 +1018,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]