projects
/
chise
/
xemacs-chise.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
XEmacs 21.4.19 (Constant Variable).
[chise/xemacs-chise.git]
/
lwlib
/
xlwscrollbar.c
diff --git
a/lwlib/xlwscrollbar.c
b/lwlib/xlwscrollbar.c
index
81f8cdb
..
9fe3de9
100644
(file)
--- a/
lwlib/xlwscrollbar.c
+++ b/
lwlib/xlwscrollbar.c
@@
-30,7
+30,8
@@
Boston, MA 02111-1307, USA. */
*
* Emacs*XlwScrollBar.translations: #override \n\
* <Btn1Down>: PageDownOrRight() \n\
*
* Emacs*XlwScrollBar.translations: #override \n\
* <Btn1Down>: PageDownOrRight() \n\
- * <Btn3Down>: PageUpOrLeft()
+ * <Btn3Down>: PageUpOrLeft() \n\
+ * <Btn3Up>: Release()
*
*/
*
*/
@@
-485,11
+486,9
@@
arrow_same_end (XlwScrollBarWidget w)
}
/*-------------------------- GC and Pixel allocation --------------------*/
}
/*-------------------------- GC and Pixel allocation --------------------*/
-#ifdef NEED_MOTIF
#ifndef XmUNSPECIFIED_PIXMAP
#define XmUNSPECIFIED_PIXMAP 2
#endif
#ifndef XmUNSPECIFIED_PIXMAP
#define XmUNSPECIFIED_PIXMAP 2
#endif
-#endif /* NEED_MOTIF */
static GC
get_gc (XlwScrollBarWidget w, Pixel fg, Pixel bg, Pixmap pm)
static GC
get_gc (XlwScrollBarWidget w, Pixel fg, Pixel bg, Pixmap pm)
@@
-514,14
+513,10
@@
get_gc (XlwScrollBarWidget w, Pixel fg, Pixel bg, Pixmap pm)
values.stipple = pm;
/* mask = GCForeground | GCBackground |
(pm == None ? 0 : GCStipple | GCFillStyle); gtb */
values.stipple = pm;
/* mask = GCForeground | GCBackground |
(pm == None ? 0 : GCStipple | GCFillStyle); gtb */
-#ifdef NEED_MOTIF
if (pm != None && pm != 0 && pm != XmUNSPECIFIED_PIXMAP)
values.stipple = pm;
else
values.stipple = None;
if (pm != None && pm != 0 && pm != XmUNSPECIFIED_PIXMAP)
values.stipple = pm;
else
values.stipple = None;
-#else
- values.stipple = pm;
-#endif /* NEED_MOTIF */
mask = GCForeground | GCBackground |
(values.stipple == None ? 0 : GCStipple | GCFillStyle);
mask = GCForeground | GCBackground |
(values.stipple == None ? 0 : GCStipple | GCFillStyle);
@@
-979,7
+974,7
@@
seg_pixel_sizes (XlwScrollBarWidget w, int *above_return,
if (ss < SS_MIN)
{
/* add a percent amount for integer rounding */
if (ss < SS_MIN)
{
/* add a percent amount for integer rounding */
- float tmp = ((((float) (SS_MIN - ss) * (float) value)) / total) + 0.5;
+ float tmp = (((float) (SS_MIN - ss) * (float) value) / total) + 0.5;
above -= (int) tmp;
ss = SS_MIN;
above -= (int) tmp;
ss = SS_MIN;