aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-08-25 21:00:38 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-09-01 20:06:32 +0800
commitd89e767a1cde7b3349182e713085241e58a30fe8 (patch)
tree2c054ebfdc252d71a774b6be11fdaa2a5ee64494 /e-util
parentcaff4060d5542aec79b8e27d0a35f8097c5fdfc0 (diff)
downloadgsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar.gz
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar.bz2
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar.lz
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar.xz
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.tar.zst
gsoc2013-evolution-d89e767a1cde7b3349182e713085241e58a30fe8.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-util.c16
1 files changed, 11 insertions, 5 deletions
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;
}