mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Queue a resize if the size changed. (#418047, Alex Graveley)
2007-05-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkiconview.c (gtk_icon_view_layout): Queue a resize if the size changed. (#418047, Alex Graveley) svn path=/trunk/; revision=17985
This commit is contained in:
parent
f2f53a6955
commit
8bcf5c23c3
@ -1,3 +1,8 @@
|
||||
2007-05-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconview.c (gtk_icon_view_layout): Queue a resize
|
||||
if the size changed. (#418047, Alex Graveley)
|
||||
|
||||
2007-05-30 Simos Xenitellis <simos@gnome.org>
|
||||
|
||||
* gdk/gdkkeysyms-update.pl: Updated script to new upstream
|
||||
|
@ -2614,6 +2614,10 @@ gtk_icon_view_layout (GtkIconView *icon_view)
|
||||
gtk_icon_view_set_adjustment_upper (icon_view->priv->vadjustment,
|
||||
icon_view->priv->height);
|
||||
|
||||
if (icon_view->priv->width != widget->requisition.width ||
|
||||
icon_view->priv->height != widget->requisition.height)
|
||||
gtk_widget_queue_resize_no_redraw (widget);
|
||||
|
||||
if (GTK_WIDGET_REALIZED (icon_view))
|
||||
gdk_window_resize (icon_view->priv->bin_window,
|
||||
MAX (icon_view->priv->width, widget->allocation.width),
|
||||
@ -2634,7 +2638,7 @@ gtk_icon_view_layout (GtkIconView *icon_view)
|
||||
gtk_tree_path_free (path);
|
||||
}
|
||||
|
||||
gtk_widget_queue_draw (GTK_WIDGET (icon_view));
|
||||
gtk_widget_queue_draw (widget);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user