+Fri Jun 25 23:35:42 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (gtk_entry_completion_set_model):
+ * gtk/gtkcombobox.c (gtk_combo_box_set_model): Allow passing
+ NULL to unset the model. (#137211, patch by Mariano Suárez-Alvarez)
+
+Fri Jun 25 23:33:05 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Fix the
+ placement policy for GtkComboBoxEntry to be: if it fits below,
+ place below, if it fits above place above, else place in the
+ larger space and scroll so that the scroll arrow appear at the
+ far end. (#144362, David A. Knight)
+
Fri Jun 25 22:49:58 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreestore.c (gtk_tree_store_move): Avoid uninitialized
+Fri Jun 25 23:35:42 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (gtk_entry_completion_set_model):
+ * gtk/gtkcombobox.c (gtk_combo_box_set_model): Allow passing
+ NULL to unset the model. (#137211, patch by Mariano Suárez-Alvarez)
+
+Fri Jun 25 23:33:05 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Fix the
+ placement policy for GtkComboBoxEntry to be: if it fits below,
+ place below, if it fits above place above, else place in the
+ larger space and scroll so that the scroll arrow appear at the
+ far end. (#144362, David A. Knight)
+
Fri Jun 25 22:49:58 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreestore.c (gtk_tree_store_move): Avoid uninitialized
+Fri Jun 25 23:35:42 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (gtk_entry_completion_set_model):
+ * gtk/gtkcombobox.c (gtk_combo_box_set_model): Allow passing
+ NULL to unset the model. (#137211, patch by Mariano Suárez-Alvarez)
+
+Fri Jun 25 23:33:05 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Fix the
+ placement policy for GtkComboBoxEntry to be: if it fits below,
+ place below, if it fits above place above, else place in the
+ larger space and scroll so that the scroll arrow appear at the
+ far end. (#144362, David A. Knight)
+
Fri Jun 25 22:49:58 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreestore.c (gtk_tree_store_move): Avoid uninitialized
+Fri Jun 25 23:35:42 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentrycompletion.c (gtk_entry_completion_set_model):
+ * gtk/gtkcombobox.c (gtk_combo_box_set_model): Allow passing
+ NULL to unset the model. (#137211, patch by Mariano Suárez-Alvarez)
+
+Fri Jun 25 23:33:05 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Fix the
+ placement policy for GtkComboBoxEntry to be: if it fits below,
+ place below, if it fits above place above, else place in the
+ larger space and scroll so that the scroll arrow appear at the
+ far end. (#144362, David A. Knight)
+
Fri Jun 25 22:49:58 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreestore.c (gtk_tree_store_move): Avoid uninitialized
else if (*x + req.width > monitor.x + monitor.width)
*x = monitor.x + monitor.width - req.width;
- if (*y + child->allocation.height + req.height <= monitor.y + monitor.height)
+ if (monitor.y + monitor.height - *y - child->allocation.height >= req.height)
+ *y += child->allocation.height;
+ else if (*y - monitor.y >= req.height)
+ *y -= req.height;
+ else if (monitor.y + monitor.height - *y - child->allocation.height > *y - monitor.y)
*y += child->allocation.height;
else
*y -= req.height;
- *push_in = TRUE;
+ *push_in = FALSE;
}
static void
GtkTreeModel *model)
{
g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
+
+ if (!model)
+ {
+ gtk_combo_box_unset_model (combo_box);
+ return;
+ }
+
g_return_if_fail (GTK_IS_TREE_MODEL (model));
if (model == combo_box->priv->model)
GtkTreeModel *model)
{
g_return_if_fail (GTK_IS_ENTRY_COMPLETION (completion));
- g_return_if_fail (GTK_IS_TREE_MODEL (model));
+ g_return_if_fail (model == NULL || GTK_IS_TREE_MODEL (model));
/* code will unref the old filter model (if any) */
completion->priv->filter_model =