emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/xterm.c


From: Kim F . Storm
Subject: [Emacs-diffs] Changes to emacs/src/xterm.c
Date: Mon, 04 Oct 2004 10:28:48 -0400

Index: emacs/src/xterm.c
diff -c emacs/src/xterm.c:1.842 emacs/src/xterm.c:1.843
*** emacs/src/xterm.c:1.842     Sat Sep 18 21:36:02 2004
--- emacs/src/xterm.c   Mon Oct  4 14:07:06 2004
***************
*** 5046,5054 ****
    /* Compute the left edge of the scroll bar.  */
  #ifdef USE_TOOLKIT_SCROLL_BARS
    if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT (w))
!     sb_left = left + width - sb_width - (width - sb_width) / 2;
    else
!     sb_left = left + (width - sb_width) / 2;
  #else
    if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT (w))
      sb_left = left + width - sb_width;
--- 5046,5060 ----
    /* Compute the left edge of the scroll bar.  */
  #ifdef USE_TOOLKIT_SCROLL_BARS
    if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT (w))
!     sb_left = (left +
!              (WINDOW_RIGHTMOST_P (w)
!               ? width - sb_width - (width - sb_width) / 2
!               : 0));
    else
!     sb_left = (left +
!              (WINDOW_LEFTMOST_P (w)
!               ? (width - sb_width) / 2
!               : width - sb_width));
  #else
    if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT (w))
      sb_left = left + width - sb_width;
***************
*** 5101,5119 ****
                                   width);
  #else /* not USE_GTK */
  
-       /* Since toolkit scroll bars are smaller than the space reserved
-          for them on the frame, we have to clear "under" them.  */
-       if (width > 0 && height > 0)
-         x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
-                           left, top, width, height, False);
        /* Move/size the scroll bar widget.  */
        if (mask)
            XtConfigureWidget (SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar),
                               sb_left + VERTICAL_SCROLL_BAR_WIDTH_TRIM,
                               top,
                               sb_width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2,
                               max (height, 1), 0);
! 
  #endif /* not USE_GTK */
  #else /* not USE_TOOLKIT_SCROLL_BARS */
  
--- 5107,5126 ----
                                   width);
  #else /* not USE_GTK */
  
        /* Move/size the scroll bar widget.  */
        if (mask)
+       {
+         /* Since toolkit scroll bars are smaller than the space reserved
+            for them on the frame, we have to clear "under" them.  */
+         if (width > 0 && height > 0)
+           x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
+                           left, top, width, height, False);
            XtConfigureWidget (SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar),
                               sb_left + VERTICAL_SCROLL_BAR_WIDTH_TRIM,
                               top,
                               sb_width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2,
                               max (height, 1), 0);
!       }
  #endif /* not USE_GTK */
  #else /* not USE_TOOLKIT_SCROLL_BARS */
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]