diff options
author | Adrien Plazas <kekun.plazas@laposte.net> | 2018-09-28 10:40:13 +0000 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@posteo.net> | 2018-09-28 14:24:46 +0000 |
commit | 28370f48051ec08e31bf8889258c5746c382b9ed (patch) | |
tree | 821cad3a49f5b439a4f601fc59f073982be383eb /src/ephy-header-bar.c | |
parent | 7552cfeafcbd95b7369a53dca25de4bff0146f9e (diff) | |
download | epiphany-28370f48051ec08e31bf8889258c5746c382b9ed.tar.gz |
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().
(cherry picked from commit 574fe914f5e51737130688d39a6066d15360c5c8)
Diffstat (limited to 'src/ephy-header-bar.c')
-rw-r--r-- | src/ephy-header-bar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ephy-header-bar.c b/src/ephy-header-bar.c index 58cb41a55..d216655a6 100644 --- a/src/ephy-header-bar.c +++ b/src/ephy-header-bar.c @@ -147,8 +147,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 (); |