gtk+ r19374 - in trunk: . gtk



Author: matthiasc
Date: Wed Jan 16 05:25:35 2008
New Revision: 19374
URL: http://svn.gnome.org/viewvc/gtk+?rev=19374&view=rev

Log:
2008-01-16  Matthias Clasen  <mclasen redhat com>

        * gtk/gtkcombobox.c (gtk_combo_box_set_model): Emit
        the notify::model signal.  (#509819, David Zeuthen)




Modified:
   trunk/ChangeLog
   trunk/gtk/gtkcombobox.c

Modified: trunk/gtk/gtkcombobox.c
==============================================================================
--- trunk/gtk/gtkcombobox.c	(original)
+++ trunk/gtk/gtkcombobox.c	Wed Jan 16 05:25:35 2008
@@ -4913,7 +4913,7 @@
   gtk_combo_box_unset_model (combo_box);
 
   if (model == NULL)
-    return;
+    goto out;
 
   combo_box->priv->model = model;
   g_object_ref (combo_box->priv->model);
@@ -4953,6 +4953,9 @@
   if (combo_box->priv->cell_view)
     gtk_cell_view_set_model (GTK_CELL_VIEW (combo_box->priv->cell_view),
                              combo_box->priv->model);
+
+out:
+  g_object_notify (G_OBJECT (combo_box), "model");
 }
 
 /**



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