diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-11-15 06:04:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-11-15 06:04:21 +0800 |
commit | 9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91 (patch) | |
tree | 2e1e96f33404781354c422a7e9beaf458ebeb655 /plugins/default-source/default-source.c | |
parent | 7e8f8bb9e5167b0219b48ab3e8062080d3740b0a (diff) | |
download | gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.gz gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.zst gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.zip |
** Remove trailing whitespace from source code.
2007-11-14 Matthew Barnes <mbarnes@redhat.com>
** Remove trailing whitespace from source code.
svn path=/trunk/; revision=34537
Diffstat (limited to 'plugins/default-source/default-source.c')
-rw-r--r-- | plugins/default-source/default-source.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/default-source/default-source.c b/plugins/default-source/default-source.c index f6a670bdf6..129c89a4d2 100644 --- a/plugins/default-source/default-source.c +++ b/plugins/default-source/default-source.c @@ -32,7 +32,7 @@ GtkWidget* org_gnome_default_book (EPlugin *epl, EConfigHookItemFactoryData *data); void commit_default_calendar (EPlugin *epl, EConfigTarget *target); void commit_default_book (EPlugin *epl, EConfigTarget *target); -void +void commit_default_calendar (EPlugin *epl, EConfigTarget *target) { ECalConfigTargetSource *cal_target; @@ -40,7 +40,7 @@ commit_default_calendar (EPlugin *epl, EConfigTarget *target) cal_target = (ECalConfigTargetSource *) target; source = cal_target->source; - if (e_source_get_property (source, "default")) + if (e_source_get_property (source, "default")) e_cal_set_default_source (source, cal_target->source_type, NULL); } @@ -54,17 +54,17 @@ commit_default_book (EPlugin *epl, EConfigTarget *target) source = book_target->source; if (e_source_get_property (source, "default")) e_book_set_default_source (source, NULL); - - + + } static void default_source_changed (GtkWidget *check_box, ESource *source) { - - if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_box))) + + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_box))) e_source_set_property (source, "default", "true"); - else + else e_source_set_property (source, "default", NULL); } @@ -75,16 +75,16 @@ org_gnome_default_book (EPlugin *epl, EConfigHookItemFactoryData *data) GtkWidget *widget; ESource *source; EABConfigTargetSource *book_target; - + if (data->old) return data->old; widget = gtk_check_button_new_with_mnemonic (_("Mark as _default folder")); book_target = (EABConfigTargetSource *) data->target; source = book_target->source; - + if (e_source_get_property (source, "default")) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE); - else + else gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), FALSE); gtk_container_add (GTK_CONTAINER (data->parent), widget); @@ -108,12 +108,12 @@ org_gnome_default_cal (EPlugin *epl, EConfigHookItemFactoryData *data) widget = gtk_check_button_new_with_mnemonic (_("Mark as _default folder")); cal_target = (ECalConfigTargetSource *) data->target; source = cal_target->source; - + if (e_source_get_property (source, "default")) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE); - else + else gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), FALSE); - + i = ((GtkTable *)data->parent)->nrows; gtk_table_attach((GtkTable *)data->parent, widget, 1, 2, i, i+1, GTK_EXPAND | GTK_FILL, 0, 0, 0); |