diff options
author | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-10 19:27:00 +0400 |
---|---|---|
committer | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-10 19:27:00 +0400 |
commit | 475fc94cb617655fb4c139e3b10b553248367104 (patch) | |
tree | 6d9fe1a8c702d036f5dfd8e51e3922c443f9766f /saedit | |
parent | b6c7454b3b63c0df36888995d0079c45527b5515 (diff) | |
download | evol-tools-475fc94cb617655fb4c139e3b10b553248367104.tar.gz evol-tools-475fc94cb617655fb4c139e3b10b553248367104.tar.bz2 evol-tools-475fc94cb617655fb4c139e3b10b553248367104.tar.xz evol-tools-475fc94cb617655fb4c139e3b10b553248367104.zip |
saedit: Add icon
Diffstat (limited to 'saedit')
-rw-r--r-- | saedit/icon.svg | 195 | ||||
-rw-r--r-- | saedit/main.c | 6 | ||||
-rw-r--r-- | saedit/main.h | 3 |
3 files changed, 203 insertions, 1 deletions
diff --git a/saedit/icon.svg b/saedit/icon.svg new file mode 100644 index 0000000..a696db3 --- /dev/null +++ b/saedit/icon.svg @@ -0,0 +1,195 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="256" + height="256" + id="svg2" + version="1.1" + inkscape:version="0.48.0 r9654" + sodipodi:docname="icon.svg"> + <defs + id="defs4" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="2" + inkscape:cx="86.462223" + inkscape:cy="116.31401" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="false" + inkscape:window-width="1680" + inkscape:window-height="977" + inkscape:window-x="0" + inkscape:window-y="24" + inkscape:window-maximized="1" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(0,-796.36209)"> + <text + xml:space="preserve" + style="font-size:120px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans" + x="21.387226" + y="884.78589" + id="text2993" + sodipodi:linespacing="125%"><tspan + sodipodi:role="line" + id="tspan2995" + x="21.387226" + y="884.78589" + style="font-size:22px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace"><sprite></tspan><tspan + sodipodi:role="line" + x="21.387226" + y="912.28589" + style="font-size:22px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace" + id="tspan2997"> <imageset></tspan><tspan + sodipodi:role="line" + x="21.387226" + y="939.78589" + style="font-size:22px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace" + id="tspan2999"> <action></tspan><tspan + sodipodi:role="line" + x="21.387226" + y="967.28589" + style="font-size:22px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace" + id="tspan3003"> <frame></tspan><tspan + sodipodi:role="line" + x="21.387226" + y="994.78589" + style="font-size:22px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace" + id="tspan3001"> <sequence></tspan><tspan + sodipodi:role="line" + x="21.387226" + y="1022.2859" + style="font-size:22px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace" + id="tspan3005"> </action></tspan><tspan + sodipodi:role="line" + x="21.387226" + y="1049.7859" + style="font-size:22px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace" + id="tspan3007"></sprite></tspan></text> + <text + xml:space="preserve" + style="font-size:22px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans" + x="0.90429688" + y="885.36206" + id="text3009" + sodipodi:linespacing="125%"><tspan + sodipodi:role="line" + id="tspan3011" + x="0.90429688" + y="885.36206" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace">1</tspan><tspan + sodipodi:role="line" + x="0.90429688" + y="912.86206" + id="tspan3013" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace">2</tspan><tspan + sodipodi:role="line" + x="0.90429688" + y="940.36206" + id="tspan3015" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace">3</tspan><tspan + sodipodi:role="line" + x="0.90429688" + y="967.86206" + id="tspan3017" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace">4</tspan><tspan + sodipodi:role="line" + x="0.90429688" + y="995.36206" + id="tspan3019" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace">5</tspan><tspan + sodipodi:role="line" + x="0.90429688" + y="1022.8621" + id="tspan3021" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace">6</tspan><tspan + sodipodi:role="line" + x="0.90429688" + y="1050.3621" + id="tspan3023" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Monospace;-inkscape-font-specification:Monospace">7</tspan></text> + <path + style="fill:none;stroke:#000000;stroke-width:0.99732631px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 18,1051.8634 18,866.35946" + id="path3793" + inkscape:connector-curvature="0" /> + <path + style="fill:none;stroke:#000000;stroke-width:0.95017451px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 0.47504339,865.387 255.04991661,0" + id="path3795" + inkscape:connector-curvature="0" /> + <image + y="799.36206" + x="96" + id="image3805" + xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAACABJREFU +eJztmm1sU9cZx38hJBgS4tgkUOE4CYHwEjKFltWjMJptrRgvXYjXwAfoSFE3oWoM1nwYUhEjldqq ++7CqwNi0tQjK1FXqqBxIiKoWFRZoAfPWbHEoGBy/QkJiJ05IYjsxdx9ufEkIUVWJc6pN+UuWznnO +8T3/53/vec5zzz0wjnGMYxwSsK1yp/Io+z0qTJA52IPOfVNdBibKHKy4aD4VuRbNyVsnPxtRt5av +xlZTL5MSSTIGWW1eoExJmgrAtheXApCdrdfa29vDAOw99CUAfUoP9b6rUrgJH2Rb5c5qYHdFXi8A +JQvMY/ZtvOoD4IgnDeC1ve+/US2an/AY4L/csNtavpojnjTcsXQAMvSZZJiy2PVJiAxTFhn6TADc +sXSOeNIoLpqP/3LDbtHcQEIMmBCOYqupx1q+GoCMaTcA2H7gOtby1Ww/UM+el+aSkZ6FWbcEM2Cr +qWdCOCqamspPxiAVeb3Yaurpb3eDean6G44hW3+7G1tNPYnpIgNSVoHsbD17ni0As0WzrXzciK2m +npWPGzXbqvmDrMop4OubXhm0AEkCzNLH1bt8tUGzrZqbyaq5mbDg6RH27nCX2l8SpOUBpw/ux3Xl +ola3brByq6Ob9nMj7ZUvbyba0SmLlpwYEE0x4LpykeT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BlS+wJkx+AKbOK0OXMHhH4EmVdzmym +zCp66P9FrgTCBdCZCynU6wDoa2lmSoHq5PAnAGBKQRF9Lc0AHPj8PBGf86Ep86OGUAESMeCZlepX +IV3ObK0tFmzj+Lv77idDw9prU0z0e53ozIXs/4VJJEVxAkR8Tm0V0JlVx/b0pNNed5hQQy06cyFr +fvUbdOZCQg21tNcdZk9POoF89WmPdwWJ+JykZIsVQNgyGPHdHFVeZ11DmDV4vAGu3A7CRCPcDsJP +KgGwAJbFi3jzj38iFmwdcQ1RECaA5+znZA/N6URwyzWb8PoCLF9mGdXf6wvg8QawX/pKNSQn09fS +zG9tYjNCYQK8cTYdSJC3U7nv14AqwnB4fQFyzSY83gB5uWrbiVNnRjgucl9AiAAPEt7xyhYl4RzA +6S/smrMeb4B/2o6zzrpmxBMga0tMSh5w4tQZPN6AVl++zKI5br/0FZbFiwAYLpIsSBHg2R/9EFDv +vNcXwOtTxThx6syIfsNFkgVpx+S04DZG/buClHlWZihW/r5vE29eur+snTh1BpNbHX7Bi8s0+8ux +G2z7R9v/VwxI4NXFs3l9QwVbwo2Y3Emak7O/sLF96l22pXZw19cik5I8AXqvN5IytPd3oskla9hv +hNSTol0XTpI2t+ShbbFgq/S7D5KnQNrcEnqvN9LeHxthb++PEfK4SDfPkkkHkCxAAuf9Odr8P9bZ +lHT+jnosLuRxcbQlJJWLNAEO2o6P3RibpxWHiyMD0gQ478+RNdS3ghQBZN7RbwspApQZihVSr9F7 +XT0DNtPg0vb5ygzFSvUyeUdjH4ScKZB6jR9MT9Oqv3/BSm9S86humdNn8I41nTJDsSLjyzDIygNi +89hsLcFYuhaA0L+OkqYUAU1al8zp978Gv2NVj9VjK1ZETx9pidDwff/hZQBnOAJhz0P+NU0wK4kC +zNxYpW1zG5/+Gdg+1No+aBLv6FiQJsDwD6DD8V2vENIEeHBzs3WwaYye4xjHOCTiv6D/Tw9CAbaJ +AAAAAElFTkSuQmCC +" + height="64" + width="64" /> + </g> +</svg> diff --git a/saedit/main.c b/saedit/main.c index 55152ba..c8ff62a 100644 --- a/saedit/main.c +++ b/saedit/main.c @@ -425,6 +425,7 @@ void show_about_dialog() { "copyright", "Copyleft Vasily_Makarov 2011", "program-name", "Sprite Animation Editor", "version", "0.1 prealpha", + "logo", icon, NULL); } @@ -444,7 +445,8 @@ void set_up_interface() { win = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(win), "Sprite Animation Editor"); - gtk_window_set_position (GTK_WINDOW(win), GTK_WIN_POS_CENTER); + gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER); + gtk_window_set_icon(GTK_WINDOW(win), icon); gtk_widget_realize(win); g_signal_connect(win, "destroy", gtk_main_quit, NULL); gtk_widget_set_size_request(win, MIN_WIDTH, MIN_HEIGHT); @@ -591,6 +593,8 @@ int main (int argc, char *argv[]) { gtk_init(&argc, &argv); + icon = gdk_pixbuf_new_from_file(ICON_PATH, NULL); + current_sprite = sprite_info_new(-1, 0, 0); imageset = imageset_info_new(); diff --git a/saedit/main.h b/saedit/main.h index 69f5348..3b56737 100644 --- a/saedit/main.h +++ b/saedit/main.h @@ -23,6 +23,7 @@ const int SPRITE_WIDTH_DEFAULT = 64; const int SPRITE_HEIGHT_DEFAULT = 64; const int GRID_SIZE = 32; const gchar *BACKGROUNDS_DIR = "backgrounds"; +const gchar *ICON_PATH = "icon.svg"; typedef struct { XMLNode *node; @@ -69,6 +70,8 @@ GList *imagesets = NULL; GList *actions = NULL; GList *animations = NULL; +GdkPixbuf *icon = NULL; + XMLNode *root = NULL; imageset_info *imageset = NULL; |