xfce4-menueditor problems
Jasper Huijsmans
jasper at xfce.org
Wed Feb 4 13:23:28 CET 2004
All declarations must be at the start of a block. Gcc3 allows
declarations anywhere, but earlier versions do not, nor I expect do
other compilers.
Jasper
Op wo 04-02-2004, om 13:13 schreef Martti Kuparinen:
> 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...
>
> 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
More information about the Xfce4-dev
mailing list