[monkey-bubble: 54/753] restore state does not exist on the new Gtk
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 54/753] restore state does not exist on the new Gtk
- Date: Wed, 14 Jul 2010 22:00:13 +0000 (UTC)
commit 2b8bd380e868b7606c63f739fc5b995abab04bb7
Author: Miguel de Icaza <miguel nuclecu unam mx>
Date: Thu Jan 22 02:14:08 1998 +0000
restore state does not exist on the new Gtk
Wed Jan 21 20:11:45 1998 Miguel de Icaza <miguel nuclecu unam mx>
* obgtk/ObgtkWidget.[mh]: restore state does not exist on the new Gtk
* libgnome/gnome-score-helper.c (main): Display statistics.
* libgnome/gnome-score.c (gnome_score_log): we need to call _exit
instead of exit() if the exec fails (since gtk will try to
shutdown itself).
* libgnomeui/gnome-scores.c (gnome_scores_display): New function.
Takes care of all the details of displaying the score.
* programs/same-gnome.c (show_scores): use the simplified routine
* programs/gnomine/gnomine.c (show_scores): likewise
libgnome/gnome-score.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgnome/gnome-score.c b/libgnome/gnome-score.c
index 9f5f136..54011be 100644
--- a/libgnome/gnome-score.c
+++ b/libgnome/gnome-score.c
@@ -19,6 +19,7 @@ gnome_score_log(gfloat score,
int exitstatus;
char buf[64];
char buf2[64];
+
pid_t childpid = fork();
if(childpid == 0)
@@ -28,7 +29,7 @@ gnome_score_log(gfloat score,
g_snprintf(buf2, sizeof(buf2), "%d", higher_to_lower_score_order);
execlp("gnome-score-helper", "gnome-score-helper",
buf, level?level:"", buf2, NULL);
- exit(99);
+ _exit(99);
}
waitpid(childpid, &exitstatus, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]