[epiphany] Fix potential homepage URL sigsegv



commit 938bdadb5e2b0459935ddbc054b3fd97ed3d7ee4
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Thu Jun 4 20:30:12 2020 +0200

    Fix potential homepage URL sigsegv
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/610

 src/ephy-action-bar-start.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/ephy-action-bar-start.c b/src/ephy-action-bar-start.c
index 74ff103df..c5fae51a9 100644
--- a/src/ephy-action-bar-start.c
+++ b/src/ephy-action-bar-start.c
@@ -532,10 +532,11 @@ ephy_action_bar_start_constructed (GObject *object)
   embed_shell = ephy_embed_shell_get_default ();
   if (ephy_embed_shell_get_mode (embed_shell) != EPHY_EMBED_SHELL_MODE_APPLICATION) {
     homepage_url_changed (EPHY_SETTINGS_MAIN, EPHY_PREFS_HOMEPAGE_URL, action_bar_start->homepage_button);
-    g_signal_connect (EPHY_SETTINGS_MAIN,
-                      "changed::" EPHY_PREFS_HOMEPAGE_URL,
-                      G_CALLBACK (homepage_url_changed),
-                      action_bar_start->homepage_button);
+    g_signal_connect_object (EPHY_SETTINGS_MAIN,
+                             "changed::" EPHY_PREFS_HOMEPAGE_URL,
+                             G_CALLBACK (homepage_url_changed),
+                             action_bar_start->homepage_button,
+                             0);
   } else {
     gtk_widget_set_visible (action_bar_start->homepage_button, FALSE);
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]