From: Kaj-Michael Lang Date: Fri, 10 Aug 2007 08:22:44 +0000 (+0300) Subject: Fix file handling on device X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57cc0a935f058d0b0066eee82047b92bb97d9dbf;p=mapper Fix file handling on device --- 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; }