Author: jasper
Date: 2006-11-24 19:15:11 +0000 (Fri, 24 Nov 2006)
New Revision: 23944
Modified:
xfce4-panel/trunk/panel/panel-properties.c
Log:
Delay setting struts until changin position is complete. Bug #2598.
Modified: xfce4-panel/trunk/panel/panel-properties.c
===================================================================
--- xfce4-panel/trunk/panel/panel-properties.c 2006-11-23 21:54:58 UTC (rev
23943)
+++ xfce4-panel/trunk/panel/panel-properties.c 2006-11-24 19:15:11 UTC (rev
23944)
@@ -244,6 +244,10 @@
priv = panel->priv;
+ /* use edit_mode property to test if we are changing position */
+ if (G_UNLIKELY (priv->edit_mode))
+ return;
+
if (!priv->autohide &&
!xfce_screen_position_is_floating (priv->screen_position))
{
@@ -1132,6 +1136,9 @@
GtkOrientation orientation;
XfcePanelWidthType full_width = priv->full_width;
+ /* use edit_mode property to test if we are changing position */
+ priv->edit_mode = TRUE;
+
xfce_panel_window_set_move_function (XFCE_PANEL_WINDOW (panel),
NULL, NULL);
@@ -1196,6 +1203,9 @@
}
gtk_widget_queue_draw (GTK_WIDGET (panel));
+
+ /* use edit_mode property to test if we are changing position */
+ priv->edit_mode = FALSE;
}
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits