[gnome-builder] layout: use g_signal_connect_object()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] layout: use g_signal_connect_object()
- Date: Tue, 24 Jul 2018 19:37:43 +0000 (UTC)
commit 300c1f0645c84584e3964e9139b134fb29c917a6
Author: Christian Hergert <chergert redhat com>
Date: Tue Jul 24 12:36:53 2018 -0700
layout: use g_signal_connect_object()
It's nice to get the extra safety of object invalidation here.
src/libide/layout/ide-layout-stack-header.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/libide/layout/ide-layout-stack-header.c b/src/libide/layout/ide-layout-stack-header.c
index 44fee8389..f9cb963cc 100644
--- a/src/libide/layout/ide-layout-stack-header.c
+++ b/src/libide/layout/ide-layout-stack-header.c
@@ -255,10 +255,10 @@ create_document_row (gpointer item,
NULL),
"visible", TRUE,
NULL);
- g_signal_connect (close_button,
- "clicked",
- G_CALLBACK (close_view_cb),
- self);
+ g_signal_connect_object (close_button,
+ "clicked",
+ G_CALLBACK (close_view_cb),
+ self, 0);
dzl_gtk_widget_add_style_class (GTK_WIDGET (close_button), "image-button");
g_object_bind_property (item, "icon-name", image, "icon-name", G_BINDING_SYNC_CREATE);
@@ -695,10 +695,10 @@ ide_layout_stack_header_init (IdeLayoutStackHeader *self)
* hide the popover.
*/
- g_signal_connect (self->title_list_box,
- "row-activated",
- G_CALLBACK (ide_layout_stack_header_view_row_activated),
- self);
+ g_signal_connect_object (self->title_list_box,
+ "row-activated",
+ G_CALLBACK (ide_layout_stack_header_view_row_activated),
+ self, 0);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gtk_container_set_reallocate_redraws (GTK_CONTAINER (self), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]