[gnome-builder/wip/chergert/flatpak-repo: 21/29] omnibar: use g_signal_connect_object()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/flatpak-repo: 21/29] omnibar: use g_signal_connect_object()
- Date: Wed, 25 Aug 2021 22:17:38 +0000 (UTC)
commit bcf409882bea0c35ec914d2e99e051769bd67688
Author: Christian Hergert <chergert redhat com>
Date: Wed Aug 25 13:22:21 2021 -0700
omnibar: use g_signal_connect_object()
src/libide/gui/ide-omni-bar.c | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
---
diff --git a/src/libide/gui/ide-omni-bar.c b/src/libide/gui/ide-omni-bar.c
index 0ed14907f..486701be5 100644
--- a/src/libide/gui/ide-omni-bar.c
+++ b/src/libide/gui/ide-omni-bar.c
@@ -496,18 +496,21 @@ ide_omni_bar_init (IdeOmniBar *self)
gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (self->gesture), FALSE);
gtk_gesture_single_set_exclusive (GTK_GESTURE_SINGLE (self->gesture), TRUE);
gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (self->gesture), GDK_BUTTON_PRIMARY);
- g_signal_connect_swapped (self->gesture,
- "pressed",
- G_CALLBACK (multipress_pressed_cb),
- self);
- g_signal_connect_swapped (self->gesture,
- "released",
- G_CALLBACK (multipress_released_cb),
- self);
- g_signal_connect_swapped (self->gesture,
- "cancel",
- G_CALLBACK (multipress_cancel_cb),
- self);
+ g_signal_connect_object (self->gesture,
+ "pressed",
+ G_CALLBACK (multipress_pressed_cb),
+ self,
+ G_CONNECT_SWAPPED);
+ g_signal_connect_object (self->gesture,
+ "released",
+ G_CALLBACK (multipress_released_cb),
+ self,
+ G_CONNECT_SWAPPED);
+ g_signal_connect_object (self->gesture,
+ "cancel",
+ G_CALLBACK (multipress_cancel_cb),
+ self,
+ G_CONNECT_SWAPPED);
g_signal_connect_object (self->notification_stack,
"changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]