[gnome-calendar/date-selector] date-selector: fix code style
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/date-selector] date-selector: fix code style
- Date: Tue, 23 Dec 2014 14:31:23 +0000 (UTC)
commit 8df49c56ceda7eb5af3f60b7bd592232012e4d48
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Dec 23 12:31:14 2014 -0200
date-selector: fix code style
src/gcal-date-selector.c | 18 ++++++------------
1 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/src/gcal-date-selector.c b/src/gcal-date-selector.c
index 81335d1..1f3654b 100644
--- a/src/gcal-date-selector.c
+++ b/src/gcal-date-selector.c
@@ -97,14 +97,11 @@ calendar_day_selected (GtkCalendar *calendar,
* Block signal handler to avoid an infinite
* recursion, exploding the proccess stack.
*/
- g_signal_handlers_block_by_func (priv->calendar,
- calendar_day_selected,
- user_data);
+ g_signal_handlers_block_by_func (priv->calendar, calendar_day_selected, user_data);
+
gcal_date_selector_set_date (GCAL_DATE_SELECTOR (user_data), day, month + 1, year);
- g_signal_handlers_unblock_by_func (priv->calendar,
- calendar_day_selected,
- user_data);
+ g_signal_handlers_unblock_by_func (priv->calendar, calendar_day_selected, user_data);
}
static gboolean
@@ -156,14 +153,11 @@ parse_entries (GcalDateSelector *selector)
}
/* select the date */
- g_signal_handlers_block_by_func (priv->calendar,
- calendar_day_selected,
- selector);
+ g_signal_handlers_block_by_func (priv->calendar, calendar_day_selected, selector);
+
gcal_date_selector_set_date (selector, day, month, year);
- g_signal_handlers_unblock_by_func (priv->calendar,
- calendar_day_selected,
- selector);
+ g_signal_handlers_unblock_by_func (priv->calendar, calendar_day_selected, selector);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]