mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
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:
parent
f01ab587f5
commit
32492c4be4
@ -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>
|
2005-03-09 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkviewport.c (gtk_viewport_class_init):
|
* gtk/gtkviewport.c (gtk_viewport_class_init):
|
||||||
|
@ -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>
|
2005-03-09 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkviewport.c (gtk_viewport_class_init):
|
* gtk/gtkviewport.c (gtk_viewport_class_init):
|
||||||
|
@ -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>
|
2005-03-09 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkviewport.c (gtk_viewport_class_init):
|
* 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->anchor_item = NULL;
|
||||||
icon_view->priv->cursor_item = NULL;
|
icon_view->priv->cursor_item = NULL;
|
||||||
icon_view->priv->last_single_clicked = NULL;
|
icon_view->priv->last_single_clicked = NULL;
|
||||||
|
icon_view->priv->width = 0;
|
||||||
|
icon_view->priv->height = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
icon_view->priv->model = model;
|
icon_view->priv->model = model;
|
||||||
@ -3259,11 +3261,14 @@ gtk_icon_view_set_model (GtkIconView *icon_view,
|
|||||||
icon_view);
|
icon_view);
|
||||||
|
|
||||||
gtk_icon_view_build_items (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");
|
g_object_notify (G_OBJECT (icon_view), "model");
|
||||||
|
|
||||||
|
if (GTK_WIDGET_REALIZED (icon_view))
|
||||||
|
gtk_widget_queue_resize (GTK_WIDGET (icon_view));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user