[gimp] app: forgot one filename -> GFile earlier
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: forgot one filename -> GFile earlier
- Date: Wed, 2 Jul 2014 22:23:51 +0000 (UTC)
commit 53376def7aec0c362cb564ad433f67362db5ba32
Author: Michael Natterer <mitch gimp org>
Date: Thu Jul 3 00:21:04 2014 +0200
app: forgot one filename -> GFile earlier
app/actions/text-tool-commands.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/app/actions/text-tool-commands.c b/app/actions/text-tool-commands.c
index 04e364c..5ec458b 100644
--- a/app/actions/text-tool-commands.c
+++ b/app/actions/text-tool-commands.c
@@ -215,24 +215,24 @@ text_tool_load_dialog_response (GtkWidget *dialog,
{
if (response_id == GTK_RESPONSE_OK)
{
- gchar *filename;
+ GFile *file;
GError *error = NULL;
- filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
+ file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (dialog));
- if (! gimp_text_buffer_load (tool->buffer, filename, &error))
+ if (! gimp_text_buffer_load (tool->buffer, file, &error))
{
gimp_message (GIMP_TOOL (tool)->tool_info->gimp, G_OBJECT (dialog),
GIMP_MESSAGE_ERROR,
_("Could not open '%s' for reading: %s"),
- gimp_filename_to_utf8 (filename),
+ gimp_file_get_utf8_name (file),
error->message);
g_clear_error (&error);
- g_free (filename);
+ g_object_unref (file);
return;
}
- g_free (filename);
+ g_object_unref (file);
}
gtk_widget_hide (dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]