[epiphany] header-bar: Fix connection to window chrome
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] header-bar: Fix connection to window chrome
- Date: Fri, 28 Sep 2018 14:24:55 +0000 (UTC)
commit 28370f48051ec08e31bf8889258c5746c382b9ed
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Sep 28 10:40:13 2018 +0000
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)
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 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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]