[Fwd: [G-scripts-devel] [PATCH] Re: Gdialog problem with gnome 2]
- From: nazeman <patrick largey nazeman org>
- To: desktop-devel-list gnome org
- Subject: [Fwd: [G-scripts-devel] [PATCH] Re: Gdialog problem with gnome 2]
- Date: 03 Sep 2002 21:28:54 +0200
-----Message suivi-----
From: Matt Wilson <msw redhat com>
To: limbo-list redhat com
Cc: Script Nautilus <g-scripts-devel lists sourceforge net>
Subject: [G-scripts-devel] [PATCH] Re: Gdialog problem with gnome 2
Date: 03 Sep 2002 15:13:57 -0400
For completeness, here are all the fixes.
Cheers,
Matt
On Tue, Sep 03, 2002 at 06:40:41PM +0200, nazeman wrote:
> Hello
>
> Gdialog in Gnome2 dosen't work....
>
> this script in gnome1.x work great
> with gnome2 i have ever "no" if I clic "yes" or "no" or "escape"
>
> I have "null" installed (rht) perhaps is a bug von Red.hat or perhaps is
> gdialog bug ...
>
> Has anybody tested ?
>
> My script Archiver-unarchiver doesn't work with gnome2 :-(
>
> Thanks
>
> Nazeman
>
>
>
> #!/bin/bash
> #
> if gdialog --yesno "blablabla" 100 100
> then echo "yes"
> else echo "no"
> fi
>
>
>
>
>
> _______________________________________________
> Limbo-list mailing list
> Limbo-list redhat com
> https://listman.redhat.com/mailman/listinfo/limbo-list
----
--- gnome-utils-2.0.2/gdialog/yesno.c.rc 2002-09-03 15:10:22.000000000 -0400
+++ gnome-utils-2.0.2/gdialog/yesno.c 2002-09-03 15:10:04.000000000 -0400
@@ -28,7 +28,7 @@
static void callback_yn(GtkWidget *w, gint button, gpointer *unused)
{
/* yes = GTK_RESPONSE_YES no = GTK_RESPONSE_NO */
- exit(button);
+ exit(button == GTK_RESPONSE_NO);
}
static void callback_err(GtkWidget *w, gpointer *unused)
--- gnome-utils-2.0.2/gdialog/checklist.c.rc 2002-09-03 15:12:14.000000000 -0400
+++ gnome-utils-2.0.2/gdialog/checklist.c 2002-09-03 15:14:06.000000000 -0400
@@ -69,7 +69,7 @@
if(format!=0)
write(2,"\n",1);
}
- exit(button);
+ exit(button == GTK_RESPONSE_CANCEL);
}
--- gnome-utils-2.0.2/gdialog/inputbox.c.rc 2002-09-03 15:12:56.000000000 -0400
+++ gnome-utils-2.0.2/gdialog/inputbox.c 2002-09-03 15:12:52.000000000 -0400
@@ -36,7 +36,7 @@
write(2,p, strlen(p));
write(2, "\n", 1);
}
- exit(button);
+ exit(button == GTK_RESPONSE_CANCEL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]