From b7e4fba486963cc630f7d0ae8e56ac0f9c8393cc Mon Sep 17 00:00:00 2001 From: Vasily_Makarov Date: Sun, 12 Jun 2011 12:33:30 +0400 Subject: saedit: Update --- saedit/main.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'saedit/main.h') 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); -- cgit v1.2.3-70-g09d2