aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmarks.c5
-rw-r--r--src/ephy-dbus.c7
-rw-r--r--src/ephy-extensions-manager.c6
-rw-r--r--src/ephy-session.c3
4 files changed, 13 insertions, 8 deletions
diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c
index 51c234627..6c36c08f1 100644
--- a/src/bookmarks/ephy-bookmarks.c
+++ b/src/bookmarks/ephy-bookmarks.c
@@ -38,6 +38,7 @@
#include "ephy-marshal.h"
#include "ephy-signal-accumulator.h"
#include "ephy-stock-icons.h"
+#include "ephy-glib-compat.h"
#include "eel-gconf-extensions.h"
@@ -50,7 +51,7 @@
#define EPHY_BOOKMARKS_XML_ROOT "ephy_bookmarks"
#define EPHY_BOOKMARKS_XML_VERSION "1.03"
-#define BOOKMARKS_SAVE_DELAY (3 * 1000) /* ms */
+#define BOOKMARKS_SAVE_DELAY 3 /* seconds */
#define MAX_FAVORITES_NUM 10
#define UPDATE_URI_DATA_KEY "updated-uri"
#define SD_RESOLVE_TIMEOUT 0 /* ms; 0 means no timeout */
@@ -289,7 +290,7 @@ ephy_bookmarks_save_delayed (EphyBookmarks *bookmarks, int delay)
if (delay > 0)
{
bookmarks->priv->save_timeout_id =
- g_timeout_add (BOOKMARKS_SAVE_DELAY,
+ g_timeout_add_seconds (BOOKMARKS_SAVE_DELAY,
(GSourceFunc) save_bookmarks_delayed,
bookmarks);
}
diff --git a/src/ephy-dbus.c b/src/ephy-dbus.c
index eb68dd049..c365d02d1 100644
--- a/src/ephy-dbus.c
+++ b/src/ephy-dbus.c
@@ -27,6 +27,7 @@
#include "ephy-debug.h"
#include "ephy-activation.h"
#include "ephy-dbus-server-bindings.h"
+#include "ephy-glib-compat.h"
#include <string.h>
#include <dbus/dbus-glib-bindings.h>
@@ -46,7 +47,7 @@
#define DBUS_EPHY_PATH "/org/gnome/Epiphany"
#define DBUS_EPHY_INTERFACE "org.gnome.Epiphany"
-#define RECONNECT_DELAY 3000
+#define RECONNECT_DELAY 3 /* seconds */
#define EPHY_DBUS_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_DBUS, EphyDbusPrivate))
@@ -149,7 +150,7 @@ session_filter_func (DBusConnection *connection,
/* try to reconnect later ... */
priv->session_reconnect_timeout_id =
- g_timeout_add (RECONNECT_DELAY,
+ g_timeout_add_seconds (RECONNECT_DELAY,
(GSourceFunc) ephy_dbus_connect_to_session_bus_cb,
ephy_dbus);
@@ -182,7 +183,7 @@ system_filter_func (DBusConnection *connection,
/* try to reconnect later ... */
priv->system_reconnect_timeout_id =
- g_timeout_add (RECONNECT_DELAY,
+ g_timeout_add_seconds (RECONNECT_DELAY,
(GSourceFunc) ephy_dbus_connect_to_system_bus_cb,
ephy_dbus);
diff --git a/src/ephy-extensions-manager.c b/src/ephy-extensions-manager.c
index bd8ca8e00..23ca87996 100644
--- a/src/ephy-extensions-manager.c
+++ b/src/ephy-extensions-manager.c
@@ -35,6 +35,8 @@
#include "ephy-object-helpers.h"
#include "ephy-debug.h"
+#include "ephy-glib-compat.h"
+
#include <libxml/tree.h>
#include <libxml/xmlreader.h>
#include <libxml/globals.h>
@@ -62,7 +64,7 @@
#define EE_GROUP "Epiphany Extension"
#define DOT_INI ".ephy-extension"
#define RELOAD_DELAY 333 /* ms */
-#define RELOAD_SYNC_DELAY 1000 /* ms */
+#define RELOAD_SYNC_DELAY 1 /* seconds */
#define ENABLE_LEGACY_FORMAT
@@ -940,7 +942,7 @@ reload_cb (gpointer *data)
g_source_remove (priv->sync_timeout_id);
}
- priv->sync_timeout_id = g_timeout_add (RELOAD_SYNC_DELAY,
+ priv->sync_timeout_id = g_timeout_add_seconds (RELOAD_SYNC_DELAY,
(GSourceFunc) reload_sync_cb,
manager);
return FALSE;
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 1214d9e07..b8493abdd 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -35,6 +35,7 @@
#include "ephy-gui.h"
#include "ephy-debug.h"
#include "ephy-stock-icons.h"
+#include "ephy-glib-compat.h"
#include <glib/gi18n.h>
#include <gtk/gtkmain.h>
@@ -293,7 +294,7 @@ confirm_shutdown_cb (GnomeClient *client,
data->key = key;
/* This isn't very exact, but it's good enough here */
- data->timeout_id = g_timeout_add (1000,
+ data->timeout_id = g_timeout_add_seconds (1,
(GSourceFunc) confirm_shutdown_dialog_tick_cb,
data);
data->ticks = 60;