[Sugar-devel] [PATCH] Set max_column value according to screen width. Ticket #2280
Neeraj Gupta
neeraj at seeta.in
Sun Sep 5 10:08:11 EDT 2010
This patch set the value of maximum number of column in control panel display
according to the screen resolution.
---
src/jarabe/controlpanel/gui.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/jarabe/controlpanel/gui.py b/src/jarabe/controlpanel/gui.py
index 51d9820..e9368d2 100644
--- a/src/jarabe/controlpanel/gui.py
+++ b/src/jarabe/controlpanel/gui.py
@@ -33,7 +33,7 @@ from jarabe.controlpanel.toolbar import SectionToolbar
from jarabe import config
_logger = logging.getLogger('ControlPanel')
-_MAX_COLUMNS = 5
+_MAX_COLUMNS = gtk.gdk.screen_width()/(3*style.GRID_CELL_SIZE)
class ControlPanel(gtk.Window):
__gtype_name__ = 'SugarControlPanel'
--
1.7.0.4
More information about the Sugar-devel
mailing list