[gnome-commander] Reduce scope of variables



commit 246334e63720cac8db5e84eedd318bfb5dc6c9c2
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sat Oct 1 22:53:01 2016 +0200

    Reduce scope of variables

 plugins/fileroller/file-roller-plugin.cc |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plugins/fileroller/file-roller-plugin.cc b/plugins/fileroller/file-roller-plugin.cc
index 8b74fe8..e80fb2b 100644
--- a/plugins/fileroller/file-roller-plugin.cc
+++ b/plugins/fileroller/file-roller-plugin.cc
@@ -287,10 +287,6 @@ static void on_add_to_archive (GtkMenuItem *item, FileRollerPlugin *plugin)
 {
     gint ret;
     GtkWidget *dialog = NULL;
-    GdkPixbuf *pixbuf;
-    GtkWidget *entry;
-    GtkWidget *hbox;
-    gchar *archive_name;
     const gchar *name;
     gboolean name_ok = FALSE;
     GList *files;
@@ -299,6 +295,11 @@ static void on_add_to_archive (GtkMenuItem *item, FileRollerPlugin *plugin)
 
     do
     {
+        GdkPixbuf *pixbuf;
+        GtkWidget *entry;
+        GtkWidget *hbox;
+        gchar *archive_name;
+
         if (dialog)
             gtk_widget_destroy (dialog);
 


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