[gnome-commander/gcmd-1-4] Removes gcc warning about variable shadowing



commit 23767b146ba25ec82949586a9a48e6c02b129904
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sun Apr 16 12:24:01 2017 +0200

    Removes gcc warning about variable shadowing

 src/dialogs/gnome-cmd-prepare-xfer-dialog.cc |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc b/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc
index 5b5492c..57c3516 100644
--- a/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc
+++ b/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc
@@ -187,14 +187,14 @@ static void on_ok (GtkButton *button, GnomeCmdPrepareXferDialog *dialog)
                 // Nothing exists, ask the user if a new directory might be suitable in the path that he 
specified
                 gchar *msg = g_strdup_printf (_("The directory '%s' doesn't exist, do you want to create 
it?"),
                                               g_basename (dest_path));
-                GtkWidget *dialog = gtk_message_dialog_new (*main_win,
-                                                            (GtkDialogFlags) 0,
-                                                            GTK_MESSAGE_QUESTION,
-                                                            GTK_BUTTONS_OK_CANCEL,
-                                                            "%s",
-                                                            msg);
-                gint choice = gtk_dialog_run (GTK_DIALOG (dialog));
-                gtk_widget_destroy (dialog);
+                GtkWidget *dir_dialog = gtk_message_dialog_new (*main_win,
+                                                               (GtkDialogFlags) 0,
+                                                               GTK_MESSAGE_QUESTION,
+                                                               GTK_BUTTONS_OK_CANCEL,
+                                                               "%s",
+                                                               msg);
+                gint choice = gtk_dialog_run (GTK_DIALOG (dir_dialog));
+                gtk_widget_destroy (dir_dialog);
                 g_free (msg);
 
                 if (choice == GTK_RESPONSE_OK)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]