[gtk+] file chooser: Fix compiler warnings



commit 359d3669ff242537acbdd42bc9e9cee4d36080c5
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 30 21:25:48 2015 -0400

    file chooser: Fix compiler warnings
    
    Fix warnings due to -Wdeclaration-after-statement and -Wshadow.

 gtk/gtkfilechooserwidget.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index ea96292..83b2c25 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -1566,12 +1566,12 @@ file_list_drag_data_received_get_info_cb (GCancellable *cancellable,
     change_folder_and_display_error (data->impl, data->file, FALSE);
   else
     {
-      GError *error = NULL;
+      GError *local_error = NULL;
 
       gtk_file_chooser_widget_unselect_all (chooser);
-      gtk_file_chooser_widget_select_file (chooser, data->file, &error);
-      if (error)
-       error_selecting_dragged_file_dialog (data->impl, data->file, error);
+      gtk_file_chooser_widget_select_file (chooser, data->file, &local_error);
+      if (local_error)
+       error_selecting_dragged_file_dialog (data->impl, data->file, local_error);
       else
        browse_files_center_selected_row (data->impl);
     }
@@ -1596,9 +1596,9 @@ file_list_drag_data_received_cb (GtkWidget        *widget,
                                  GtkSelectionData *selection_data,
                                  guint             info,
                                  guint             time_,
-                                 gpointer          data)
+                                 gpointer          user_data)
 {
-  GtkFileChooserWidget *impl = GTK_FILE_CHOOSER_WIDGET (data);
+  GtkFileChooserWidget *impl = GTK_FILE_CHOOSER_WIDGET (user_data);
   GtkFileChooserWidgetPrivate *priv = impl->priv;
   gchar **uris;
   char *uri;


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