X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fdemo-Xm.c;h=a0da3d7901b69b6dbf6cb4a2a4d73bc588cfb3a4;hb=a1d41b2aa6e18bf9a49b914a99dda8232c5d7762;hp=bf7e0520dc7d582d21c305c04a54681fc373f408;hpb=ebc241816cc8e3eec7270a594bb1a607df32bcd6;p=xscreensaver diff --git a/driver/demo-Xm.c b/driver/demo-Xm.c index bf7e0520..a0da3d79 100644 --- a/driver/demo-Xm.c +++ b/driver/demo-Xm.c @@ -72,6 +72,9 @@ # ifndef XmNtextField /* Lesstif 0.89.4 bug */ # undef HAVE_XMCOMBOBOX # endif +# if (XmVersion < 2001) /* Lesstif has two personalities these days */ +# undef HAVE_XMCOMBOBOX +# endif #endif /* HAVE_XMCOMBOBOX */ #include "version.h" @@ -1012,6 +1015,10 @@ populate_prefs_page (Widget top, prefs_pair *pair) } } +#ifdef HAVE_XF86VMODE_GAMMA + found_any_writable_cells = True; /* if we can gamma fade, go for it */ +#endif + XtVaSetValues (name_to_widget (top, "fadeSecondsLabel"), XtNsensitive, found_any_writable_cells, 0); XtVaSetValues (name_to_widget (top, "fadeTicksLabel"), XtNsensitive,