aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-09-11 23:50:51 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-09-12 02:14:04 +0800
commitebcce86769d174cce6e881740c5e9bcedce28e06 (patch)
treeb2cc2d18ceb0c3bd3e78f5b768c1b6926b69bb4a /shell
parent1e3deb31476cf0026011876327be83e9a47847ee (diff)
downloadgsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar.gz
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar.bz2
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar.lz
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar.xz
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.tar.zst
gsoc2013-evolution-ebcce86769d174cce6e881740c5e9bcedce28e06.zip
Coding style and whitespace cleanups.
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell-switcher.c4
-rw-r--r--shell/e-shell-utils.c6
-rw-r--r--shell/es-event.c12
3 files changed, 14 insertions, 8 deletions
diff --git a/shell/e-shell-switcher.c b/shell/e-shell-switcher.c
index 9569a51a12..fec943c021 100644
--- a/shell/e-shell-switcher.c
+++ b/shell/e-shell-switcher.c
@@ -152,7 +152,7 @@ shell_switcher_layout_actions (EShellSwitcher *switcher)
(len * H_PADDING)) / len;
else
extra_width = 0;
- for (p = rows [i]; p != NULL; p = p->next) {
+ for (p = rows[i]; p != NULL; p = p->next) {
GtkAllocation child_allocation;
child_allocation.x = x;
@@ -169,7 +169,7 @@ shell_switcher_layout_actions (EShellSwitcher *switcher)
}
for (i = 0; i <= row_last; i++)
- g_list_free (rows [i]);
+ g_list_free (rows[i]);
g_free (rows);
return y - allocation.y;
diff --git a/shell/e-shell-utils.c b/shell/e-shell-utils.c
index d47b88e174..ee1af8e3be 100644
--- a/shell/e-shell-utils.c
+++ b/shell/e-shell-utils.c
@@ -236,9 +236,9 @@ e_shell_run_save_dialog (EShell *shell,
gchar **flts = g_strsplit (filters, ";", -1);
gint i;
- for (i = 0; flts [i]; i++) {
+ for (i = 0; flts[i]; i++) {
GtkFileFilter *filter = gtk_file_filter_new ();
- gchar *flt = flts [i];
+ gchar *flt = flts[i];
gchar *delim = strchr (flt, ':'), *next = NULL;
if (delim) {
@@ -269,7 +269,7 @@ e_shell_run_save_dialog (EShell *shell,
gtk_file_chooser_add_filter (file_chooser, filter);
}
- if (flts && flts [0]) {
+ if (flts && flts[0]) {
GtkFileFilter *filter = gtk_file_filter_new ();
gtk_file_filter_add_pattern (filter, "*");
diff --git a/shell/es-event.c b/shell/es-event.c
index 71381c1cfd..c260faebee 100644
--- a/shell/es-event.c
+++ b/shell/es-event.c
@@ -122,9 +122,11 @@ es_event_target_new (ESEvent *eme)
ESEventTargetState *
es_event_target_new_state (ESEvent *eme, gint state)
{
- ESEventTargetState *t = e_event_target_new (&eme->event, ES_EVENT_TARGET_STATE, sizeof (*t));
+ ESEventTargetState *t;
guint32 mask = ~0;
+ t = e_event_target_new (
+ &eme->event, ES_EVENT_TARGET_STATE, sizeof (*t));
t->state = state;
if (state)
@@ -140,8 +142,10 @@ es_event_target_new_state (ESEvent *eme, gint state)
ESEventTargetUpgrade *
es_event_target_new_upgrade (ESEvent *eme, gint major, gint minor, gint revision)
{
- ESEventTargetUpgrade *t = e_event_target_new (&eme->event, ES_EVENT_TARGET_UPGRADE, sizeof (*t));
+ ESEventTargetUpgrade *t;
+ t = e_event_target_new (
+ &eme->event, ES_EVENT_TARGET_UPGRADE, sizeof (*t));
t->major = major;
t->minor = minor;
t->revision = revision;
@@ -152,8 +156,10 @@ es_event_target_new_upgrade (ESEvent *eme, gint major, gint minor, gint revision
ESEventTargetComponent *
es_event_target_new_component (ESEvent *eme, const gchar *id)
{
- ESEventTargetComponent *t = e_event_target_new (&eme->event, ES_EVENT_TARGET_COMPONENT, sizeof (*t));
+ ESEventTargetComponent *t;
+ t = e_event_target_new (
+ &eme->event, ES_EVENT_TARGET_COMPONENT, sizeof (*t));
t->id = id;
return t;