[evince/hildon-2-28] Another place to use the hildon filechooser
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince/hildon-2-28] Another place to use the hildon filechooser
- Date: Mon, 26 Oct 2009 12:12:19 +0000 (UTC)
commit 58c73b307fd42c444de440244e6828ebcb65d2ad
Author: Christian Persch <chpe gnome org>
Date: Sat Jun 6 15:00:08 2009 +0200
Another place to use the hildon filechooser
shell/ev-window.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 32ddc9a..a9d4e38 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -5733,6 +5733,7 @@ ev_view_popup_cmd_save_image_as (GtkAction *action, EvWindow *window)
if (!window->priv->image)
return;
+#ifndef PLATFORM_HILDON
fc = gtk_file_chooser_dialog_new (_("Save Image"),
GTK_WINDOW (window),
GTK_FILE_CHOOSER_ACTION_SAVE,
@@ -5747,6 +5748,12 @@ ev_view_popup_cmd_save_image_as (GtkAction *action, EvWindow *window)
GTK_RESPONSE_CANCEL,
-1);
+#else
+
+ fc = hildon_file_chooser_dialog_new (GTK_WINDOW (window),
+ GTK_FILE_CHOOSER_ACTION_SAVE);
+#endif /* !PLATFORM_HILDON */
+
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fc), FALSE);
gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (fc), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]