From 07afa55d2e0ddff3a4041d7d5b03e0ab43cb96df Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Tue, 22 Sep 2009 16:19:44 -0400 Subject: Fix code style --- src/theme.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/theme.c b/src/theme.c index ff3c04b..e3cd40b 100644 --- a/src/theme.c +++ b/src/theme.c @@ -535,16 +535,15 @@ set_notification_hints (GtkWindow *nw, value = (GValue *)g_hash_table_lookup (hints, "urgency"); - if (value != NULL && G_VALUE_HOLDS_UCHAR (value)) - { - windata->urgency = g_value_get_uchar (value); - - if (windata->urgency == URGENCY_CRITICAL) { - gtk_window_set_title (GTK_WINDOW (nw), "Critical Notification"); - } else { - gtk_window_set_title (GTK_WINDOW (nw), "Notification"); - } + if (value != NULL && G_VALUE_HOLDS_UCHAR (value)) { + windata->urgency = g_value_get_uchar (value); + + if (windata->urgency == URGENCY_CRITICAL) { + gtk_window_set_title (GTK_WINDOW (nw), "Critical Notification"); + } else { + gtk_window_set_title (GTK_WINDOW (nw), "Notification"); } + } } void @@ -566,11 +565,10 @@ notification_tick (GtkWindow *nw, windata->remaining = remaining; - if (windata->pie_countdown != NULL) - { - gtk_widget_queue_draw_area (windata->pie_countdown, 0, 0, - PIE_WIDTH, PIE_HEIGHT); - } + if (windata->pie_countdown != NULL) { + gtk_widget_queue_draw_area (windata->pie_countdown, 0, 0, + PIE_WIDTH, PIE_HEIGHT); + } } void -- cgit v1.2.3