#4 -setgrid support

closed
None
5
2005-09-17
2002-02-01
Anonymous
No

The enclosed patch added -setgrid support. The
difference from the text widget's setgrid is that the
argument is number of pixels per-grid unit. So
"-setgrid 1" would cause the window manager to report
the window size in pixels, "-setgrid 10" would cause
the window manager to report the window size in tens of
pixels. This patch could be extended to use different
grid units in the x and y directions (which is implicit
with the character size in the text widget), but that
will be for someone else to do. Note that some window
managers (dtwm) might report the wrong window size with
a grid unit of one pixel.

This patch includes code that limits calls to
Tk_ResizeWindow to when the width or height (or grid
size) actual changes, which removes extras redraws that
used to occur when only the cursor changes.

Greg Couch
UCSF Computer Graphics Lab
gregc@cgl.ucsf.edu

Discussion

  • Nobody/Anonymous

    Logged In: NO

    SourceForge screwed up the file upload again. The patch is
    temporarily available at:

    ftp://ftp.cgl.ucsf.edu/pub/gregc/setgrid.patch

     
  • Nobody/Anonymous

    Logged In: NO

    SourceForge screwed up the file upload again. The patch is
    temporarily available at:

    ftp://ftp.cgl.ucsf.edu/pub/gregc/setgrid.patch

     
  • Nobody/Anonymous

    Logged In: NO

    SourceForge screwed up the file upload again. The patch is
    temporarily available at:

    ftp://ftp.cgl.ucsf.edu/pub/gregc/setgrid.patch

     
  • Greg Couch

    Greg Couch - 2005-09-13
    • assigned_to: nobody --> gregcouch
     
  • Greg Couch

    Greg Couch - 2005-09-17
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks