Commit 524afa58 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

don't resize the pixmap when we don't need to

Fri Aug 28 10:32:51 1998  George Lebl  <jirka@5z.com>

        * panel-widget.c: don't resize the pixmap when we don't need to
parent 05eee177
Fri Aug 28 10:32:51 1998 George Lebl <jirka@5z.com>
* panel-widget.c: don't resize the pixmap when we don't need to
Fri Aug 28 02:19:18 1998 George Lebl <jirka@5z.com>
* menu.c: uset the logo-icon image for the main menu, this
......
Fri Aug 28 10:32:51 1998 George Lebl <jirka@5z.com>
* panel-widget.c: don't resize the pixmap when we don't need to
Fri Aug 28 02:19:18 1998 George Lebl <jirka@5z.com>
* menu.c: uset the logo-icon image for the main menu, this
......
......@@ -794,6 +794,7 @@ panel_widget_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
GList *send_move = NULL;
int i;
int old_size = panel->size;
int old_thick = panel->thick;
widget->allocation = *allocation;
if (GTK_WIDGET_REALIZED (widget))
......@@ -896,7 +897,9 @@ panel_widget_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
else
panel->thick = allocation->width;
if(panel->fit_pixmap_bg && panel->back_type == PANEL_BACK_PIXMAP)
if(old_thick != panel->thick &&
panel->fit_pixmap_bg &&
panel->back_type == PANEL_BACK_PIXMAP)
panel_resize_pixmap(panel);
......
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