]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.backend.gtk: use png instead of ico to represent icons
authorPhilipp Brüschweiler <blei42@gmail.com>
Thu, 22 Jul 2010 20:48:18 +0000 (22:48 +0200)
committerPhilipp Brüschweiler <blei42@gmail.com>
Thu, 22 Jul 2010 20:48:18 +0000 (22:48 +0200)
basis/tools/deploy/unix/unix.factor
basis/ui/backend/gtk/gtk.factor
basis/ui/backend/gtk/icon.ico [deleted file]
basis/ui/backend/gtk/icon.png [new file with mode: 0644]
core/vocabs/loader/loader-docs.factor
extra/hello-ui/deploy.factor

index 2fba79ad1e24f3362647c2422d8e6a7da920c6b4..ba7dd4d95e4f6e6f32a8ea955b561de8ca3fe937 100644 (file)
@@ -6,17 +6,17 @@ tools.deploy.backend tools.deploy.config
 tools.deploy.config.editor vocabs.loader vocabs.metadata ;
 IN: tools.deploy.unix
 
-: used-ico ( vocab -- ico )
-    dup vocab-windows-icon-path vocab-append-path
-    [ exists? ] keep "vocab:ui/backend/gtk/icon.ico" ? ;
+: used-icon ( vocab -- ico )
+    dup vocab-dir "icon.png" append-path vocab-append-path
+    [ exists? ] keep "vocab:ui/backend/gtk/icon.png" ? ;
 
-: copy-ico ( vocab bundle-name -- )
-    [ used-ico ]
-    [ "ui/backend/gtk/icon.ico" append-path ] bi*
+: copy-icon ( vocab bundle-name -- )
+    [ used-icon ]
+    [ "ui/backend/gtk/icon.png" append-path ] bi*
     copy-file ;
 
 : create-app-dir ( vocab bundle-name -- vm )
-    [ copy-vm ] [ copy-ico ] 2bi
+    [ copy-vm ] [ copy-icon ] 2bi
     dup OCT: 755 set-file-permissions ;
 
 : bundle-name ( -- str )
index 2e0a776dfec1b3946e9d71bbffe2f2e5a005d526..57b406f6fd412edafc1ea29e51b30667aa6a6a79 100644 (file)
@@ -270,7 +270,7 @@ SYMBOL: next-timeout
     ! This file is not in a resource.txt because it can be
     ! overwritten when deploying. See 'Vocabulary icons'
     ! in the docs.
-    "vocab:ui/backend/gtk/icon.ico"
+    "vocab:ui/backend/gtk/icon.png"
     normalize-path utf8 string>alien
     { { pointer: GError initial: f } }
     [ gtk_window_set_default_icon_from_file ] with-out-parameters
diff --git a/basis/ui/backend/gtk/icon.ico b/basis/ui/backend/gtk/icon.ico
deleted file mode 100644 (file)
index 1df40e3..0000000
Binary files a/basis/ui/backend/gtk/icon.ico and /dev/null differ
diff --git a/basis/ui/backend/gtk/icon.png b/basis/ui/backend/gtk/icon.png
new file mode 100644 (file)
index 0000000..a1da637
Binary files /dev/null and b/basis/ui/backend/gtk/icon.png differ
index 0224ec9450dae09e954929a3d9d0fe5c17449151..033479f91036b068b3376775e67226b93f72d101 100755 (executable)
@@ -28,7 +28,12 @@ ARTICLE: "vocabs.roots" "Vocabulary roots"
 { $subsections "add-vocab-roots" } ;
 
 ARTICLE: "vocabs.icons" "Vocabulary icons"
-"An icon file representing the vocabulary can be provided for use by " { $link "tools.deploy" } ". A file named " { $snippet "icon.ico" } " will be used as the application icon when the application is deployed on Windows, Linux or the *BSD. A file named " { $snippet "icon.icns" } " will be used when the application is deployed on MacOS X." ;
+"An icon file representing the vocabulary can be provided for use by " { $link "tools.deploy" } ". If any of the following files exist inside the vocabulary directory, they will be used as icons when the application is deployed."
+{ $list
+    { { $snippet "icon.ico" } " on Windows" }
+    { { $snippet "icon.icns" } " on MacOS X" }
+    { { $snippet "icon.png" } " on Linux and *BSD" }
+} ;
 
 ARTICLE: "vocabs.loader" "Vocabulary loader"
 "The " { $link POSTPONE: USE: } " and " { $link POSTPONE: USING: } " words load vocabularies using the vocabulary loader. The vocabulary loader is implemented in the " { $vocab-link "vocabs.loader" } " vocabulary."
index ceff9857cb4b9e77e1af419521a67526281b7a4e..cf851f5a95e9f7c9201607a437f72dfa93212d86 100644 (file)
@@ -5,7 +5,7 @@ H{
     { deploy-c-types? f }
     { deploy-unicode? f }
     { "stop-after-last-window?" t }
-    { deploy-io 1 }
+    { deploy-io 2 }
     { deploy-reflection 1 }
     { deploy-word-props? f }
     { deploy-math? t }