From 57cc0a935f058d0b0066eee82047b92bb97d9dbf Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 10 Aug 2007 11:22:44 +0300 Subject: [PATCH] Fix file handling on device --- src/file.c | 2 +- src/hildon-wrappers.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/file.c b/src/file.c index 4db8c78..e84f30c 100644 --- a/src/file.c +++ b/src/file.c @@ -169,7 +169,7 @@ open_file(gchar ** bytes_out, GnomeVFSHandle ** handle_out, gint * size_out, g_printf("A\n"); - while (!success && gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { + while (!success && gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK) { gchar *file_uri_str; GnomeVFSResult vfs_result; diff --git a/src/hildon-wrappers.c b/src/hildon-wrappers.c index e60138e..64198b3 100644 --- a/src/hildon-wrappers.c +++ b/src/hildon-wrappers.c @@ -20,14 +20,14 @@ if (action == GTK_FILE_CHOOSER_ACTION_SAVE) { GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, - GTK_RESPONSE_ACCEPT, NULL); + GTK_RESPONSE_OK, NULL); gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog), TRUE); } else { dialog = gtk_file_chooser_dialog_new("Open", parent, action, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, - GTK_RESPONSE_ACCEPT, NULL); + GTK_RESPONSE_OK, NULL); } return dialog; } -- 2.39.5