aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/calendar-file
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-12-01 10:53:20 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-02-20 23:04:25 +0800
commit23f5773903d64a554d977ae7d0ebbaca73528f1f (patch)
tree104e1a59da8bf96b004bce204b79f47bbe0a6d13 /plugins/calendar-file
parent49bc4c2d765ee1780c23fdc9f42152850dabb220 (diff)
downloadgsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.gz
gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.zst
gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'plugins/calendar-file')
-rw-r--r--plugins/calendar-file/calendar-file.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/plugins/calendar-file/calendar-file.c b/plugins/calendar-file/calendar-file.c
index 6296c71d29..ea85dabc6c 100644
--- a/plugins/calendar-file/calendar-file.c
+++ b/plugins/calendar-file/calendar-file.c
@@ -50,7 +50,9 @@ location_changed (GtkFileChooserButton *widget,
g_return_if_fail (source != NULL);
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (widget));
- e_source_set_property (source, "custom-file", (filename && *filename) ? filename : NULL);
+ e_source_set_property (
+ source, "custom-file",
+ (filename && *filename) ? filename : NULL);
g_free (filename);
}
@@ -154,7 +156,8 @@ e_calendar_file_customs (EPlugin *epl,
gtk_misc_set_alignment (GTK_MISC (w1), 0.0, 0.5);
gtk_box_pack_start ((GtkBox *) box2, w1, FALSE, TRUE, 2);
- w2 = gtk_file_chooser_button_new (_("Choose calendar file"), GTK_FILE_CHOOSER_ACTION_OPEN);
+ w2 = gtk_file_chooser_button_new (
+ _("Choose calendar file"), GTK_FILE_CHOOSER_ACTION_OPEN);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (w2), TRUE);
gtk_label_set_mnemonic_widget (GTK_LABEL (w1), w2);
gtk_box_pack_start ((GtkBox *) box2, w2, TRUE, TRUE, 2);
@@ -213,7 +216,10 @@ e_calendar_file_customs (EPlugin *epl,
gtk_box_pack_start ((GtkBox *) box2, w2, FALSE, TRUE, 2);
value = e_source_get_property (source, "refresh-type");
- gtk_combo_box_set_active ((GtkComboBox *) w2, (value && *value && !value[1] && value[0] >= '0' && value[0] <= '2') ? value[0] - '0' : 0);
+ gtk_combo_box_set_active (
+ (GtkComboBox *) w2,
+ (value && *value && !value[1] && value[0] >= '0' &&
+ value[0] <= '2') ? value[0] - '0' : 0);
w1 = w2;
w2 = e_plugin_util_add_refresh (NULL, NULL, source, "refresh");
@@ -225,7 +231,9 @@ e_calendar_file_customs (EPlugin *epl,
w1, "changed",
G_CALLBACK (refresh_type_changed), source);
- w2 = e_plugin_util_add_check (NULL, _("Force read _only"), source, "custom-file-readonly", "1", NULL);
+ w2 = e_plugin_util_add_check (
+ NULL, _("Force read _only"), source,
+ "custom-file-readonly", "1", NULL);
gtk_box_pack_start ((GtkBox *) box1, w2, TRUE, TRUE, 2);
gtk_widget_show_all (mainbox);