[gtk+] filechooserwidget: Rename error variable
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] filechooserwidget: Rename error variable
- Date: Mon, 17 Oct 2016 11:02:33 +0000 (UTC)
commit 590e7e68d8c774e5776736d75cf2602cc4f4dc5d
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sat Oct 15 21:30:47 2016 +0100
filechooserwidget: Rename error variable
Avoid shadowing an existing error.
gtk/gtkfilechooserwidget.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 9be4320..c323cb8 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -6567,13 +6567,13 @@ name_entry_get_parent_info_cb (GCancellable *cancellable,
}
else if (parent_is_folder)
{
- GError *error;
+ GError *internal_error;
- error = NULL;
- g_set_error_literal (&error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED,
+ internal_error = NULL;
+ g_set_error_literal (&internal_error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED,
_("You do not have access to the specified folder."));
- error_changing_folder_dialog (impl, data->parent_file, error);
+ error_changing_folder_dialog (impl, data->parent_file, internal_error);
}
else if (info)
{
@@ -8533,7 +8533,6 @@ post_process_ui (GtkFileChooserWidget *impl)
GFile *file;
/* Some qdata, qdata can't be set with GtkBuilder */
- g_object_set_data (G_OBJECT (impl->priv->browse_files_tree_view), "fmq-name", "file_list");
g_object_set_data (G_OBJECT (impl->priv->browse_files_tree_view), I_("GtkFileChooserWidget"), impl);
/* Setup file list treeview */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]