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: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/src/xterm.c
Date: Thu, 31 Mar 2005 17:42:47 -0500

Index: emacs/src/xterm.c
diff -c emacs/src/xterm.c:1.861 emacs/src/xterm.c:1.862
*** emacs/src/xterm.c:1.861     Thu Feb 17 12:51:16 2005
--- emacs/src/xterm.c   Thu Mar 31 22:42:46 2005
***************
*** 130,138 ****
  #ifdef HAVE_XAW3D
  #include <X11/Xaw3d/Simple.h>
  #include <X11/Xaw3d/Scrollbar.h>
! #define ARROW_SCROLLBAR
! #define XAW_ARROW_SCROLLBARS
! #include <X11/Xaw3d/ScrollbarP.h>
  #else /* !HAVE_XAW3D */
  #include <X11/Xaw/Simple.h>
  #include <X11/Xaw/Scrollbar.h>
--- 130,136 ----
  #ifdef HAVE_XAW3D
  #include <X11/Xaw3d/Simple.h>
  #include <X11/Xaw3d/Scrollbar.h>
! #include <X11/Xaw3d/ThreeD.h>
  #else /* !HAVE_XAW3D */
  #include <X11/Xaw/Simple.h>
  #include <X11/Xaw/Scrollbar.h>
***************
*** 4547,4552 ****
--- 4545,4551 ----
        f->output_data.x->scroll_bar_bottom_shadow_pixel = pixel;
      }
  
+ #ifdef XtNbeNiceToColormap
    /* Tell the toolkit about them.  */
    if (f->output_data.x->scroll_bar_top_shadow_pixel == -1
        || f->output_data.x->scroll_bar_bottom_shadow_pixel == -1)
***************
*** 4570,4585 ****
        pixel = f->output_data.x->scroll_bar_top_shadow_pixel;
        if (pixel != -1)
        {
!         XtSetArg (av[ac], "topShadowPixel", pixel);
          ++ac;
        }
        pixel = f->output_data.x->scroll_bar_bottom_shadow_pixel;
        if (pixel != -1)
        {
!         XtSetArg (av[ac], "bottomShadowPixel", pixel);
          ++ac;
        }
      }
  
    widget = XtCreateWidget (scroll_bar_name, scrollbarWidgetClass,
                           f->output_data.x->edit_widget, av, ac);
--- 4569,4585 ----
        pixel = f->output_data.x->scroll_bar_top_shadow_pixel;
        if (pixel != -1)
        {
!         XtSetArg (av[ac], XtNtopShadowPixel, pixel);
          ++ac;
        }
        pixel = f->output_data.x->scroll_bar_bottom_shadow_pixel;
        if (pixel != -1)
        {
!         XtSetArg (av[ac], XtNbottomShadowPixel, pixel);
          ++ac;
        }
      }
+ #endif
  
    widget = XtCreateWidget (scroll_bar_name, scrollbarWidgetClass,
                           f->output_data.x->edit_widget, av, ac);
***************
*** 4725,4754 ****
          XawScrollbarSetThumb (widget, top, shown);
        else
          {
- #ifdef HAVE_XAW3D
-           ScrollbarWidget sb = (ScrollbarWidget) widget;
-           int scroll_mode = 0;
- 
-           /* `scroll_mode' only exists with Xaw3d + ARROW_SCROLLBAR.  */
-           if (xaw3d_arrow_scroll)
-             {
-               /* Xaw3d stupidly ignores resize requests while dragging
-                  so we have to make it believe it's not in dragging mode.  */
-               scroll_mode = sb->scrollbar.scroll_mode;
-               if (scroll_mode == 2)
-                 sb->scrollbar.scroll_mode = 0;
-             }
- #endif
            /* Try to make the scrolling a tad smoother.  */
            if (!xaw3d_pick_top)
              shown = min (shown, old_shown);
  
            XawScrollbarSetThumb (widget, top, shown);
- 
- #ifdef HAVE_XAW3D
-           if (xaw3d_arrow_scroll && scroll_mode == 2)
-             sb->scrollbar.scroll_mode = scroll_mode;
- #endif
          }
        }
    }
--- 4725,4735 ----




reply via email to

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