summaryrefslogtreecommitdiff
path: root/saedit/main.c
diff options
context:
space:
mode:
authorVasily_Makarov <danilka.pro@gmail.com>2012-02-08 10:20:45 +0400
committerVasily_Makarov <danilka.pro@gmail.com>2012-02-08 10:20:45 +0400
commitcae5aac0f4ad09a3b0a660216b7de11657fec507 (patch)
tree6a10ad70cc71a90dbf6a7a4d966c96a2db46dbfd /saedit/main.c
parent0c9df28b0a3f7d3576f9cbe6df8233b7883abe71 (diff)
downloadtools-cae5aac0f4ad09a3b0a660216b7de11657fec507.tar.gz
tools-cae5aac0f4ad09a3b0a660216b7de11657fec507.tar.bz2
tools-cae5aac0f4ad09a3b0a660216b7de11657fec507.tar.xz
tools-cae5aac0f4ad09a3b0a660216b7de11657fec507.zip
Porting to GTK+ 3
Diffstat (limited to 'saedit/main.c')
-rw-r--r--saedit/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/saedit/main.c b/saedit/main.c
index adce108..87f52a4 100644
--- a/saedit/main.c
+++ b/saedit/main.c
@@ -238,12 +238,12 @@ void show_imageset_dialog() {
int x, y;
for (y = 0; y < h; y++) {
- hbox = gtk_hbox_new(TRUE, 0);
- gtk_container_add(GTK_CONTAINER(content_area), hbox);
+ hbox = gtk_hbox_new(TRUE, 2);
+ gtk_box_pack_start(GTK_BOX(content_area), hbox, TRUE, TRUE, 2);
for (x = 0; x < w; x++) {
int id = w * y + x;
event_box = gtk_event_box_new();
- g_signal_connect(G_OBJECT(event_box), "button-press-event", G_CALLBACK(frame_image_button_press_event_callback), &id);
+ g_signal_connect(G_OBJECT(event_box), "button-press-event", G_CALLBACK(frame_image_button_press_event_callback), (gpointer)id);
gtk_box_pack_start(GTK_BOX(hbox), event_box, TRUE, TRUE, 0);
image = gtk_image_new_from_pixbuf(get_sprite_by_index(w * y + x, gen_sae_info));