[epiphany/gnome-3-30] header-bar: Fix connection to window chrome



commit 574fe914f5e51737130688d39a6066d15360c5c8
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri Sep 28 12:40:13 2018 +0200

    header-bar: Fix connection to window chrome
    
    Connect to changes in the window's chrome with g_signal_connect_object()
    and G_CONNECT_SWAPPED rather than g_signal_connect_swapped().

 src/ephy-header-bar.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-header-bar.c b/src/ephy-header-bar.c
index b17ef7a50..f1785f43d 100644
--- a/src/ephy-header-bar.c
+++ b/src/ephy-header-bar.c
@@ -160,8 +160,9 @@ ephy_header_bar_constructed (GObject *object)
 
   G_OBJECT_CLASS (ephy_header_bar_parent_class)->constructed (object);
 
-  g_signal_connect_swapped (header_bar->window, "notify::chrome",
-                            G_CALLBACK (sync_chromes_visibility), header_bar);
+  g_signal_connect_object (header_bar->window, "notify::chrome",
+                           G_CALLBACK (sync_chromes_visibility), header_bar,
+                           G_CONNECT_SWAPPED);
 
   /* Start action elements */
   header_bar->action_bar_start = ephy_action_bar_start_new ();


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