]> err.no Git - mapper/commitdiff
Fix file handling on device
authorKaj-Michael Lang <milang@angel.tal.org>
Fri, 10 Aug 2007 08:22:44 +0000 (11:22 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Fri, 10 Aug 2007 08:22:44 +0000 (11:22 +0300)
src/file.c
src/hildon-wrappers.c

index 4db8c78414d33e3f780173ff925c360349f54f09..e84f30c0b0ebdb002a43a9e818c0fba5b1919f66 100644 (file)
@@ -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;
 
index e60138efc614075b549349095f3df33ac7f6a1da..64198b3ef92d27de27c6e885c743f33036dbe308 100644 (file)
@@ -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;
 }