xfce4-menueditor problems

Jean-François Wauthy pollux at castor.be
Wed Feb 4 13:23:23 CET 2004


Le mer 04/02/2004 à 13:13, Martti Kuparinen a écrit :
> Jean-François Wauthy wrote:
> 
> > BTW the patch seems to not work :-S removing gint -> no more variable
> > declaration...
> 
> I used this patch in NetBSD's pkgsrc...
> 
in this one the variable is declared so it should (must) work :-)
> Martti
> 
> 
> $NetBSD: patch-aa,v 1.1 2004/02/04 11:51:57 martti Exp $
> 
> --- menueditor/menueditor.c.orig        2004-01-25 22:12:52.000000000 +0200
> +++ menueditor/menueditor.c     2004-02-04 13:42:57.000000000 +0200
> @@ -283,13 +283,14 @@
>     /* Check if there is no other file opened */
>     if(menueditor_app.xml_menu_file != NULL){
>       if(menueditor_app.menu_modified==TRUE){
> +      gint response;
>         GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(menueditor_app.main
> _window),
>                                        GTK_DIALOG_DESTROY_WITH_PARENT,
>                                        GTK_MESSAGE_QUESTION,
>                                        GTK_BUTTONS_YES_NO,
>                                        _("Do you want to save before closing the
> file ?"));
> 
> -      gint response = gtk_dialog_run(GTK_DIALOG(dialog));
> +      response = gtk_dialog_run(GTK_DIALOG(dialog));
>         gtk_widget_destroy(dialog);
> 
>         if(response==GTK_RESPONSE_YES)
> @@ -320,13 +321,14 @@
>     /* Check if there is no other file opened */
>     if(menueditor_app.xml_menu_file != NULL){
>       if(menueditor_app.menu_modified==TRUE){
> +      gint response;
>         GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(menueditor_app.main
> _window),
>                                        GTK_DIALOG_DESTROY_WITH_PARENT,
>                                        GTK_MESSAGE_QUESTION,
>                                        GTK_BUTTONS_YES_NO,
>                                        _("Do you want to save before closing the
> file ?"));
> 
> -      gint response = gtk_dialog_run(GTK_DIALOG(dialog));
> +      response = gtk_dialog_run(GTK_DIALOG(dialog));
>         gtk_widget_destroy(dialog);
> 
>         if(response==GTK_RESPONSE_YES)
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev
-- 
Jean-François Wauthy <pollux at castor.be>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e.
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20040204/930a3c52/attachment.pgp>


More information about the Xfce4-dev mailing list