[gedit/gnome-3-2] Ignore the result of gtk_file_chooser_set_file
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/gnome-3-2] Ignore the result of gtk_file_chooser_set_file
- Date: Fri, 2 Dec 2011 20:51:44 +0000 (UTC)
commit 2924e3227472da1368cfda15897555144feabc73
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Nov 29 23:47:44 2011 +0100
Ignore the result of gtk_file_chooser_set_file
The value is undefined in recent version of gtk since the filechooser is
now async. Pointed out by Federico Mena Quintero.
gedit/gedit-commands-file.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gedit/gedit-commands-file.c b/gedit/gedit-commands-file.c
index 1b6e23c..f554db1 100644
--- a/gedit/gedit-commands-file.c
+++ b/gedit/gedit-commands-file.c
@@ -835,7 +835,6 @@ file_save_as (GeditTab *tab,
GtkWindowGroup *wg;
GeditDocument *doc;
GFile *file;
- gboolean uri_set = FALSE;
const GeditEncoding *encoding;
GeditDocumentNewlineType newline_type;
@@ -873,14 +872,13 @@ file_save_as (GeditTab *tab,
if (file != NULL)
{
- uri_set = gtk_file_chooser_set_file (GTK_FILE_CHOOSER (save_dialog),
- file,
- NULL);
+ gtk_file_chooser_set_file (GTK_FILE_CHOOSER (save_dialog),
+ file,
+ NULL);
g_object_unref (file);
}
-
- if (!uri_set)
+ else
{
GFile *default_path;
gchar *docname;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]