Commit 32492c4b authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent f01ab587
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):
......
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):
......
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):
......
......@@ -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));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment