[gnome-calendar/calendar-editor] source-dialog: fix style issues
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-editor] source-dialog: fix style issues
- Date: Mon, 23 Feb 2015 17:17:41 +0000 (UTC)
commit 0368bd1ea646d9c86488b88a50415c07a3d0f1fa
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Feb 23 14:17:20 2015 -0300
source-dialog: fix style issues
src/gcal-source-dialog.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index d9a98ef..1f0e2b3 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -197,13 +197,9 @@ default_check_toggled (GObject *object,
* default source.
*/
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (object)))
- {
- gcal_manager_set_default_source (priv->manager, priv->source);
- }
+ gcal_manager_set_default_source (priv->manager, priv->source);
else
- {
- gcal_manager_set_default_source (priv->manager, priv->old_default_source);
- }
+ gcal_manager_set_default_source (priv->manager, priv->old_default_source);
}
@@ -266,13 +262,9 @@ notebook_page_switched (GtkWidget *notebook,
GcalSourceDialogPrivate *priv = GCAL_SOURCE_DIALOG (user_data)->priv;
if (page_num == 0)
- {
- gtk_widget_set_sensitive (priv->add_button, (priv->remote_source != NULL));
- }
+ gtk_widget_set_sensitive (priv->add_button, (priv->remote_source != NULL));
else
- {
- gtk_widget_set_sensitive (priv->add_button, (priv->local_source != NULL));
- }
+ gtk_widget_set_sensitive (priv->add_button, (priv->local_source != NULL));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]