eog r4701 - in trunk: . src
- From: csaavedra svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4701 - in trunk: . src
- Date: Thu, 21 Aug 2008 17:52:27 +0000 (UTC)
Author: csaavedra
Date: Thu Aug 21 17:52:27 2008
New Revision: 4701
URL: http://svn.gnome.org/viewvc/eog?rev=4701&view=rev
Log:
2008-08-21 Claudio Saavedra <csaavedra igalia com>
* src/eog-window.c: (eog_window_cmd_file_open): Set the filename
in the filechooser using the URI variant. Also renamed some variables
to make this more obvious. Fixes bug #548736.
Modified:
trunk/ChangeLog
trunk/src/eog-window.c
Modified: trunk/src/eog-window.c
==============================================================================
--- trunk/src/eog-window.c (original)
+++ trunk/src/eog-window.c Thu Aug 21 17:52:27 2008
@@ -2301,15 +2301,15 @@
current = eog_thumb_view_get_first_selected_image (EOG_THUMB_VIEW (priv->thumbview));
if (current != NULL) {
- gchar *dirname, *filename;
+ gchar *dir_uri, *file_uri;
- filename = eog_image_get_uri_for_display (current);
- dirname = g_path_get_dirname (filename);
-
- gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dlg),
- dirname);
- g_free (filename);
- g_free (dirname);
+ file_uri = eog_image_get_uri_for_display (current);
+ dir_uri = g_path_get_dirname (file_uri);
+
+ gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (dlg),
+ dir_uri);
+ g_free (file_uri);
+ g_free (dir_uri);
g_object_unref (current);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]