aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2013-03-19 17:34:22 +0800
committerXan Lopez <xan@igalia.com>2013-03-19 17:34:22 +0800
commit0bfdcd1e9c9378d8e0be2255270d90cb109a1764 (patch)
tree7fee4f45fd78831f18d1c12fcc6158a6e1fdfebc /embed/ephy-web-view.c
parent6e1e6675b4ea682640020c2615d59a07e4a6d408 (diff)
downloadgsoc2013-epiphany-0bfdcd1e9c9378d8e0be2255270d90cb109a1764.tar
gsoc2013-epiphany-0bfdcd1e9c9378d8e0be2255270d90cb109a1764.tar.gz
gsoc2013-epiphany-0bfdcd1e9c9378d8e0be2255270d90cb109a1764.tar.bz2
gsoc2013-epiphany-0bfdcd1e9c9378d8e0be2255270d90cb109a1764.tar.lz
gsoc2013-epiphany-0bfdcd1e9c9378d8e0be2255270d90cb109a1764.tar.xz
gsoc2013-epiphany-0bfdcd1e9c9378d8e0be2255270d90cb109a1764.tar.zst
gsoc2013-epiphany-0bfdcd1e9c9378d8e0be2255270d90cb109a1764.zip
ephy-web-view: actually move signal handler disconnects to dispose
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 5692d0338..dde69c0c6 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -480,35 +480,6 @@ ephy_web_view_button_press_event (GtkWidget *widget, GdkEventButton *event)
return GTK_WIDGET_CLASS (ephy_web_view_parent_class)->button_press_event (widget, event);
}
-static void
-ephy_web_view_dispose (GObject *object)
-{
- EphyWebViewPrivate *priv = EPHY_WEB_VIEW (object)->priv;
-
- g_clear_object (&priv->file_monitor);
-
- g_clear_object (&priv->icon);
-
- if (priv->history_service_cancellable) {
- g_cancellable_cancel (priv->history_service_cancellable);
- g_clear_object (&priv->history_service_cancellable);
- }
-
- if (priv->snapshot_idle_id) {
- g_source_remove (priv->snapshot_idle_id);
- priv->snapshot_idle_id = 0;
- }
-
- if (priv->show_process_crash_page_id) {
- g_source_remove (priv->show_process_crash_page_id);
- priv->show_process_crash_page_id = 0;
- }
-
- g_clear_object(&priv->certificate);
-
- G_OBJECT_CLASS (ephy_web_view_parent_class)->dispose (object);
-}
-
static GtkWidget *
ephy_web_view_create_form_auth_save_confirmation_info_bar (EphyWebView *web_view,
const char *hostname,
@@ -1079,7 +1050,7 @@ form_auth_data_save_requested (EphyEmbedShell *shell,
#endif
static void
-ephy_web_view_finalize (GObject *object)
+ephy_web_view_dispose (GObject *object)
{
EphyWebViewPrivate *priv = EPHY_WEB_VIEW (object)->priv;
@@ -1093,6 +1064,35 @@ ephy_web_view_finalize (GObject *object)
g_signal_handlers_disconnect_by_func (ephy_embed_shell_get_default (), form_auth_data_save_requested, object);
#endif
+ g_clear_object (&priv->file_monitor);
+
+ g_clear_object (&priv->icon);
+
+ if (priv->history_service_cancellable) {
+ g_cancellable_cancel (priv->history_service_cancellable);
+ g_clear_object (&priv->history_service_cancellable);
+ }
+
+ if (priv->snapshot_idle_id) {
+ g_source_remove (priv->snapshot_idle_id);
+ priv->snapshot_idle_id = 0;
+ }
+
+ if (priv->show_process_crash_page_id) {
+ g_source_remove (priv->show_process_crash_page_id);
+ priv->show_process_crash_page_id = 0;
+ }
+
+ g_clear_object(&priv->certificate);
+
+ G_OBJECT_CLASS (ephy_web_view_parent_class)->dispose (object);
+}
+
+static void
+ephy_web_view_finalize (GObject *object)
+{
+ EphyWebViewPrivate *priv = EPHY_WEB_VIEW (object)->priv;
+
if (priv->non_search_regex) {
g_regex_unref (priv->non_search_regex);
priv->non_search_regex = NULL;