Ticket #2280: 0001-Set-max_column-value-according-to-screen-width.patch

File 0001-Set-max_column-value-according-to-screen-width.patch, 935 bytes (added by neeraj_gupta, 11 years ago)
  • src/jarabe/controlpanel/gui.py

    From dbbed5f4b51f45593a1ef0c9799b7beb2fafc8e4 Mon Sep 17 00:00:00 2001
    From: Neeraj Gupta <neeraj@seeta.in>
    Date: Sun, 5 Sep 2010 19:22:18 +0530
    Subject: [PATCH] Set max_column value according to screen width. Ticket #2280
    
    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 b from jarabe.controlpanel.toolbar import SectionToolbar 
    3333from jarabe import config
    3434
    3535_logger = logging.getLogger('ControlPanel')
    36 _MAX_COLUMNS = 5
     36_MAX_COLUMNS = gtk.gdk.screen_width()/(3*style.GRID_CELL_SIZE)
    3737
    3838class ControlPanel(gtk.Window):
    3939    __gtype_name__ = 'SugarControlPanel'