aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-main.c')
-rw-r--r--src/ephy-main.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 4305d8175..d60d15a52 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -22,6 +22,7 @@
#include "ephy-shell.h"
#include "ephy-file-helpers.h"
+#include "ephy-object-helpers.h"
#include "ephy-state.h"
#include "ephy-debug.h"
#include "ephy-stock-icons.h"
@@ -135,13 +136,6 @@ shell_weak_notify (gpointer data,
gtk_main_quit ();
}
-static gboolean
-idle_unref (GObject *object)
-{
- g_object_unref (object);
- return FALSE;
-}
-
/* Copied from libnautilus/nautilus-program-choosing.c; Needed in case
* we have no DESKTOP_STARTUP_ID (with its accompanying timestamp).
*/
@@ -308,7 +302,7 @@ main (int argc, char *argv[])
else if (new_instance && ephy_shell)
{
g_object_weak_ref (G_OBJECT (ephy_shell), shell_weak_notify, NULL);
- g_idle_add ((GSourceFunc) idle_unref, ephy_shell);
+ ephy_object_idle_unref (ephy_shell);
gtk_main ();
}