From: Evan Battaglia Date: Thu, 29 Sep 2005 06:15:44 +0000 (+0000) Subject: all icons inline X-Git-Url: https://git.street.me.uk/andy/viking.git/commitdiff_plain/4bd4525613f536f1971d812667082a83fd1b5db2?ds=sidebyside;hp=a527cfffbe6498faf30dd99710e0221d9a1e97fe all icons inline --- diff --git a/src/addtr-18.png b/src/addtr-18.png deleted file mode 100644 index 253eb110..00000000 Binary files a/src/addtr-18.png and /dev/null differ diff --git a/src/addwp-18.png b/src/addwp-18.png deleted file mode 100644 index 1fbda44c..00000000 Binary files a/src/addwp-18.png and /dev/null differ diff --git a/src/edtr-18.png b/src/edtr-18.png deleted file mode 100644 index b76cb740..00000000 Binary files a/src/edtr-18.png and /dev/null differ diff --git a/src/edwp-18.png b/src/edwp-18.png deleted file mode 100644 index e5276e6b..00000000 Binary files a/src/edwp-18.png and /dev/null differ diff --git a/src/geomove-18.png b/src/geomove-18.png deleted file mode 100644 index 25f9e10f..00000000 Binary files a/src/geomove-18.png and /dev/null differ diff --git a/src/geozoom-18.png b/src/geozoom-18.png deleted file mode 100644 index 90e281a3..00000000 Binary files a/src/geozoom-18.png and /dev/null differ diff --git a/src/icons/addtr_18.png b/src/icons/addtr_18.png new file mode 100644 index 00000000..253eb110 Binary files /dev/null and b/src/icons/addtr_18.png differ diff --git a/src/icons/addtr_18.png.h b/src/icons/addtr_18.png.h new file mode 100644 index 00000000..72848243 --- /dev/null +++ b/src/icons/addtr_18.png.h @@ -0,0 +1,28 @@ +/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ + +static const GdkPixdata addtr_18 = { + 0x47646b50, /* Pixbuf magic: 'GdkP' */ + 24 + 407, /* header length + pixel_data length */ + 0x2010002, /* pixdata_type */ + 72, /* rowstride */ + 18, /* width */ + 18, /* height */ + /* pixel_data: */ + "\237\0\0\0\0\203\0\0\0\377\205\0\0\0\0\204/OO\377\206\0\0\0\0\3\0\0\0" + "\377\340\377\377\377\0\0\0\377\205\0\0\0\0\1/OO\377\2022\3152\377\1/" + "OO\377\206\0\0\0\0\203\0\0\0\377\205\0\0\0\0\1/OO\377\2022\3152\377\1" + "/OO\377\207\0\0\0\0\1\20N\213\377\203\0\0\0\0\204/OO\377\2022\3152\377" + "\204/OO\377\204\0\0\0\0\1\20N\213\377\203\0\0\0\0\1/OO\377\2102\3152" + "\377\1/OO\377\204\0\0\0\0\1\20N\213\377\203\0\0\0\0\1/OO\377\2102\315" + "2\377\1/OO\377\204\0\0\0\0\1\20N\213\377\203\0\0\0\0\204/OO\377\2022" + "\3152\377\204/OO\377\203\0\0\0\0\203\0\0\0\377\205\0\0\0\0\1/OO\377\202" + "2\3152\377\1/OO\377\206\0\0\0\0\3\0\0\0\377\340\377\377\377\0\0\0\377" + "\205\0\0\0\0\1/OO\377\2022\3152\377\1/OO\377\205\0\0\0\0\1\20N\213\377" + "\203\0\0\0\377\205\0\0\0\0\204/OO\377\204\0\0\0\0\1\20N\213\377\215\0" + "\0\0\0\203\0\0\0\377\1\20N\213\377\216\0\0\0\0\3\0\0\0\377\340\377\377" + "\377\0\0\0\377\215\0\0\0\0\202\20N\213\377\203\0\0\0\377\210\0\0\0\0" + "\203\0\0\0\377\202\20N\213\377\215\0\0\0\0\3\0\0\0\377\340\377\377\377" + "\0\0\0\377\217\0\0\0\0\203\0\0\0\377\217\0\0\0\0", +}; + + diff --git a/src/icons/addwp_18.png b/src/icons/addwp_18.png new file mode 100644 index 00000000..1fbda44c Binary files /dev/null and b/src/icons/addwp_18.png differ diff --git a/src/icons/addwp_18.png.h b/src/icons/addwp_18.png.h new file mode 100644 index 00000000..199f8949 --- /dev/null +++ b/src/icons/addwp_18.png.h @@ -0,0 +1,36 @@ +/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ + +static const GdkPixdata addwp_18 = { + 0x47646b50, /* Pixbuf magic: 'GdkP' */ + 24 + 536, /* header length + pixel_data length */ + 0x2010002, /* pixdata_type */ + 72, /* rowstride */ + 18, /* width */ + 18, /* height */ + /* pixel_data: */ + "\207\207\316\372\0\203\0\0\0\377\220\207\316\372\0\2\0\0\0\377\36\220" + "\377\377\202\0\0\0\377\216\207\316\372\0\1\0\0\0\377\203\36\220\377\377" + "\202\0\0\0\377\207\207\316\372\0\204/OO\377\2\207\316\372\0\0\0\0\377" + "\205\36\220\377\377\1\0\0\0\377\206\207\316\372\0\1/OO\377\2022\3152" + "\377\3/OO\377\207\316\372\0\0\0\0\377\206\36\220\377\377\1\0\0\0\377" + "\205\207\316\372\0\1/OO\377\2022\3152\377\2/OO\377\207\316\372\0\203" + "\0\0\0\377\205\36\220\377\377\2\0\0\0\377\36\220\377\0\204/OO\377\202" + "2\3152\377\204/OO\377\1\207\316\372\0\202\0\0\0\377\203\36\220\377\377" + "\3\0\0\0\377\0\0\0\0/OO\377\2102\3152\377\1/OO\377\202\207\316\372\0" + "\1\0\0\0\0\202\0\0\0\377\202\36\220\377\377\2\0\0\0\377/OO\377\2102\315" + "2\377\1/OO\377\202\207\316\372\0\203\0\0\0\0\3\0\0\0\377\36\220\377\377" + "\0\0\0\377\204/OO\377\2022\3152\377\204/OO\377\203\207\316\372\0\1\0" + "\0\0\0\202\36\220\377\0\202\0\0\0\377\203\207\316\372\0\1/OO\377\202" + "2\3152\377\3/OO\377\207\316\372\0\0\0\0\377\205\207\316\372\0\202\0\0" + "\0\0\2\207\316\372\0\0\0\0\377\203\207\316\372\0\1/OO\377\2022\3152\377" + "\3/OO\377\207\316\372\0\0\0\0\377\210\207\316\372\0\1\0\0\0\377\203\207" + "\316\372\0\204/OO\377\2\207\316\372\0\0\0\0\377\221\207\316\372\0\1\0" + "\0\0\377\221\207\316\372\0\1\0\0\0\377\214\207\316\372\0\217\0\0\0\377" + "\203\207\316\372\0\2\356\356\340\377\0\0\0\377\203\356\356\340\377\1" + "\0\0\0\377\203\356\356\340\377\1\0\0\0\377\203\356\356\340\377\2\0\0" + "\0\377\356\356\340\377\203\207\316\372\0\1\0\0\0\377\203\356\356\340" + "\377\1\0\0\0\377\203\356\356\340\377\1\0\0\0\377\203\356\356\340\377" + "\1\0\0\0\377\202\356\356\340\377", +}; + + diff --git a/src/icons/compile.sh b/src/icons/compile.sh new file mode 100644 index 00000000..6c727950 --- /dev/null +++ b/src/icons/compile.sh @@ -0,0 +1,3 @@ +#!/bin/bash +for i in *.png; do gdk-pixbuf-csource --name=${i%.png} --struct $i > $i.h; done +ls *.h|sed 's/\(.*\)/#include "icons\/\1"/g' > ../icons.h diff --git a/src/icons/edtr_18.png b/src/icons/edtr_18.png new file mode 100644 index 00000000..b76cb740 Binary files /dev/null and b/src/icons/edtr_18.png differ diff --git a/src/icons/edtr_18.png.h b/src/icons/edtr_18.png.h new file mode 100644 index 00000000..813217bc --- /dev/null +++ b/src/icons/edtr_18.png.h @@ -0,0 +1,39 @@ +/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ + +static const GdkPixdata edtr_18 = { + 0x47646b50, /* Pixbuf magic: 'GdkP' */ + 24 + 641, /* header length + pixel_data length */ + 0x2010002, /* pixdata_type */ + 72, /* rowstride */ + 18, /* width */ + 18, /* height */ + /* pixel_data: */ + "\205\0\0\0\0\2\30t\315\0\34\206\356\0\203\0\0\0\377\214\0\0\0\0\5\30" + "t\315\0\34\206\356\0\0\0\0\377c\270\377\377\0\0\0\377\204\0\0\0\0\203" + "\0\0\0\377\202\0\0\0\0\205\30t\315\0\5\34\206\356\0\0\0\0\377c\270\377" + "\377\0\0\0\377\30t\315\0\203\0\0\0\0\3\0\0\0\377\340\377\377\377\0\0" + "\0\377\202\0\0\0\0\204\30t\315\0\202\34\206\356\0\3\0\0\0\377c\270\377" + "\377\0\0\0\377\202\30t\315\0\1\0\0\0\0\204\0\0\0\377\202\0\0\0\0\203" + "\30t\315\0\202\34\206\356\0\4\0\0\0\3776d\213\377\377\377\377\3776d\213" + "\377\203\0\0\0\377\3c\270\377\377\0\0\0\377\20N\213\377\203\0\0\0\0\202" + "\30t\315\0\202\34\206\356\0\4\0\0\0\3776d\213\377\377\377\377\3776d\213" + "\377\204c\270\377\377\3\0\0\0\377\0\0\0\0\20N\213\377\203\0\0\0\0\1\34" + "\206\356\0\203\0\0\0\377\3""6d\213\377\377\377\377\3776d\213\377\202" + "c\270\377\377\203\0\0\0\377\202\0\0\0\0\1\20N\213\377\203\0\0\0\0\6\0" + "\0\0\377c\270\377\377O\224\315\377c\270\377\377\377\377\377\3776d\213" + "\377\202c\270\377\377\2\0\0\0\377/OO\0\204\0\0\0\0\1\20N\213\377\203" + "\0\0\0\0\204\0\0\0\377\1""6d\213\377\202c\270\377\377\1\0\0\0\377\203" + "\30t\315\0\202\0\0\0\0\203\0\0\0\377\202\0\0\0\0\1\0\0\0\377\202\0\0" + "\0\0\4/OO\0\0\0\0\377c\270\377\377\0\0\0\377\203\30t\315\0\203\0\0\0" + "\0\3\0\0\0\377\340\377\377\377\0\0\0\377\205\0\0\0\0\4/OO\0\0\0\0\377" + "c\270\377\377\0\0\0\377\202\30t\315\0\203\0\0\0\0\1\20N\213\377\203\0" + "\0\0\377\205\0\0\0\0\4/OO\0\0\0\0\377c\270\377\377\0\0\0\377\204\0\0" + "\0\0\1\20N\213\377\211\0\0\0\0\4\0\0\0\377c\270\377\377\0\0\0\377\0\0" + "\0\0\203\0\0\0\377\1\20N\213\377\213\0\0\0\0\1\0\0\0\377\202\0\0\0\0" + "\3\0\0\0\377\340\377\377\377\0\0\0\377\215\0\0\0\0\202\20N\213\377\203" + "\0\0\0\377\210\0\0\0\0\203\0\0\0\377\202\20N\213\377\215\0\0\0\0\3\0" + "\0\0\377\340\377\377\377\0\0\0\377\217\0\0\0\0\203\0\0\0\377\217\0\0" + "\0\0", +}; + + diff --git a/src/icons/edwp_18.png b/src/icons/edwp_18.png new file mode 100644 index 00000000..e5276e6b Binary files /dev/null and b/src/icons/edwp_18.png differ diff --git a/src/icons/edwp_18.png.h b/src/icons/edwp_18.png.h new file mode 100644 index 00000000..342d86fc --- /dev/null +++ b/src/icons/edwp_18.png.h @@ -0,0 +1,38 @@ +/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ + +static const GdkPixdata edwp_18 = { + 0x47646b50, /* Pixbuf magic: 'GdkP' */ + 24 + 613, /* header length + pixel_data length */ + 0x2010002, /* pixdata_type */ + 72, /* rowstride */ + 18, /* width */ + 18, /* height */ + /* pixel_data: */ + "\207\0\0\0\0\203\0\0\0\377\220\0\0\0\0\2\0\0\0\377\36\220\377\377\202" + "\0\0\0\377\216\0\0\0\0\1\0\0\0\377\203\36\220\377\377\202\0\0\0\377\214" + "\0\0\0\0\1\0\0\0\377\205\36\220\377\377\1\0\0\0\377\206\0\0\0\0\203\0" + "\0\0\377\202\0\0\0\0\1\0\0\0\377\206\36\220\377\377\1\0\0\0\377\206\0" + "\0\0\0\4\0\0\0\377c\270\377\362\0\0\0\377\0\0\0\0\203\0\0\0\377\205\36" + "\220\377\377\1\0\0\0\377\205\0\0\0\0\5\0\0\0\377c\270\377\377\0\0\0\377" + "\0\0\0\0\0\0\0\377\202\0\0\0\0\202\0\0\0\377\203\36\220\377\377\3\0\0" + "\0\377\0\0\0\0\0\0\0\377\203\0\0\0\0\5\0\0\0\377c\270\377\377\0\0\0\377" + "\0\0\0\0\0\0\0\377\204\0\0\0\0\202\0\0\0\377\202\36\220\377\377\10\0" + "\0\0\377\0\0\0\376\0\0\0\374\0\0\0\357\0\0\0\3736d\213\377\377\377\377" + "\3776d\213\376\202\0\0\0\377\206\0\0\0\0\2\0\0\0\377\36\220\377\377\202" + "\0\0\0\377\1c\270\377\373\203c\270\377\377\4""6d\213\377\377\377\377" + "\3776d\213\377\0\0\0\377\207\0\0\0\0\202\0\0\0\377\1\0\0\0\0\203\0\0" + "\0\377\5c\270\377\371c\270\377\3776d\213\377\377\377\377\377-St\377\203" + "\0\0\0\377\205\0\0\0\0\1\0\0\0\377\204\0\0\0\0\1\0\0\0\377\202c\270\377" + "\377\6""6d\213\377\377\377\377\377c\270\377\377O\224\315\377c\270\377" + "\360\0\0\0\377\204\0\0\0\0\1\0\0\0\377\205\0\0\0\0\1\0\0\0\377\202c\270" + "\377\377\1(Ki\377\204\0\0\0\377\213\0\0\0\0\3\0\0\0\377c\270\377\377" + "\0\0\0\377\203\0\0\0\0\1\0\0\0\377\213\0\0\0\0\3\0\0\0\377c\270\377\377" + "\0\0\0\377\214\0\0\0\0\204\0\0\0\377\1c\270\377\377\212\0\0\0\377\203" + "\0\0\0\0\2\356\356\340\377\0\0\0\377\202\356\356\340\377\3\0\0\0\377" + "c\270\377\377\0\0\0\377\202\356\356\340\377\1\0\0\0\377\203\356\356\340" + "\377\2\0\0\0\377\356\356\340\377\203\0\0\0\0\1\0\0\0\377\203\356\356" + "\340\377\202\0\0\0\377\202\356\356\340\377\1\0\0\0\377\203\356\356\340" + "\377\1\0\0\0\377\202\356\356\340\377", +}; + + diff --git a/src/icons/geomove_18.png b/src/icons/geomove_18.png new file mode 100644 index 00000000..25f9e10f Binary files /dev/null and b/src/icons/geomove_18.png differ diff --git a/src/icons/geomove_18.png.h b/src/icons/geomove_18.png.h new file mode 100644 index 00000000..bce13d9c --- /dev/null +++ b/src/icons/geomove_18.png.h @@ -0,0 +1,42 @@ +/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ + +static const GdkPixdata geomove_18 = { + 0x47646b50, /* Pixbuf magic: 'GdkP' */ + 24 + 726, /* header length + pixel_data length */ + 0x2010002, /* pixdata_type */ + 72, /* rowstride */ + 18, /* width */ + 18, /* height */ + /* pixel_data: */ + "\1\0\0\0\0\203/OO\0\202\0\0\0\0\202/OO\0\202\0\0\0\0\202/OO\0\202\0\0" + "\0\0\203/OO\0\2\0\0\0\0/OO\0\202\276\276\276\0\1\0\0\0\0\202/OO\0\2\276" + "\276\276\0\0\0\0\0\202/OO\0\2\276\276\276\0\0\0\0\0\202/OO\0\1\276\276" + "\276\0\203\0\0\0\0\2/OO\0\276\276\276\0\204\0\0\0\0\213\0\0\0\377\2\0" + "\0\0\0/OO\0\202\0\0\0\0\3\207\316\353\0\377\377\340\0\0\0\0\377\211\377" + "\336\255\377\203\0\0\0\377\3\0\0\0\0/OO\0\0\0\0\0\202\207\316\353\0\1" + "\0\0\0\377\211\315\263\213\377\203\0\0\0\377\202/OO\0\1\0\0\0\0\202\207" + "\316\353\0\1\0\0\0\377\211\213y^\377\7\0\0\0\377\213y^\377\0\0\0\377" + "/OO\0\276\276\276\0\0\0\0\0\0\0\0\377\202\207\316\353\0\214\0\0\0\377" + "\2/OO\0\0\0\0\0\203\0\0\0\377\5O\224\315\0\0h\213\0\0\0\0\377\315\263" + "\213\377\315\205\77\377\202\315\263\213\377\1\315\205\77\377\203\315" + "\263\213\377\2\245**\377\0\0\0\377\202/OO\0\3\0\0\0\0\0\0\0\377O\224" + "\315\0\202\0h\213\0\5\0\0\0\377\315\263\213\377\315\205\77\377\315\263" + "\213\377\315\205\77\377\202\315\263\213\377\202\245**\377\20\315\263" + "\213\377\0\0\0\377\0\0\0\0\0\0\0\377\0\0\0\0\0\0\0\377O\224\315\0\0\0" + "\0\377\0h\213\0\0\0\0\377\315\263\213\377\315\205\77\377\315\263\213" + "\377\315\205\77\377\315\263\213\377\245**\377\202\315\263\213\377\1O" + "\224\315\377\211\0\0\0\377\206\245**\377\1\315\263\213\377\202O\224\315" + "\377\13\0\0\0\377/OO\0\0\0\0\377\0\0\0\0\0\0\0\377\0h\213\0\0\0\0\377" + "O\224\315\0\0\0\0\377\315\263\213\377\315\205\77\377\203\315\263\213" + "\377\2\245**\377\315\263\213\377\202O\224\315\377\5\0\0\0\377\0\0\0\0" + "/OO\0\0\0\0\0\0\0\0\377\203\0\315\0\0\3\0\0\0\377\315\263\213\377\315" + "\205\77\377\202\315\263\213\377\2\245**\377\315\263\213\377\203O\224" + "\315\377\3\0\0\0\377\0\0\0\0/OO\0\203\0\0\0\377\1\0\315\0\0\214\0\0\0" + "\377\6/OO\0\276\276\276\0\0\0\0\0\0\0\0\377\0\315\0\0\0\0\0\377\211\377" + "\336\255\377\203\0\0\0\377\1/OO\0\202\0\0\0\0\202/OO\0\1\0\0\0\377\211" + "\315\263\213\377\203\0\0\0\377\1/OO\0\204\0\0\0\0\1\0\0\0\377\211\213" + "y^\377\3\0\0\0\377\377\336\255\377\0\0\0\377\206\0\0\0\0\213\0\0\0\377" + "\1\0\0\0\0", +}; + + diff --git a/src/icons/geozoom_18.png b/src/icons/geozoom_18.png new file mode 100644 index 00000000..90e281a3 Binary files /dev/null and b/src/icons/geozoom_18.png differ diff --git a/src/icons/geozoom_18.png.h b/src/icons/geozoom_18.png.h new file mode 100644 index 00000000..b18c4c52 --- /dev/null +++ b/src/icons/geozoom_18.png.h @@ -0,0 +1,45 @@ +/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ + +static const GdkPixdata geozoom_18 = { + 0x47646b50, /* Pixbuf magic: 'GdkP' */ + 24 + 778, /* header length + pixel_data length */ + 0x2010002, /* pixdata_type */ + 72, /* rowstride */ + 18, /* width */ + 18, /* height */ + /* pixel_data: */ + "\1\0\0\0\0\203/OO\0\202\0\0\0\0\202/OO\0\202\0\0\0\0\202/OO\0\202\0\0" + "\0\0\203/OO\0\2\0\0\0\0/OO\0\202\276\276\276\0\1\0\0\0\0\205\0\0\0\377" + "\3/OO\0\276\276\276\0\0\0\0\0\202/OO\0\1\276\276\276\0\203\0\0\0\0\4" + "/OO\0\276\276\276\0\0\0\0\0\0\0\0\377\202\0\262\356\377\1\244\323\356" + "\377\202\0h\213\377\210\0\0\0\377\4\0\0\0\0/OO\0\0\0\0\0\0\0\0\377\202" + "\0\262\356\377\1\244\323\356\377\202\0h\213\377\202\0\262\356\377\1\0" + "\0\0\377\204\377\336\255\377\203\0\0\0\377\3\0\0\0\0/OO\0\0\0\0\377\202" + "\0\262\356\377\2\244\323\356\377\0h\213\377\203\0\262\356\377\1\0\0\0" + "\377\204\315\263\213\377\203\0\0\0\377\202/OO\0\2\0\0\0\377\0\262\356" + "\377\202\244\323\356\377\202\0h\213\377\3\0\262\356\377\0h\213\377\0" + "\0\0\377\204\213y^\377\7\0\0\0\377\213y^\377\0\0\0\377/OO\0\276\276\276" + "\0\0\0\0\377\0\262\356\377\202\244\323\356\377\204\0h\213\377\210\0\0" + "\0\377\3/OO\0\0\0\0\0\0\0\0\377\202\0\262\356\377\2\244\323\356\377\0" + "h\213\377\202\0\262\356\377\4\244\323\356\377\0\0\0\377\315\263\213\377" + "\315\205\77\377\203\315\263\213\377\2\245**\377\0\0\0\377\202/OO\0\2" + "\0\0\0\0\0\0\0\377\202\0\262\356\377\6\0h\213\377\0\262\356\377\244\323" + "\356\377\0\0\0\377\315\263\213\377\315\205\77\377\202\315\263\213\377" + "\202\245**\377\2\315\263\213\377\0\0\0\377\202\0\0\0\0\2\0\0\0\377\315" + "\311\311\377\205\0\0\0\377\5\315\205\77\377\315\263\213\377\315\205\77" + "\377\315\263\213\377\245**\377\202\315\263\213\377\2O\224\315\377\0\0" + "\0\377\202\0\0\0\0\3\0\0\0\377\315\311\311\377\0\0\0\377\202\0\0\0\0" + "\1\0\0\0\377\206\245**\377\1\315\263\213\377\202O\224\315\377\13\0\0" + "\0\377/OO\0\0\0\0\377\315\311\311\377\0\0\0\377\0h\213\0\0\0\0\0O\224" + "\315\0\0\0\0\377\315\263\213\377\315\205\77\377\203\315\263\213\377\2" + "\245**\377\315\263\213\377\202O\224\315\377\202\0\0\0\377\1\315\311\311" + "\377\202\0\0\0\377\203\0\315\0\0\3\0\0\0\377\315\263\213\377\315\205" + "\77\377\202\315\263\213\377\2\245**\377\315\263\213\377\203O\224\315" + "\377\202\0\0\0\377\2\315\311\311\377\0\0\0\377\202\0\0\0\0\1\0\315\0" + "\0\217\0\0\0\377\3\0\0\0\0\0\315\0\0\0\0\0\377\211\377\336\255\377\205" + "\0\0\0\377\1\0\0\0\0\202/OO\0\1\0\0\0\377\211\315\263\213\377\203\0\0" + "\0\377\1/OO\0\204\0\0\0\0\1\0\0\0\377\211\213y^\377\3\0\0\0\377\377\336" + "\255\377\0\0\0\377\206\0\0\0\0\213\0\0\0\377\1\0\0\0\0", +}; + + diff --git a/src/icons/mapdl_18.png b/src/icons/mapdl_18.png new file mode 100644 index 00000000..e80a3036 Binary files /dev/null and b/src/icons/mapdl_18.png differ diff --git a/src/icons/mapdl_18.png.h b/src/icons/mapdl_18.png.h new file mode 100644 index 00000000..d060c539 --- /dev/null +++ b/src/icons/mapdl_18.png.h @@ -0,0 +1,40 @@ +/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ + +static const GdkPixdata mapdl_18 = { + 0x47646b50, /* Pixbuf magic: 'GdkP' */ + 24 + 675, /* header length + pixel_data length */ + 0x2010002, /* pixdata_type */ + 72, /* rowstride */ + 18, /* width */ + 18, /* height */ + /* pixel_data: */ + "\1\0\0\0\0\203/OO\0\202\0\0\0\0\202/OO\0\202\0\0\0\0\202/OO\0\202\0\0" + "\0\0\203/OO\0\2\0\0\0\0/OO\0\202\276\276\276\0\206\0\0\0\0\3/OO\0\276" + "\276\276\0\0\0\0\0\202/OO\0\1\276\276\276\0\203\0\0\0\0\2/OO\0\276\276" + "\276\0\202\0\0\0\0\202\0\262\356\0\213\0\0\0\377\2\0\0\0\0/OO\0\202\0" + "\0\0\0\202\0\262\356\0\1\0\0\0\377\211\377\336\255\377\203\0\0\0\377" + "\3\0\0\0\0/OO\0\0\0\0\0\202\0\262\356\0\1\0\0\0\377\211\315\263\213\377" + "\203\0\0\0\377\202/OO\0\4\0\0\0\0\0\262\356\0\244\323\356\0\0\0\0\377" + "\211\213y^\377\7\0\0\0\377\213y^\377\0\0\0\377/OO\0\276\276\276\0\0\0" + "\0\0\0\262\356\0\202\244\323\356\0\214\0\0\0\377\1/OO\0\202\0\0\0\0\202" + "\0\262\356\0\5\244\323\356\0\0h\213\0\0\0\0\377\377\336\255\377\315\205" + "\77\377\202\0\377\177\377\1\315\205\77\377\203\377\336\255\377\4\245" + "**\377\0\0\0\377/OO\0\0\0\0\377\202\0\0\0\0\202\0\262\356\0\6\0h\213" + "\0\0\0\0\377\377\336\255\377\315\205\77\377\0\377\177\377\315\205\77" + "\377\202\377\336\255\377\202\245**\377\1\377\336\255\377\207\0\0\0\377" + "\10\0\0\0\0\0\0\0\377\377\336\255\377\315\205\77\377\0\377\177\377\315" + "\205\77\377\377\336\255\377\245**\377\202\377\336\255\377\2O\224\315" + "\377\0\0\0\377\203\0\0\0\0\1\315\311\311\0\203\0\0\0\0\1\0\0\0\377\206" + "\245**\377\1\377\336\255\377\202O\224\315\377\207\0\0\0\377\4O\224\315" + "\0\0\0\0\377\377\336\255\377\315\205\77\377\203\377\336\255\377\2\245" + "**\377\377\336\255\377\202O\224\315\377\3\0\0\0\377\0\0\0\0\315\311\311" + "\0\202\0\0\0\0\1\0\0\0\377\202\0\315\0\0\3\0\0\0\377\377\336\255\377" + "\315\205\77\377\202\377\336\255\377\2\245**\377\377\336\255\377\203O" + "\224\315\377\3\0\0\0\377\0\0\0\0\315\311\311\0\203\0\0\0\0\1\0\315\0" + "\0\214\0\0\0\377\204\0\0\0\0\2\0\315\0\0\0\0\0\377\211\377\336\255\377" + "\203\0\0\0\377\203\0\0\0\0\202/OO\0\1\0\0\0\377\211\315\263\213\377\203" + "\0\0\0\377\1/OO\0\204\0\0\0\0\1\0\0\0\377\211\213y^\377\3\0\0\0\377\213" + "y^\377\0\0\0\377\206\0\0\0\0\213\0\0\0\377\1\0\0\0\0", +}; + + diff --git a/src/icons/ruler_18.png b/src/icons/ruler_18.png new file mode 100644 index 00000000..c983901d Binary files /dev/null and b/src/icons/ruler_18.png differ diff --git a/src/icons/ruler_18.png.h b/src/icons/ruler_18.png.h new file mode 100644 index 00000000..1578fe37 --- /dev/null +++ b/src/icons/ruler_18.png.h @@ -0,0 +1,39 @@ +/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ + +static const GdkPixdata ruler_18 = { + 0x47646b50, /* Pixbuf magic: 'GdkP' */ + 24 + 618, /* header length + pixel_data length */ + 0x2010002, /* pixdata_type */ + 72, /* rowstride */ + 18, /* width */ + 18, /* height */ + /* pixel_data: */ + "\216\0\0\0\0\1\0\0\0\377\203\213~f\0\212\0\0\0\0\203\207\316\372\0\3" + "\0\0\0\377\356\330\256\377\0\0\0\377\202\213~f\0\211\0\0\0\0\202\207" + "\316\372\0\2\335\357\377\0\0\0\0\377\203\356\330\256\377\2\0\0\0\377" + "\213~f\0\210\0\0\0\0\202\207\316\372\0\4\335\357\377\0\0\0\0\377\356" + "\330\256\377\0\0\0\377\202\356\330\256\377\2\377\360\324\377\0\0\0\377" + "\206\0\0\0\0\5(\0\34\0\0\0\0\0\207\316\372\0\335\357\377\0\0\0\0\377" + "\203\356\330\256\377\3\0\0\0\377\377\360\324\377\0\0\0\377\207\0\0\0" + "\0\6(\0\34\0\0\0\0\0\207\316\372\0\0\0\0\377\356\330\256\377\0\0\0\377" + "\202\356\330\256\377\3\377\360\324\377\0\0\0\377F\202\264\0\207\0\0\0" + "\0\3(\0\34\0\0\0\0\0\0\0\0\377\204\356\330\256\377\4\377\360\324\377" + "\0\0\0\377F\202\264\0R\230\323\0\206\0\0\0\0\5(\0\34\0\0\0\0\0\0\0\0" + "\377\356\330\256\377\0\0\0\377\202\356\330\256\377\2\377\360\324\377" + "\0\0\0\377\202F\202\264\0\1R\230\323\0\205\0\0\0\0\3(\0\34\0\0\0\0\0" + "\0\0\0\377\203\356\330\256\377\3\0\0\0\377\377\360\324\377\0\0\0\377" + "\202F\202\264\0\1R\230\323\0\205\0\0\0\0\5(\0\34\0\0\0\0\0\0\0\0\377" + "\356\330\256\377\0\0\0\377\202\356\330\256\377\3\377\360\324\377\0\0" + "\0\377F\202\264\0\202R\230\323\0\205\0\0\0\0\3(\0\34\0\0\0\0\0\0\0\0" + "\377\204\356\330\256\377\2\377\360\324\377\0\0\0\377\210\0\0\0\0\202" + "(\0\34\0\3\0\0\0\377\356\330\256\377\0\0\0\377\202\356\330\256\377\2" + "\377\360\324\377\0\0\0\377\212\0\0\0\0\1\0\0\0\377\203\356\330\256\377" + "\3\0\0\0\377\377\360\324\377\0\0\0\377\212\0\0\0\0\3\0\0\0\377\356\330" + "\256\377\0\0\0\377\202\356\330\256\377\2\377\360\324\377\0\0\0\377\212" + "\0\0\0\0\1\0\0\0\377\204\356\330\256\377\2\377\360\324\377\0\0\0\377" + "\213\0\0\0\0\2\213~f\0\0\0\0\377\202\356\330\256\377\2\377\360\324\377" + "\0\0\0\377\214\0\0\0\0\202\213~f\0\3\0\0\0\377\377\360\324\377\0\0\0" + "\377\215\0\0\0\0\203\213~f\0\1\0\0\0\377\216\0\0\0\0", +}; + + diff --git a/src/icons/showpic_18.png b/src/icons/showpic_18.png new file mode 100644 index 00000000..fa9dcbef Binary files /dev/null and b/src/icons/showpic_18.png differ diff --git a/src/icons/showpic_18.png.h b/src/icons/showpic_18.png.h new file mode 100644 index 00000000..e48cd017 --- /dev/null +++ b/src/icons/showpic_18.png.h @@ -0,0 +1,38 @@ +/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ + +static const GdkPixdata showpic_18 = { + 0x47646b50, /* Pixbuf magic: 'GdkP' */ + 24 + 653, /* header length + pixel_data length */ + 0x2010002, /* pixdata_type */ + 72, /* rowstride */ + 18, /* width */ + 18, /* height */ + /* pixel_data: */ + "\1\0\0\0\0\203/OO\377\202\0\0\0\0\202/OO\377\202\0\0\0\0\202/OO\377\202" + "\0\0\0\0\203/OO\377\2\0\0\0\0/OO\377\202\276\276\276\377\1\0\0\0\377" + "\202/OO\377\2\276\276\276\377\0\0\0\377\202/OO\377\2\276\276\276\377" + "\0\0\0\377\202/OO\377\1\276\276\276\377\203\0\0\0\377\2/OO\377\276\276" + "\276\377\220\0\0\0\377\1/OO\377\202\0\0\0\377\1\207\316\353\377\204\377" + "\377\340\377\207\207\316\353\377\1/OO\377\202\0\0\0\377\3\0\0\0\0/OO" + "\377\0\0\0\377\202\207\316\353\377\202\377\377\340\377\210\207\316\353" + "\377\6/OO\377\0\0\0\377\0\0\0\0/OO\0/OO\377\0\0\0\377\214\207\316\353" + "\377\6/OO\377\0\0\0\377\0\0\0\0/OO\377\276\276\276\377\0\0\0\377\206" + "\207\316\353\377\2O\224\315\377\0h\213\377\204\207\316\353\377\1/OO\377" + "\202\0\0\0\377\1/OO\377\202\0\0\0\377\202\207\316\353\377\1O\224\315" + "\377\203\0h\213\377\1O\224\315\377\202\0h\213\377\203\207\316\353\377" + "\1/OO\377\202\0\0\0\377\5/OO\0/OO\377\0\0\0\377\0h\213\377O\224\315\377" + "\203\0h\213\377\202O\224\315\377\205\0h\213\377\2/OO\377\0\0\0\377\202" + "\0\0\0\0\2/OO\377\0\0\0\377\202O\224\315\377\202\0h\213\377\204O\224" + "\315\377\204\0h\213\377\6/OO\377\0\0\0\377\0\0\0\0/OO\377\276\276\276" + "\377\0\0\0\377\203\0h\213\377\203O\224\315\377\206\0h\213\377\1/OO\377" + "\202\0\0\0\377\1/OO\377\202\0\0\0\377\202\0h\213\377\202O\224\315\377" + "\210\0\315\0\377\1/OO\377\202\0\0\0\377\3\0\0\0\0/OO\377\0\0\0\377\210" + "\0\315\0\377\204\0\237\0\377\2/OO\377\0\0\0\377\202\0\0\0\0\2/OO\377" + "\0\0\0\377\206\0\315\0\377\206\0\237\0\377\6/OO\377\0\0\0\377\0\0\0\0" + "/OO\377\276\276\276\377\0\0\0\377\204\0\315\0\377\210\0\237\0\377\1/" + "OO\377\202\0\0\0\377\1/OO\377\202\0\0\0\377\215/OO\377\202\0\0\0\377" + "\1/OO\377\221\0\0\0\377\1\0\0\0\0\203\0\0\0\377\202\0\0\0\0\202\0\0\0" + "\377\202\0\0\0\0\202\0\0\0\377\202\0\0\0\0\203\0\0\0\377\1\0\0\0\0", +}; + + diff --git a/src/icons/zoom_18.png b/src/icons/zoom_18.png new file mode 100644 index 00000000..a69b95ba Binary files /dev/null and b/src/icons/zoom_18.png differ diff --git a/src/icons/zoom_18.png.h b/src/icons/zoom_18.png.h new file mode 100644 index 00000000..7fbf66f2 --- /dev/null +++ b/src/icons/zoom_18.png.h @@ -0,0 +1,35 @@ +/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ + +static const GdkPixdata zoom_18 = { + 0x47646b50, /* Pixbuf magic: 'GdkP' */ + 24 + 510, /* header length + pixel_data length */ + 0x2010002, /* pixdata_type */ + 72, /* rowstride */ + 18, /* width */ + 18, /* height */ + /* pixel_data: */ + "\211\0\0\0\0\207\0\0\0\377\212\0\0\0\0\202\0\0\0\377\205\207\316\372" + "\377\202\0\0\0\377\210\0\0\0\0\202\0\0\0\377\202\207\316\372\377\5\335" + "\357\377\377\377\377\377\377\304\342\377\377\207\316\372\377F\202\264" + "\377\202\0\0\0\377\207\0\0\0\0\1\0\0\0\377\202\207\316\372\377\1\335" + "\357\377\377\203\304\342\377\377\1\207\316\372\377\202F\202\264\377\1" + "\0\0\0\377\206\0\0\0\0\4(\0\34\0\0\0\0\377\207\316\372\377\335\357\377" + "\377\203\304\342\377\377\1\207\316\372\377\203F\202\264\377\1\0\0\0\377" + "\206\0\0\0\0\4(\0\34\0\0\0\0\377\207\316\372\377\335\357\377\377\202" + "\304\342\377\377\1\207\316\372\377\204F\202\264\377\1\0\0\0\377\206\0" + "\0\0\0\3(\0\34\0\0\0\0\377\207\316\372\377\202\304\342\377\377\1\207" + "\316\372\377\204F\202\264\377\2R\230\323\377\0\0\0\377\205\0\0\0\0\3" + "(\0\34\0\0\0\0\0\0\0\0\377\203\207\316\372\377\205F\202\264\377\2R\230" + "\323\377\0\0\0\377\204\0\0\0\0\1(\0\34\0\202\0\0\0\0\202\0\0\0\377\206" + "F\202\264\377\1R\230\323\377\202\0\0\0\377\203\0\0\0\0\1(\0\34\0\202" + "\0\0\0\0\2\0\0\0\377\335\357\377\377\202\0\0\0\377\203F\202\264\377\202" + "R\230\323\377\202\0\0\0\377\203\0\0\0\0\1(\0\34\0\202\0\0\0\0\2\0\0\0" + "\377\335\357\377\377\211\0\0\0\377\203\0\0\0\0\202(\0\34\0\3\0\0\0\0" + "\0\0\0\377\335\357\377\377\203\0\0\0\377\213\0\0\0\0\3(\0\34\0\0\0\0" + "\377\335\357\377\377\203\0\0\0\377\214\0\0\0\0\2\0\0\0\377\335\357\377" + "\377\203\0\0\0\377\214\0\0\0\0\2\0\0\0\377\335\357\377\377\203\0\0\0" + "\377\215\0\0\0\0\1\335\357\377\377\203\0\0\0\377\215\0\0\0\0\2\335\357" + "\377\0\0\0\0\0\202\0\0\0\377\240\0\0\0\0", +}; + + diff --git a/src/mapdl-18.png b/src/mapdl-18.png deleted file mode 100644 index e80a3036..00000000 Binary files a/src/mapdl-18.png and /dev/null differ diff --git a/src/ruler-18.png b/src/ruler-18.png deleted file mode 100644 index c983901d..00000000 Binary files a/src/ruler-18.png and /dev/null differ diff --git a/src/showpic-18.png b/src/showpic-18.png deleted file mode 100644 index fa9dcbef..00000000 Binary files a/src/showpic-18.png and /dev/null differ diff --git a/src/vikwindow.c b/src/vikwindow.c index b995b553..7ddb95a6 100644 --- a/src/vikwindow.c +++ b/src/vikwindow.c @@ -1224,20 +1224,21 @@ static void window_create_ui( VikWindow *window ) } +#include "icons.h" static struct { - gchar *fn[3]; + const GdkPixdata *data; gchar *stock_id; } stock_icons[] = { - { { NULL, "addtr-18.png", NULL }, "Create Track" }, - { { NULL, "edtr-18.png", NULL }, "Edit Trackpoint" }, - { { NULL, "addwp-18.png", NULL }, "Create Waypoint" }, - { { NULL, "edwp-18.png", NULL }, "Edit Waypoint" }, - { { NULL, "zoom-18.png", NULL }, "vik-icon-zoom" }, - { { NULL, "ruler-18.png", NULL }, "vik-icon-ruler" }, - { { NULL, "geozoom-18.png", NULL }, "Georef Zoom Tool" }, - { { NULL, "geomove-18.png", NULL }, "Georef Move Map" }, - { { NULL, "mapdl-18.png", NULL }, "Maps Download" }, - { { NULL, "showpic-18.png", NULL }, "Show Picture" }, + { &addtr_18, "Create Track" }, + { &edtr_18, "Edit Trackpoint" }, + { &addwp_18, "Create Waypoint" }, + { &edwp_18, "Edit Waypoint" }, + { &zoom_18, "vik-icon-zoom" }, + { &ruler_18, "vik-icon-ruler" }, + { &geozoom_18, "Georef Zoom Tool" }, + { &geomove_18, "Georef Move Map" }, + { &mapdl_18, "Maps Download" }, + { &showpic_18, "Show Picture" }, }; @@ -1247,27 +1248,11 @@ static void register_vik_icons (GtkIconFactory *icon_factory) { GtkIconSet *icon_set; - GtkIconSource *icon_source; gint i; - gchar cwd[128]; - getcwd(cwd, sizeof(cwd)); for (i = 0; i < n_stock_icons; i++) { - gchar fn[128]; - int j; - - icon_set = gtk_icon_set_new (); - - for (j=0; j<3; j++) { - if (stock_icons[i].fn[j]) { - icon_source = gtk_icon_source_new (); - sprintf(fn, "%s/%s", cwd, stock_icons[i].fn[j]); - gtk_icon_source_set_filename (icon_source, fn); - gtk_icon_set_add_source (icon_set, icon_source); - gtk_icon_source_free (icon_source); - } - } - + icon_set = gtk_icon_set_new_from_pixbuf (gdk_pixbuf_from_pixdata ( + stock_icons[i].data, FALSE, NULL )); gtk_icon_factory_add (icon_factory, stock_icons[i].stock_id, icon_set); gtk_icon_set_unref (icon_set); } diff --git a/src/zoom-18.png b/src/zoom-18.png deleted file mode 100644 index a69b95ba..00000000 Binary files a/src/zoom-18.png and /dev/null differ