wok-current rev 17187
gtk+: replace stock icons by Faenza icons. Later we can remove them from slitaz-icon package in order to save some space.
line diff
1.1 --- a/gtk+/receipt Thu Oct 02 18:55:18 2014 +0200 1.2 +++ b/gtk+/receipt Fri Oct 03 17:25:23 2014 +0300 1.3 @@ -21,12 +21,13 @@ 1.4 1.5 BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \ 1.6 xorg-inputproto libxcb-dev fontconfig-dev freetype-dev pixman-dev libxml2-dev \ 1.7 -libpng-dev libffi-dev xorg-xextproto harfbuzz-dev" 1.8 +libpng-dev libffi-dev xorg-xextproto harfbuzz-dev faenza-icon-theme optipng \ 1.9 +xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev" 1.10 1.11 # Handle cross compilation. 1.12 case "$ARCH" in 1.13 i?86) 1.14 - BUILD_DEPENDS="$BUILD_DEPENDS bash pkg-config cups-dev perl 1.15 + BUILD_DEPENDS="$BUILD_DEPENDS bash pkg-config cups-dev perl \ 1.16 gobject-introspection-dev" ;; 1.17 arm*) 1.18 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \ 1.19 @@ -39,6 +40,7 @@ 1.20 # Rules to configure and make the package. 1.21 compile_rules() 1.22 { 1.23 + . $stuff/replace-icons; cd $src 1.24 ./configure \ 1.25 --prefix=/usr \ 1.26 --sysconfdir=/etc \ 1.27 @@ -92,4 +94,3 @@ 1.28 rm -rf $1/usr/lib/gtk-2.0/2.4.0 1.29 fi 1.30 } 1.31 -
2.1 Binary file gtk+/stuff/16/document-revert-rtl.png has changed
3.1 Binary file gtk+/stuff/16/edit-redo-rtl.png has changed
4.1 Binary file gtk+/stuff/16/edit-undo-rtl.png has changed
5.1 Binary file gtk+/stuff/16/format-indent-less-rtl.png has changed
6.1 Binary file gtk+/stuff/16/format-indent-more-rtl.png has changed
7.1 Binary file gtk+/stuff/16/go-jump-rtl.png has changed
8.1 Binary file gtk+/stuff/16/media-playback-start-rtl.png has changed
9.1 Binary file gtk+/stuff/16/media-seek-backward-ltr.png has changed
10.1 Binary file gtk+/stuff/16/media-seek-forward-ltr.png has changed
11.1 Binary file gtk+/stuff/20/gtk-apply.png has changed
12.1 Binary file gtk+/stuff/20/gtk-cancel.png has changed
13.1 Binary file gtk+/stuff/20/gtk-no.png has changed
14.1 Binary file gtk+/stuff/20/gtk-ok.png has changed
15.1 Binary file gtk+/stuff/20/gtk-yes.png has changed
16.1 Binary file gtk+/stuff/20/window-close.png has changed
17.1 Binary file gtk+/stuff/24/document-revert-rtl.png has changed
18.1 Binary file gtk+/stuff/24/edit-redo-rtl.png has changed
19.1 Binary file gtk+/stuff/24/edit-undo-rtl.png has changed
20.1 Binary file gtk+/stuff/24/format-indent-less-rtl.png has changed
21.1 Binary file gtk+/stuff/24/format-indent-more-rtl.png has changed
22.1 Binary file gtk+/stuff/24/go-jump-rtl.png has changed
23.1 Binary file gtk+/stuff/24/media-playback-start-rtl.png has changed
24.1 Binary file gtk+/stuff/24/media-seek-backward-ltr.png has changed
25.1 Binary file gtk+/stuff/24/media-seek-forward-ltr.png has changed
26.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 26.2 +++ b/gtk+/stuff/replace-icons Fri Oct 03 17:25:23 2014 +0300 26.3 @@ -0,0 +1,293 @@ 26.4 +# GTK+ stock icons looks alienly for SliTaz based on Faenza icon theme. 26.5 +# These icons takes place, and we don't use them. 26.6 +# This script replaces GTK+ stock icons by Faenza icons. 26.7 + 26.8 +# All "-rtl" variants of icons are just mirrored horizontally original icons. 26.9 +# "media-seek-backward" and "media-seek-forward" composed from "media-palyback" 26.10 +# icon using the GIMP. 26.11 + 26.12 +F=$WOK/faenza-icon-theme/taz/*/fs/usr/share/icons/Faenza 26.13 + 26.14 +Ac16=$F/actions/16 26.15 +De16=$F/devices/16 26.16 +Pl16=$F/places/16 26.17 +St16=$F/stock/16 26.18 +Mi16=$F/mimetypes/16 26.19 +Ca16=$F/categories/16 26.20 +Sa16=$F/status/16 26.21 + 26.22 + 26.23 +cd $src/gtk/stock-icons/16 26.24 + 26.25 +cp -f $Ac16/application-exit.png . 26.26 +cp -f $Ac16/gtk-info.png ./dialog-information.png 26.27 +cp -f $Ac16/document-new.png . 26.28 +cp -f $Ac16/document-open.png . 26.29 +cp -f $Ac16/document-open-recent.png . 26.30 +cp -f $Ac16/document-print.png . 26.31 +cp -f $Ac16/document-print-preview.png . 26.32 +cp -f $Ac16/document-properties.png . 26.33 +cp -f $Ac16/document-revert.png ./document-revert-ltr.png 26.34 +cp -f $stuff/16/document-revert-rtl.png . 26.35 +cp -f $Ac16/document-save.png . 26.36 +cp -f $Ac16/document-save-as.png . 26.37 +cp -f $De16/drive-harddisk.png . 26.38 +cp -f $Ac16/edit-clear.png . 26.39 +cp -f $Ac16/edit-copy.png . 26.40 +cp -f $Ac16/edit-cut.png . 26.41 +ln -fs list-remove.png ./edit-delete.png 26.42 +cp -f $Ac16/edit-find.png . 26.43 +cp -f $Ac16/edit-find-replace.png . 26.44 +cp -f $Ac16/edit-paste.png . 26.45 +cp -f $Ac16/edit-redo.png ./edit-redo-ltr.png 26.46 +cp -f $stuff/16/edit-redo-rtl.png . 26.47 +cp -f $Ac16/edit-select-all.png . 26.48 +cp -f $Ac16/edit-undo.png ./edit-undo-ltr.png 26.49 +cp -f $stuff/16/edit-undo-rtl.png . 26.50 +cp -f $Pl16/folder.png . 26.51 +cp -f $Pl16/folder-remote.png . 26.52 +cp -f $Ac16/format-indent-less.png ./format-indent-less-ltr.png 26.53 +cp -f $stuff/16/format-indent-less-rtl.png . 26.54 +cp -f $Ac16/format-indent-more.png ./format-indent-more-ltr.png 26.55 +cp -f $stuff/16/format-indent-more-rtl.png . 26.56 +cp -f $Ac16/format-justify-center.png . 26.57 +cp -f $Ac16/format-justify-fill.png . 26.58 +cp -f $Ac16/format-justify-left.png . 26.59 +cp -f $Ac16/format-justify-right.png . 26.60 +cp -f $Ac16/format-text-bold.png . 26.61 +cp -f $Ac16/format-text-italic.png . 26.62 +cp -f $Ac16/format-text-strikethrough.png . 26.63 +cp -f $Ac16/format-text-underline.png . 26.64 +cp -f $Ac16/go-bottom.png . 26.65 +cp -f $Ac16/go-down.png . 26.66 +cp -f $Ac16/go-first.png ./go-first-ltr.png 26.67 +ln -fs go-last-ltr.png ./go-first-rtl.png 26.68 +cp -f $Ac16/go-home.png . 26.69 +cp -f $Ac16/go-jump.png ./go-jump-ltr.png 26.70 +cp -f $stuff/16/go-jump-rtl.png . 26.71 +cp -f $Ac16/go-last.png ./go-last-ltr.png 26.72 +ln -fs go-first-ltr.png ./go-last-rtl.png 26.73 +cp -f $Ac16/go-next.png ./go-next-ltr.png 26.74 +ln -fs go-previous-ltr.png ./go-next-rtl.png 26.75 +cp -f $Ac16/go-previous.png ./go-previous-ltr.png 26.76 +ln -fs go-next-ltr.png ./go-previous-rtl.png 26.77 +cp -f $Ac16/go-top.png . 26.78 +cp -f $Ac16/go-up.png . 26.79 +#gtk-caps-lock-warning.png 26.80 +#gtk-color-picker.png 26.81 +cp -f $St16/stock_connect.png ./gtk-connect.png 26.82 +#gtk-convert.png 26.83 +cp -f $St16/stock_disconnect.png ./gtk-disconnect.png 26.84 +cp -f $Ac16/gtk-edit.png . 26.85 +cp -f $Mi16/font-x-generic.png ./gtk-font.png 26.86 +#gtk-index.png 26.87 +#gtk-orientation-landscape.png 26.88 +#gtk-orientation-portrait.png 26.89 +#gtk-orientation-reverse-landscape.png 26.90 +#gtk-orientation-reverse-portrait.png 26.91 +cp -f $Ac16/document-page-setup.png ./gtk-page-setup.png 26.92 +cp -f $Ca16/preferences-desktop.png ./gtk-preferences.png 26.93 +#gtk-select-color.png 26.94 +ln -fs gtk-font.png ./gtk-select-font.png 26.95 +#gtk-undelete-ltr.png 26.96 +#gtk-undelete-rtl.png 26.97 +cp -f $Ac16/help-about.png . 26.98 +cp -f $Ac16/help-contents.png . 26.99 +cp -f $Sa16/image-missing.png . 26.100 +cp -f $Ac16/list-add.png . 26.101 +cp -f $Ac16/list-remove.png . 26.102 +cp -f $De16/media-floppy.png . 26.103 +cp -f $De16/media-optical.png . 26.104 +cp -f $Ac16/media-playback-pause.png . 26.105 +cp -f $Ac16/media-playback-start.png ./media-playback-start-ltr.png 26.106 +cp -f $stuff/16/media-playback-start-rtl.png . 26.107 +cp -f $Ac16/media-playback-stop.png . 26.108 +cp -f $Ac16/media-record.png . 26.109 +cp -f $stuff/16/media-seek-backward-ltr.png . 26.110 +ln -fs media-seek-forward-ltr.png ./media-seek-backward-rtl.png 26.111 +cp -f $stuff/16/media-seek-forward-ltr.png . 26.112 +ln -fs media-seek-backward-ltr.png ./media-seek-forward-rtl.png 26.113 +cp -f $Ac16/media-skip-backward.png ./media-skip-backward-ltr.png 26.114 +ln -fs media-skip-forward-ltr.png ./media-skip-backward-rtl.png 26.115 +cp -f $Ac16/media-skip-forward.png ./media-skip-forward-ltr.png 26.116 +ln -fs media-skip-backward-ltr.png ./media-skip-forward-rtl.png 26.117 +cp -f $Sa16/network-idle.png . 26.118 +#printer-error.png 26.119 +#printer-info.png 26.120 +#printer-paused.png 26.121 +#printer-warning.png 26.122 +cp -f $Ac16/process-stop.png . 26.123 +cp -f $Ac16/system-run.png . 26.124 +cp -f $Mi16/text-plain.png ./text-x-generic.png 26.125 +cp -f $Ac16/tools-check-spelling.png . 26.126 +cp -f $Pl16/user-desktop.png . 26.127 +cp -f $Pl16/user-home.png . 26.128 +cp -f $Ac16/view-fullscreen.png . 26.129 +cp -f $Ac16/view-refresh.png . 26.130 +cp -f $Ac16/view-restore.png . 26.131 +cp -f $Ac16/view-sort-ascending.png . 26.132 +cp -f $Ac16/view-sort-descending.png . 26.133 +cp -f $Ac16/window-close.png . 26.134 +cp -f $Ac16/zoom-fit.png zoom-fit-best.png 26.135 +cp -f $Ac16/zoom-in.png . 26.136 +cp -f $Ac16/zoom-original.png . 26.137 +cp -f $Ac16/zoom-out.png . 26.138 + 26.139 + 26.140 +cd $src/gtk/stock-icons/20 26.141 + 26.142 +for icon in gtk-apply gtk-cancel gtk-no gtk-ok gtk-yes window-close; do 26.143 + cp -f $stuff/20/$icon.png . 26.144 +done 26.145 + 26.146 + 26.147 +Ac24=$F/actions/24 26.148 +De24=$F/devices/24 26.149 +Pl24=$F/places/24 26.150 +St24=$F/stock/24 26.151 +Sa24=$F/status/24 26.152 +Mi24=$F/mimetypes/24 26.153 +Ca24=$F/categories/24 26.154 + 26.155 + 26.156 +cd $src/gtk/stock-icons/24 26.157 + 26.158 +cp -f $Ac24/application-exit.png . 26.159 +cp -f $Sa24/audio-volume-high.png . 26.160 +cp -f $Sa24/audio-volume-low.png . 26.161 +cp -f $Sa24/audio-volume-medium.png . 26.162 +cp -f $Sa24/audio-volume-muted.png . 26.163 +cp -f $Ac24/gtk-info.png ./dialog-information.png 26.164 +cp -f $Ac24/document-new.png . 26.165 +cp -f $Ac24/document-open.png . 26.166 +cp -f $Ac24/document-open-recent.png . 26.167 +cp -f $Ac24/document-print.png . 26.168 +cp -f $Ac24/document-print-preview.png . 26.169 +cp -f $Ac24/document-properties.png . 26.170 +cp -f $Ac24/document-revert.png ./document-revert-ltr.png 26.171 +cp -f $stuff/24/document-revert-rtl.png . 26.172 +cp -f $Ac24/document-save.png . 26.173 +cp -f $Ac24/document-save-as.png . 26.174 +cp -f $De24/drive-harddisk.png . 26.175 +cp -f $Ac24/edit-clear.png . 26.176 +cp -f $Ac24/edit-copy.png . 26.177 +cp -f $Ac24/edit-cut.png . 26.178 +ln -fs list-remove.png ./edit-delete.png 26.179 +cp -f $Ac24/edit-find.png . 26.180 +cp -f $Ac24/edit-find-replace.png . 26.181 +cp -f $Ac24/edit-paste.png . 26.182 +cp -f $Ac24/edit-redo.png ./edit-redo-ltr.png 26.183 +cp -f $stuff/24/edit-redo-rtl.png . 26.184 +cp -f $Ac24/edit-select-all.png . 26.185 +cp -f $Ac24/edit-undo.png ./edit-undo-ltr.png 26.186 +cp -f $stuff/24/edit-undo-rtl.png . 26.187 +cp -f $Pl24/folder.png . 26.188 +cp -f $Pl24/folder-remote.png . 26.189 +cp -f $Ac24/format-indent-less.png ./format-indent-less-ltr.png 26.190 +cp -f $stuff/24/format-indent-less-rtl.png . 26.191 +cp -f $Ac24/format-indent-more.png ./format-indent-more-ltr.png 26.192 +cp -f $stuff/24/format-indent-more-rtl.png . 26.193 +cp -f $Ac24/format-justify-center.png . 26.194 +cp -f $Ac24/format-justify-fill.png . 26.195 +cp -f $Ac24/format-justify-left.png . 26.196 +cp -f $Ac24/format-justify-right.png . 26.197 +cp -f $Ac24/format-text-bold.png . 26.198 +cp -f $Ac24/format-text-italic.png . 26.199 +cp -f $Ac24/format-text-strikethrough.png . 26.200 +cp -f $Ac24/format-text-underline.png . 26.201 +cp -f $Ac24/go-bottom.png . 26.202 +cp -f $Ac24/go-down.png . 26.203 +cp -f $Ac24/go-first.png ./go-first-ltr.png 26.204 +ln -fs go-last-ltr.png ./go-first-rtl.png 26.205 +cp -f $Ac24/go-home.png . 26.206 +cp -f $Ac24/go-jump.png ./go-jump-ltr.png 26.207 +cp -f $stuff/24/go-jump-rtl.png . 26.208 +cp -f $Ac24/go-last.png ./go-last-ltr.png 26.209 +ln -fs go-first-ltr.png ./go-last-rtl.png 26.210 +cp -f $Ac24/go-next.png ./go-next-ltr.png 26.211 +ln -fs go-previous-ltr.png ./go-next-rtl.png 26.212 +cp -f $Ac24/go-previous.png ./go-previous-ltr.png 26.213 +ln -fs go-next-ltr.png ./go-previous-rtl.png 26.214 +cp -f $Ac24/go-top.png . 26.215 +cp -f $Ac24/go-up.png . 26.216 +#gtk-caps-lock-warning.png 26.217 +#gtk-color-picker.png 26.218 +cp -f $St24/stock_connect.png ./gtk-connect.png 26.219 +#gtk-convert.png 26.220 +cp -f $St24/stock_disconnect.png ./gtk-disconnect.png 26.221 +cp -f $Ac24/gtk-edit.png . 26.222 +cp -f $Mi24/font-x-generic.png ./gtk-font.png 26.223 +#gtk-index.png 26.224 +#gtk-orientation-landscape.png 26.225 +#gtk-orientation-portrait.png 26.226 +#gtk-orientation-reverse-landscape.png 26.227 +#gtk-orientation-reverse-portrait.png 26.228 +cp -f $Ac24/document-page-setup.png ./gtk-page-setup.png 26.229 +cp -f $Ca24/preferences-desktop.png ./gtk-preferences.png 26.230 +#gtk-select-color.png 26.231 +ln -fs gtk-font.png ./gtk-select-font.png 26.232 +#gtk-undelete-ltr.png 26.233 +#gtk-undelete-rtl.png 26.234 +cp -f $Ac24/help-about.png . 26.235 +cp -f $Ac24/help-contents.png . 26.236 +cp -f $Sa24/image-missing.png . 26.237 +cp -f $Ac24/list-add.png . 26.238 +cp -f $Ac24/list-remove.png . 26.239 +cp -f $De24/media-floppy.png . 26.240 +cp -f $De24/media-optical.png . 26.241 +cp -f $Ac24/media-playback-pause.png . 26.242 +cp -f $Ac24/media-playback-start.png ./media-playback-start-ltr.png 26.243 +cp -f $stuff/24/media-playback-start-rtl.png . 26.244 +cp -f $Ac24/media-playback-stop.png . 26.245 +cp -f $Ac24/media-record.png . 26.246 +cp -f $stuff/24/media-seek-backward-ltr.png . 26.247 +ln -fs media-seek-forward-ltr.png ./media-seek-backward-rtl.png 26.248 +cp -f $stuff/24/media-seek-forward-ltr.png . 26.249 +ln -fs media-seek-backward-ltr.png ./media-seek-forward-rtl.png 26.250 +cp -f $Ac24/media-skip-backward.png ./media-skip-backward-ltr.png 26.251 +ln -fs media-skip-forward-ltr.png ./media-skip-backward-rtl.png 26.252 +cp -f $Ac24/media-skip-forward.png ./media-skip-forward-ltr.png 26.253 +ln -fs media-skip-backward-ltr.png ./media-skip-forward-rtl.png 26.254 +cp -f $Sa24/network-idle.png . 26.255 +#printer-error.png 26.256 +#printer-info.png 26.257 +#printer-paused.png 26.258 +#printer-warning.png 26.259 +cp -f $Ac24/process-stop.png . 26.260 +cp -f $Ac24/system-run.png . 26.261 +cp -f $Mi24/text-plain.png ./text-x-generic.png 26.262 +cp -f $Ac24/tools-check-spelling.png . 26.263 +cp -f $Pl24/user-desktop.png . 26.264 +cp -f $Pl24/user-home.png . 26.265 +cp -f $Ac24/view-fullscreen.png . 26.266 +cp -f $Ac24/view-refresh.png . 26.267 +cp -f $Ac24/view-restore.png . 26.268 +cp -f $Ac24/view-sort-ascending.png . 26.269 +cp -f $Ac24/view-sort-descending.png . 26.270 +cp -f $Ac24/window-close.png . 26.271 +cp -f $Ac24/zoom-fit.png zoom-fit-best.png 26.272 +cp -f $Ac24/zoom-in.png . 26.273 +cp -f $Ac24/zoom-original.png . 26.274 +cp -f $Ac24/zoom-out.png . 26.275 + 26.276 + 26.277 +cd $src/gtk/stock-icons/32 26.278 + 26.279 +#gtk-dnd-multiple.png 26.280 +#gtk-dnd.png 26.281 + 26.282 + 26.283 +St48=$F/status/48 26.284 + 26.285 +cd $src/gtk/stock-icons/48 26.286 + 26.287 +cp -f $St48/dialog-error.png . 26.288 +cp -f $St48/dialog-information.png . 26.289 +cp -f $St48/dialog-password.png . 26.290 +cp -f $St48/dialog-question.png . 26.291 +cp -f $St48/dialog-warning.png . 26.292 + 26.293 +for folder in 16 20 24 32 48; do 26.294 + cd $src/gtk/stock-icons/$folder 26.295 + optipng -quiet -o7 -zm1-9 ./* 26.296 +done