aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarcel Stimberg <marcelcoding@googlemail.com>2009-05-04 12:40:55 +0800
committerBharath Acharya <abharath@novell.com>2009-05-04 12:40:55 +0800
commit6e72a236dcb592a942881e118d6a71888ea1581b (patch)
treec4c3c8a45aa257efd819dea3a59c14c9c0b117b7 /shell
parentfad86a267fd3c0ebc402ca67f14a0d2f74f57b74 (diff)
downloadgsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar.gz
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar.bz2
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar.lz
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar.xz
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar.zst
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.zip
** BUGFIX: 573830 - g_timeout_add_seconds should be preferred to g_timeout_add
According to https://wiki.ubuntu.com/SavingTheWorld (and of course according to the gtk docs) using g_timeout_add_seconds is preferred over g_timeout_add if a timeout in seconds is desired.
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell-nm.c2
-rw-r--r--shell/e-shell-window.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/e-shell-nm.c b/shell/e-shell-nm.c
index 5162aa5fea..f7e4d3e63b 100644
--- a/shell/e-shell-nm.c
+++ b/shell/e-shell-nm.c
@@ -71,7 +71,7 @@ e_shell_network_monitor (DBusConnection *connection G_GNUC_UNUSED,
dbus_connection_unref (dbus_connection);
dbus_connection = NULL;
- g_timeout_add (3000, reinit_dbus, shell);
+ g_timeout_add_seconds (3, reinit_dbus, shell);
return DBUS_HANDLER_RESULT_HANDLED;
}
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c
index 516df0cfdb..9d6905203b 100644
--- a/shell/e-shell-window.c
+++ b/shell/e-shell-window.c
@@ -924,7 +924,7 @@ impl_size_alloc (GtkWidget* widget, GtkAllocation* alloc)
if (GTK_WIDGET_REALIZED(widget) && !(gdk_window_get_state(widget->window) & GDK_WINDOW_STATE_MAXIMIZED)) {
/* update the size storage timer */
- self->priv->store_window_size_timer = g_timeout_add (1000, (GSourceFunc)store_window_size, self);
+ self->priv->store_window_size_timer = g_timeout_add_seconds (1, (GSourceFunc)store_window_size, self);
}
if (GTK_WIDGET_CLASS (e_shell_window_parent_class)->size_allocate) {