From d89e767a1cde7b3349182e713085241e58a30fe8 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 25 Aug 2012 09:00:38 -0400 Subject: Coding style and whitespace cleanup. --- e-util/e-util.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'e-util') diff --git a/e-util/e-util.c b/e-util/e-util.c index 38bcdfd6ef..8d47da2186 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -121,16 +121,22 @@ window_update_settings (WindowData *data) return FALSE; } -static gboolean -window_configure_event_cb (GtkWindow *window, - GdkEventConfigure *event, - WindowData *data) +static void +window_delayed_update_settings (WindowData *data) { if (data->timeout_id > 0) g_source_remove (data->timeout_id); data->timeout_id = g_timeout_add_seconds ( 1, (GSourceFunc) window_update_settings, data); +} + +static gboolean +window_configure_event_cb (GtkWindow *window, + GdkEventConfigure *event, + WindowData *data) +{ + window_delayed_update_settings (data); return FALSE; } @@ -165,7 +171,7 @@ window_state_event_cb (GtkWindow *window, gtk_window_resize (window, width, height); } - window_configure_event_cb (window, NULL, data); + window_delayed_update_settings (data); return FALSE; } -- cgit v1.2.3