summaryrefslogtreecommitdiff
path: root/saedit/main.c
diff options
context:
space:
mode:
authorVasily_Makarov <danilka.pro@gmail.com>2011-06-10 19:27:00 +0400
committerVasily_Makarov <danilka.pro@gmail.com>2011-06-10 19:27:00 +0400
commit475fc94cb617655fb4c139e3b10b553248367104 (patch)
tree6d9fe1a8c702d036f5dfd8e51e3922c443f9766f /saedit/main.c
parentb6c7454b3b63c0df36888995d0079c45527b5515 (diff)
downloadevol-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/main.c')
-rw-r--r--saedit/main.c6
1 files changed, 5 insertions, 1 deletions
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();