Queue a resize when the model is unset. (#169528, Tomislav Jonjic)

2005-03-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
	when the model is unset.  (#169528, Tomislav Jonjic)
This commit is contained in:
Matthias Clasen 2005-03-09 16:09:22 +00:00 committed by Matthias Clasen
parent f01ab587f5
commit 32492c4be4
4 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-03-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
when the model is unset. (#169528, Tomislav Jonjic)
2005-03-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkviewport.c (gtk_viewport_class_init):

View File

@ -1,3 +1,8 @@
2005-03-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
when the model is unset. (#169528, Tomislav Jonjic)
2005-03-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkviewport.c (gtk_viewport_class_init):

View File

@ -1,3 +1,8 @@
2005-03-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_set_model): Queue a resize
when the model is unset. (#169528, Tomislav Jonjic)
2005-03-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkviewport.c (gtk_viewport_class_init):

View File

@ -3234,6 +3234,8 @@ gtk_icon_view_set_model (GtkIconView *icon_view,
icon_view->priv->anchor_item = NULL;
icon_view->priv->cursor_item = NULL;
icon_view->priv->last_single_clicked = NULL;
icon_view->priv->width = 0;
icon_view->priv->height = 0;
}
icon_view->priv->model = model;
@ -3259,11 +3261,14 @@ gtk_icon_view_set_model (GtkIconView *icon_view,
icon_view);
gtk_icon_view_build_items (icon_view);
gtk_icon_view_queue_layout (icon_view);
}
gtk_icon_view_queue_layout (icon_view);
g_object_notify (G_OBJECT (icon_view), "model");
if (GTK_WIDGET_REALIZED (icon_view))
gtk_widget_queue_resize (GTK_WIDGET (icon_view));
}
/**