diff options
author | Bruno Coudoin <bcoudoin@src.gnome.org> | 2008-12-22 01:10:08 (GMT) |
---|---|---|
committer | Bruno Coudoin <bcoudoin@src.gnome.org> | 2008-12-22 01:10:08 (GMT) |
commit | 3d7373cf6f50bb1f397e331ce6df1bc968c27fff (patch) | |
tree | f5817dac45e9e089147471d1c1bc65d29f4c3a41 /src/boards | |
parent | 8f24cc67768d65f7704361d19c434401e3b50553 (diff) |
putted back the france icon fixed a potential crash case, was using a
* boards/geography_country.xml.in: putted back the france icon
* src/boards/reading.c: (ask_ready), (ask_yes_no): fixed a potential crash case,
was using a dereferenced pixbuf.
svn path=/trunk/; revision=3651
Diffstat (limited to 'src/boards')
-rw-r--r-- | src/boards/reading.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/boards/reading.c b/src/boards/reading.c index 747f7c8..0e06fe6 100644 --- a/src/boards/reading.c +++ b/src/boards/reading.c @@ -564,7 +564,6 @@ static void ask_ready(gboolean status) "y", y_offset, NULL); - gdk_pixbuf_unref(button_pixmap); gtk_signal_connect(GTK_OBJECT(item1), "event", (GtkSignalFunc) item_event_valid, "R"); @@ -580,6 +579,7 @@ static void ask_ready(gboolean status) "fill_color", "white", NULL); + gdk_pixbuf_unref(button_pixmap); gtk_signal_connect(GTK_OBJECT(item2), "event", (GtkSignalFunc) item_event_valid, "R"); @@ -604,7 +604,6 @@ static void ask_yes_no() "y", y_offset, NULL); - gdk_pixbuf_unref(button_pixmap); gtk_signal_connect(GTK_OBJECT(item), "event", (GtkSignalFunc) item_event_valid, "Y"); @@ -626,7 +625,6 @@ static void ask_yes_no() /*----- NO -----*/ y_offset += 100; - button_pixmap = gc_skin_pixmap_load("button_large2.png"); item = gnome_canvas_item_new (boardRootItem, gnome_canvas_pixbuf_get_type (), "pixbuf", button_pixmap, @@ -634,7 +632,6 @@ static void ask_yes_no() "y", y_offset, NULL); - gdk_pixbuf_unref(button_pixmap); gtk_signal_connect(GTK_OBJECT(item), "event", (GtkSignalFunc) item_event_valid, "N"); @@ -650,6 +647,7 @@ static void ask_yes_no() "fill_color", "white", NULL); + gdk_pixbuf_unref(button_pixmap); gtk_signal_connect(GTK_OBJECT(item), "event", (GtkSignalFunc) item_event_valid, "N"); |