xfce4-menueditor problems

Martti Kuparinen martti.kuparinen at iki.fi
Wed Feb 4 13:13:04 CET 2004


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)



More information about the Xfce4-dev mailing list