[file-roller] renamed some variables to make the code clearer
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] renamed some variables to make the code clearer
- Date: Mon, 1 Nov 2010 17:01:22 +0000 (UTC)
commit f0cadcb012c7393aafb056a01260f997ee23e93a
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Nov 1 17:57:08 2010 +0100
renamed some variables to make the code clearer
src/main.c | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 4b54a5b..32a46e5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -827,9 +827,9 @@ fr_restore_session (EggSMClient *client)
static void
prepare_app (void)
{
- char *uri;
- char *extract_to_path = NULL;
- char *add_to_path = NULL;
+ char *uri;
+ char *extract_to_uri = NULL;
+ char *add_to_uri = NULL;
EggSMClient *client = NULL;
/* create the config dir if necessary. */
@@ -864,10 +864,10 @@ prepare_app (void)
}
if (extract_to != NULL)
- extract_to_path = get_uri_from_command_line (extract_to);
+ extract_to_uri = get_uri_from_command_line (extract_to);
if (add_to != NULL)
- add_to_path = get_uri_from_command_line (add_to);
+ add_to_uri = get_uri_from_command_line (add_to);
if ((add_to != NULL) || (add == 1)) { /* Add files to an archive */
GtkWidget *window;
@@ -884,16 +884,17 @@ prepare_app (void)
file_list = g_list_reverse (file_list);
fr_window_new_batch (FR_WINDOW (window));
- fr_window_set_batch__add (FR_WINDOW (window), add_to_path, file_list);
+ fr_window_set_batch__add (FR_WINDOW (window), add_to_uri, file_list);
fr_window_append_batch_action (FR_WINDOW (window),
FR_BATCH_ACTION_QUIT,
NULL,
NULL);
fr_window_start_batch (FR_WINDOW (window));
}
- else if ((extract_to != NULL)
- || (extract == 1)
- || (extract_here == 1)) { /* Extract all archives. */
+ else if ((extract_to != NULL) || (extract == 1) || (extract_here == 1)) {
+
+ /* Extract all archives. */
+
GtkWidget *window;
const char *archive;
int i = 0;
@@ -913,7 +914,7 @@ prepare_app (void)
else
fr_window_set_batch__extract (FR_WINDOW (window),
archive_uri,
- extract_to_path);
+ extract_to_uri);
g_free (archive_uri);
}
fr_window_append_batch_action (FR_WINDOW (window),
@@ -943,6 +944,6 @@ prepare_app (void)
}
}
- g_free (add_to_path);
- g_free (extract_to_path);
+ g_free (add_to_uri);
+ g_free (extract_to_uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]