Make widthscaling a commandline parameter. - thingmenu - A simple graphical menu launcher for X11.
 (HTM) git clone git://bitreich.org/thingmenu
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) LICENSE
       ---
 (DIR) commit 45838326b3fbed24d56063b64cae841ee7b56282
 (DIR) parent 9fbca8b3f21d2d0ad07d19ec8222c2a3fd89b984
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Wed,  7 Sep 2011 22:09:54 +0200
       
       Make widthscaling a commandline parameter.
       
       Diffstat:
         M config.def.h                        |       2 +-
         M thingmenu.c                         |       4 ++++
       
       2 files changed, 5 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/config.def.h b/config.def.h
       @@ -7,5 +7,5 @@ static const char *pressfgcolor = "#000000";
        static const char *highlightbgcolor = "#bbbbbb";
        static const char *highlightfgcolor = "#000000";
        
       -static const int widthscaling = 1.5;
       +static float widthscaling = 1.5;
        
 (DIR) diff --git a/thingmenu.c b/thingmenu.c
       @@ -561,6 +561,10 @@ main(int argc, char *argv[])
                                        wh = atoi(argv[i+1]);
                                        i++;
                                        break;
       +                        case 's':
       +                                widthscaling = atoi(argv[i+1]);
       +                                i++;
       +                                break;
                                case 'w':
                                        ww = atoi(argv[i+1]);
                                        i++;