[Xfce4-commits] <ristretto:ristretto-0.0> Set current-uri to open-folder dialog
Stephan Arts
noreply at xfce.org
Sun Oct 23 19:16:19 CEST 2011
Updating branch refs/heads/ristretto-0.0
to 9a3eeb38527886d402c868969bf102e1a761c0ff (commit)
from 66cae1e72422b4912d5cc852c4989a9225322ea3 (commit)
commit 9a3eeb38527886d402c868969bf102e1a761c0ff
Author: Stephan Arts <stephan at thor.(none)>
Date: Fri May 15 21:46:15 2009 +0200
Set current-uri to open-folder dialog
ChangeLog | 7 +++++++
src/main_window.c | 3 +++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 10efd6e..9b3d98b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2009-05-15 Stephan Arts <stephan at xfce.org>
+ * src/main_window.c: Set current_uri on open_folder dialog
+ * src/image.c
+ src/image.h
+ src/picture_viewer.c: Remove state-machine, breaks things
+
+2009-05-15 Stephan Arts <stephan at xfce.org>
+
* src/image.c
src/image.h
src/picture_viewer.c: Implement state-machine, do not expose weird
diff --git a/src/main_window.c b/src/main_window.c
index 7504afe..a0d273b 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -1011,6 +1011,9 @@ cb_rstto_main_window_open_folder (GtkWidget *widget, RsttoMainWindow *window)
GTK_STOCK_OPEN, GTK_RESPONSE_OK,
NULL);
+ if (g_value_get_string (¤t_uri_val))
+ gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (dialog), g_value_get_string (¤t_uri_val));
+
response = gtk_dialog_run(GTK_DIALOG(dialog));
if(response == GTK_RESPONSE_OK)
{
More information about the Xfce4-commits
mailing list