• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

Revision5ddc22d62b2940df6cc7692aeda356b58561a913 (tree)
Time2014-08-28 03:21:43
AuthorChristopher Roy Bratusek <nano@jpbe...>
CommiterChristopher Roy Bratusek

Log Message

more robustness for image widget aswell (only update the preview if the image actually exists),
also ensure set-wallpaper is only called, when init-wallpaper is set (might get called from sawfish-config :after-set even if init-wallpaper is unset),
check wallpaper-setter properly against program-exists-p or file-exists-p (the former check might be useful, when the value is set from ~.sawfish/rc with only the application name, without full path - the latter is the valid check when wallpaper-setter is set from sawfish-config)

Change Summary

Incremental Difference

--- a/lisp/sawfish/gtk/widgets/image.jl
+++ b/lisp/sawfish/gtk/widgets/image.jl
@@ -53,7 +53,7 @@
5353 (when (not (eq x ()))
5454 (when (and (file-exists-p x) x)
5555 (gtk-file-chooser-select-filename selector x))
56- (when (and (stringp x) x)
56+ (when (and (file-exists-p x) (stringp x) x)
5757 (gtk-image-set-from-pixbuf image-preview
5858 (gdk-pixbuf-new-from-file-at-scale x 150 -1 t))))))
5959 ((clear) (lambda ()
--- a/lisp/sawfish/wm/ext/wallpaper.jl
+++ b/lisp/sawfish/wm/ext/wallpaper.jl
@@ -26,8 +26,10 @@
2626 set-wallpaper-xfce)
2727
2828 (open rep
29+ rep.regexp
2930 rep.system
3031 rep.io.files
32+ rep.util.misc
3133 sawfish.wm
3234 sawfish.wm.custom)
3335
@@ -89,7 +91,8 @@
8991 :after-set (lambda () (set-wallpaper)))
9092
9193 (define (set-wallpaper)
92- (when (file-exists-p root-wallpaper)
94+ (when (and init-wallpaper
95+ (file-exists-p root-wallpaper))
9396 (when set-wallpaper-xfce4
9497 (set-wallpaper-xfce))
9598 (when set-wallpaper-gnome2
@@ -98,7 +101,8 @@
98101 (not (eq desktop-environment "gnome"))
99102 (not (eq desktop-environment "xfce")))
100103 (setq wallpaper-filename (concat " \"" root-wallpaper "\""))
101- (when (program-exists-p wallpaper-setter)
104+ (when (or (program-exists-p (cdr (string-split "/" wallpaper-setter)))
105+ (file-exists-p wallpaper-setter))
102106 (system (concat wallpaper-setter " " wallpaper-setter-args " " wallpaper-filename " &"))))))
103107
104108 (defvar gnome-type nil)