Commit 8080e76f authored by Andy Hertzfeld's avatar Andy Hertzfeld

disabled the pernicious call to relayout in size_allocate, at least


      disabled the pernicious call to relayout in size_allocate, at least
      temporarily
parent c02264c8
2000-01-20 Andy Hertzfeld <andy@eazel.com>
* libnautilus/gnome-icon-container.c:
disabled the pernicious call to relayout in size_allocate. We will want to do automatic layout
when the window size changes, but this is the wrong level for it, it happens too frequently
2000-01-20 Elliot Lee <sopwith@redhat.com>
* src/ntl-window-msgs.c:
......
......@@ -1837,16 +1837,18 @@ size_allocate (GtkWidget *widget,
if (visible_width == 0)
visible_width = 1;
#if 1
#if 0
grid->visible_width = visible_width;
grid->height = MAX(visible_height, grid->height);
gnome_icon_container_relayout(container);
#else
/*
if (visible_width > grid->width || visible_height > grid->height)
icon_grid_resize (grid,
MAX (visible_width, grid->width),
MAX (visible_height, grid->height));
*/
/* icon_grid_resize(grid, visible_width, visible_height); */
/* icon_grid_set_visible_width (grid, visible_width); */
#endif
......
......@@ -1837,16 +1837,18 @@ size_allocate (GtkWidget *widget,
if (visible_width == 0)
visible_width = 1;
#if 1
#if 0
grid->visible_width = visible_width;
grid->height = MAX(visible_height, grid->height);
gnome_icon_container_relayout(container);
#else
/*
if (visible_width > grid->width || visible_height > grid->height)
icon_grid_resize (grid,
MAX (visible_width, grid->width),
MAX (visible_height, grid->height));
*/
/* icon_grid_resize(grid, visible_width, visible_height); */
/* icon_grid_set_visible_width (grid, visible_width); */
#endif
......
......@@ -1837,16 +1837,18 @@ size_allocate (GtkWidget *widget,
if (visible_width == 0)
visible_width = 1;
#if 1
#if 0
grid->visible_width = visible_width;
grid->height = MAX(visible_height, grid->height);
gnome_icon_container_relayout(container);
#else
/*
if (visible_width > grid->width || visible_height > grid->height)
icon_grid_resize (grid,
MAX (visible_width, grid->width),
MAX (visible_height, grid->height));
*/
/* icon_grid_resize(grid, visible_width, visible_height); */
/* icon_grid_set_visible_width (grid, visible_width); */
#endif
......
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