Anonymous avatar Anonymous committed 81573d2

Know about gtk.

Comments (0)

Files changed (2)

 ;;; ************************************************************************
 
 (defconst hproperty:color-list
-  (if (eq window-system 'x)
+  (if (memq window-system '(x gtk)) 
       '( "red" "blue" "paleturquoise4" "mediumpurple2"
 "lightskyblue3" "springgreen2" "salmon" "yellowgreen" "darkorchid2"
 "aquamarine4" "slateblue4" "slateblue1" "olivedrab1" "goldenrod4"
   "Pointer to current color name table to use for Hyperbole buttons.")
 
 (defconst hproperty:good-colors
-  (if (eq window-system 'x)
+  (if (memq window-system '(x gtk))
       '(
 	"medium violet red" "indianred4" "firebrick1" "DarkGoldenrod"
 	"NavyBlue" "darkorchid" "tomato3" "mediumseagreen" "deeppink"
 
 ;;;###autoload
 (defvar hyperb:mouse-buttons
-  (if (or (and hyperb:microcruft-os-p (not (eq window-system 'x)))
+  (if (or (and hyperb:microcruft-os-p (not (memq window-system '(x gtk))))
 	  (and hyperb:emacs19-p (memq window-system '(ns dps))))
       2 3)
   "*Number of live buttons available on the mouse.
   "Returns the first part of the term-type if running under a window system, else nil.
 Where a part in the term-type is delimited by a `-' or  an `_'."
   (let* ((display-type (if (fboundp 'device-type) (device-type) window-system))
-	 (term (cond ((memq display-type '(x mswindows win32 w32 ns dps pm))
+	 (term (cond ((memq display-type '(gtk x mswindows win32 w32 ns dps pm))
 		      ;; X11, NEXTSTEP (DPS), or OS/2 Presentation Manager (PM)
 		      (cond (hyperb:emacs19-p "emacs19")
 			    (hyperb:xemacs-p  "xemacs")
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.