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:
Matthias Clasen 2007-05-30 13:28:24 +00:00 committed by Matthias Clasen
parent f2f53a6955
commit 8bcf5c23c3
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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