diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-09-12 02:56:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-09-13 20:28:58 +0800 |
commit | cd53ba990035bdb4861d9660917d457533d4ecb2 (patch) | |
tree | d9c9da2208f4a921c514497ea92d27e3d88481d1 /plugins/backup-restore | |
parent | b2b27cfa1bfcd6efdac30d2745a6e8cd4e6de134 (diff) | |
download | gsoc2013-evolution-cd53ba990035bdb4861d9660917d457533d4ecb2.tar.gz gsoc2013-evolution-cd53ba990035bdb4861d9660917d457533d4ecb2.tar.zst gsoc2013-evolution-cd53ba990035bdb4861d9660917d457533d4ecb2.zip |
Coding style cleanups.
Diffstat (limited to 'plugins/backup-restore')
-rw-r--r-- | plugins/backup-restore/backup-restore.c | 16 | ||||
-rw-r--r-- | plugins/backup-restore/backup.c | 12 |
2 files changed, 14 insertions, 14 deletions
diff --git a/plugins/backup-restore/backup-restore.c b/plugins/backup-restore/backup-restore.c index 87feab7a25..283079d84d 100644 --- a/plugins/backup-restore/backup-restore.c +++ b/plugins/backup-restore/backup-restore.c @@ -84,7 +84,7 @@ sanity_check (const gchar *filename) gint result; gchar *quotedfname, *toolfname; - quotedfname = g_shell_quote(filename); + quotedfname = g_shell_quote (filename); toolfname = g_build_filename (EVOLUTION_TOOLSDIR, "evolution-backup", NULL); command = g_strdup_printf("%s --check %s", toolfname, quotedfname); @@ -103,7 +103,7 @@ sanity_check (const gchar *filename) } static guint32 -dialog_prompt_user(GtkWindow *parent, const gchar *string, const gchar *tag, ...) +dialog_prompt_user (GtkWindow *parent, const gchar *string, const gchar *tag, ...) { GtkWidget *mbox, *check = NULL; va_list ap; @@ -111,9 +111,9 @@ dialog_prompt_user(GtkWindow *parent, const gchar *string, const gchar *tag, ... guint32 mask = 0; EAlert *alert = NULL; - va_start(ap, tag); - alert = e_alert_new_valist(tag, ap); - va_end(ap); + va_start (ap, tag); + alert = e_alert_new_valist (tag, ap); + va_end (ap); mbox = e_alert_dialog_new (parent, alert); g_object_unref (alert); @@ -121,7 +121,7 @@ dialog_prompt_user(GtkWindow *parent, const gchar *string, const gchar *tag, ... check = gtk_check_button_new_with_mnemonic (string); /* We should hardcode this to true */ gtk_toggle_button_set_active ((GtkToggleButton *)check, TRUE); - gtk_container_set_border_width((GtkContainer *)check, 12); + gtk_container_set_border_width ((GtkContainer *)check, 12); gtk_box_pack_start ((GtkBox *)gtk_dialog_get_content_area ((GtkDialog *) mbox), check, TRUE, TRUE, 0); gtk_widget_show (check); @@ -129,10 +129,10 @@ dialog_prompt_user(GtkWindow *parent, const gchar *string, const gchar *tag, ... if (button == GTK_RESPONSE_YES) mask |= BR_OK; - if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(check))) + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check))) mask |= BR_START; - gtk_widget_destroy(mbox); + gtk_widget_destroy (mbox); return mask; } diff --git a/plugins/backup-restore/backup.c b/plugins/backup-restore/backup.c index 5b39374b58..104afe7166 100644 --- a/plugins/backup-restore/backup.c +++ b/plugins/backup-restore/backup.c @@ -183,7 +183,7 @@ backup (const gchar *filename) gchar *quotedfname; g_return_if_fail (filename && *filename); - quotedfname = g_shell_quote(filename); + quotedfname = g_shell_quote (filename); CANCEL (complete); txt = _("Shutting down Evolution"); @@ -244,7 +244,7 @@ restore (const gchar *filename) return; } - quotedfname = g_shell_quote(filename); + quotedfname = g_shell_quote (filename); /* FIXME Will the versioned setting always work? */ CANCEL (complete); @@ -296,7 +296,7 @@ check (const gchar *filename) gchar *quotedfname; g_return_val_if_fail (filename && *filename, FALSE); - quotedfname = g_shell_quote(filename); + quotedfname = g_shell_quote (filename); command = g_strdup_printf ("tar ztf %s 1>/dev/null", quotedfname); result = system (command); @@ -353,11 +353,11 @@ thread_start (gpointer data) complete = TRUE; - return GINT_TO_POINTER(result); + return GINT_TO_POINTER (result); } static gboolean -idle_cb(gpointer data) +idle_cb (gpointer data) { if (gui_arg) { /* Show progress dialog */ @@ -476,7 +476,7 @@ main (gint argc, gchar **argv) gtk_container_set_border_width (GTK_CONTAINER (action_area), 0); if (oper && file) - str = g_strdup_printf(oper, file); + str = g_strdup_printf (oper, file); container = gtk_table_new (2, 3, FALSE); gtk_table_set_col_spacings (GTK_TABLE (container), 12); |