FreeBSD-4.9-STABLE and xfce4-menueditor build failuer, possible patch

Jean-François Wauthy pollux at castor.be
Tue Feb 10 09:18:09 CET 2004


Le mar 10/02/2004 à 08:40, jimmie james a écrit :
> menueditor fails with two syntax errors:
> 
> <sinp for build log> 
> 
> `test -f 'new.c' || echo './'`new.c
> new.c: In function `new_menu_cb':
> new.c:47: syntax error before `response'
> new.c:62: syntax error before `response'
> *** Error code 1
> 
> Possible fix?
> 
it's a known issue under *BSD, it's corrected in the development version
(i gonna make a new release with text formatted in the tree and icon
support very soon)

> 
> 
> --- new.c       Tue Feb 10 01:57:41 2004
> +++ new1.c      Tue Feb 10 01:56:50 2004
> @@ -44,7 +44,7 @@
>                                     GTK_BUTTONS_YES_NO,
>                                     _("Are you sure to close the current menu ?"));
>  
      gint response;
+     response = gtk_dialog_run(GTK_DIALOG(dialog));
>      gtk_widget_destroy(dialog);
>  
>      if(response==GTK_RESPONSE_NO)
> @@ -59,7 +59,7 @@
>                                     GTK_BUTTONS_YES_NO,
>                                     _("Do you want to save before closing the file ?"));
>  
      gint response;
+     response = gtk_dialog_run(GTK_DIALOG(dialog));
>      gtk_widget_destroy(dialog);
>  
>      if(response==GTK_RESPONSE_YES)
> 

it's a way (the fastest) to correct the problem but in the real new code
i used the edscott's way that doesn't use the response variable anymore

> jimmie (jimmiejaz)
> _______________________________________________
> 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/20040210/a4438451/attachment.pgp>


More information about the Xfce4-dev mailing list