[gnome-panel] [panel] Correctly set struts when two panels are right-oriented



commit dd3e8f15458baec8e62c3e66fdbc15a25e1c3006
Author: Alexey Rusakov <ktirf users sf net>
Date:   Wed Aug 12 01:02:57 2009 +0200

    [panel] Correctly set struts when two panels are right-oriented
    
    http://bugzilla.gnome.org/show_bug.cgi?id=507873

 gnome-panel/panel-struts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/panel-struts.c b/gnome-panel/panel-struts.c
index 1a02878..cef816d 100644
--- a/gnome-panel/panel-struts.c
+++ b/gnome-panel/panel-struts.c
@@ -143,7 +143,7 @@ panel_struts_allocation_overlapped (PanelStrut   *strut,
 			break;
 		case PANEL_ORIENTATION_RIGHT:
 			geometry->x = overlap_x1 - geometry->width;
-			strut->allocated_strut_size = old_x - geometry->x;
+			strut->allocated_strut_size += old_x - geometry->x;
 			break;
 		default:
 			g_assert_not_reached ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]