gcompris r3603 - branches/gcomprixogoo/src/gcompris
- From: bcoudoin svn gnome org
- To: svn-commits-list gnome org
- Subject: gcompris r3603 - branches/gcomprixogoo/src/gcompris
- Date: Sun, 9 Nov 2008 00:07:56 +0000 (UTC)
Author: bcoudoin
Date: Sun Nov 9 00:07:55 2008
New Revision: 3603
URL: http://svn.gnome.org/viewvc/gcompris?rev=3603&view=rev
Log:
fixed too early pixmap unref
Modified:
branches/gcomprixogoo/src/gcompris/gcompris_confirm.c
Modified: branches/gcomprixogoo/src/gcompris/gcompris_confirm.c
==============================================================================
--- branches/gcomprixogoo/src/gcompris/gcompris_confirm.c (original)
+++ branches/gcomprixogoo/src/gcompris/gcompris_confirm.c Sun Nov 9 00:07:55 2008
@@ -241,8 +241,6 @@
(double) button_y + 2*button_h/3,
NULL);
- //gdk_pixbuf_unref(pixmap);
-
g_signal_connect(no_button, "button_press_event",
(GtkSignalFunc) button_event,
"/no/");
@@ -257,8 +255,6 @@
button_y + 2*button_h/3,
NULL);
- gdk_pixbuf_unref(pixmap_cross);
-
g_signal_connect(no_cross, "button_press_event",
(GtkSignalFunc) button_event,
"/no/");
@@ -282,8 +278,6 @@
(double) button_y + button_h/3,
NULL);
- gdk_pixbuf_unref(pixmap);
-
g_signal_connect(yes_button, "button_press_event",
(GtkSignalFunc) button_event,
"/yes/");
@@ -298,7 +292,6 @@
button_y + button_h/3,
NULL);
- gdk_pixbuf_unref(pixmap_stick);
g_signal_connect(yes_stick, "button_press_event",
(GtkSignalFunc) button_event,
@@ -317,6 +310,10 @@
confirm_displayed = TRUE;
+ gdk_pixbuf_unref(pixmap);
+ gdk_pixbuf_unref(pixmap_stick);
+ gdk_pixbuf_unref(pixmap_cross);
+
}
/* Apply the style to the given Text item */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]