From 1acd9cfed892c8a277199912d099f7c5ff7a94ca Mon Sep 17 00:00:00 2001 From: Glynn Foster Date: Sat, 24 May 2003 01:36:24 +0000 Subject: Patch from Dagmar d'Surreal to correct help docs 2003-05-24 Glynn Foster * help/C/zenity.xml: Patch from Dagmar d'Surreal to correct help docs and script examples for the change from --dialog-title to --title. * THANKS, src/about.c: Add Dagmar. * src/progress.c: For now, just send a SIGHUP to the parent process - not entirely sure if this is the best thing to do right now. --- src/about.c | 1 + src/progress.c | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/about.c b/src/about.c index 2adcf64..182a816 100644 --- a/src/about.c +++ b/src/about.c @@ -59,6 +59,7 @@ static const gchar *author_credits[] = { "Havoc Pennington ", "Kristian Rietveld ", "Jakub Steiner ", + "Daniel d'Surreal ", "Tom Tromey ", NULL }; diff --git a/src/progress.c b/src/progress.c index aad133a..f7444c4 100644 --- a/src/progress.c +++ b/src/progress.c @@ -212,8 +212,11 @@ zenity_progress_dialog_response (GtkWidget *widget, int response, gpointer data) break; case GTK_RESPONSE_CANCEL: - /* FIXME: This should kill off the parent process - not entirely sure how to achieve this */ - kill (0); + /* FIXME: This should kill off the parent process nicely and return an error code + * I'm pretty sure there is a nice way to do this, but I'm clueless about this + * stuff. Should be using SIGHUP instead of 1 though. + */ + kill (getpid (), 1); zen_data->exit_code = 1; gtk_main_quit (); break; -- cgit v1.2.3-2-g168b