diff options
author | William Jon McCann <jmccann@redhat.com> | 2009-09-22 16:19:44 -0400 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2009-09-22 16:19:44 -0400 |
commit | 07afa55d2e0ddff3a4041d7d5b03e0ab43cb96df (patch) | |
tree | 7b5dc6ff4b6475587ff026b7f6bb7f03fe7a2c46 | |
parent | 517980fc96cf42cba127e2e9c2f9462904fb1a80 (diff) |
Fix code style
-rw-r--r-- | src/theme.c | 26 |
1 files 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 |