summaryrefslogtreecommitdiff
path: root/saedit/main.h
diff options
context:
space:
mode:
authorVasily_Makarov <danilka.pro@gmail.com>2011-06-12 12:33:30 +0400
committerVasily_Makarov <danilka.pro@gmail.com>2011-06-12 12:33:30 +0400
commitb7e4fba486963cc630f7d0ae8e56ac0f9c8393cc (patch)
tree21de58840cd4561781bc50e771b174e228950fe7 /saedit/main.h
parent5e831b42ef17b426c575fa315ef68430c4815857 (diff)
downloadevol-tools-b7e4fba486963cc630f7d0ae8e56ac0f9c8393cc.tar.gz
evol-tools-b7e4fba486963cc630f7d0ae8e56ac0f9c8393cc.tar.bz2
evol-tools-b7e4fba486963cc630f7d0ae8e56ac0f9c8393cc.tar.xz
evol-tools-b7e4fba486963cc630f7d0ae8e56ac0f9c8393cc.zip
saedit: Update
Diffstat (limited to 'saedit/main.h')
-rw-r--r--saedit/main.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/saedit/main.h b/saedit/main.h
index 2a5b670..01b60e8 100644
--- a/saedit/main.h
+++ b/saedit/main.h
@@ -101,15 +101,12 @@ typedef struct {
int width;
int height;
GdkPixbuf *spriteset;
- GdkPixbuf *ground;
} ImagesetInfo;
static ImagesetInfo *imageset_info_new() {
ImagesetInfo *res = g_new0(ImagesetInfo, 1);
- res->ground = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, GRID_SIZE * 3, GRID_SIZE * 3);
res->width = SPRITE_WIDTH_DEFAULT;
res->height = SPRITE_HEIGHT_DEFAULT;
- gdk_pixbuf_fill(res->ground, 0x00000000);
return res;
}
@@ -124,10 +121,19 @@ typedef struct {
GtkWidget *imagesets_combo_box;
GtkWidget *actions_combo_box;
GtkWidget *animations_combo_box;
+ GdkPixbuf *ground;
} SAEInfo;
+static GdkPixbuf *sae_info_ground_new() {
+ GdkPixbuf *ground = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, GRID_SIZE * 3, GRID_SIZE * 3);
+ gdk_pixbuf_fill(ground, 0x00000000);
+ return ground;
+}
+
static SAEInfo *sae_info_new() {
- return g_new0(SAEInfo, 1);
+ SAEInfo *res = g_new0(SAEInfo, 1);
+ res->ground = sae_info_ground_new();
+ return res;
}
int spriteset_width, spriteset_height;
@@ -197,3 +203,4 @@ static void free_imageset();
static void kill_timeout(int tag);
static void show_grid_menu_item_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data);
static void open_menu_item_activate(GtkMenuItem *menuitem, GtkFileChooserDialog *fcdialog);
+static void parse_xml_text(gchar *text, SAEInfo *sae_info);