[sysprof/wip/gtk4-port: 115/125] resizer: fix warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/gtk4-port: 115/125] resizer: fix warnings
- Date: Fri, 29 Oct 2021 02:02:35 +0000 (UTC)
commit 24c76321c66b1dd280d7bcddf558117ab869ac9c
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 1 15:22:19 2021 -0700
resizer: fix warnings
src/libsysprof-ui/egg-resizer.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/libsysprof-ui/egg-resizer.c b/src/libsysprof-ui/egg-resizer.c
index 6918439c..1292f7ed 100644
--- a/src/libsysprof-ui/egg-resizer.c
+++ b/src/libsysprof-ui/egg-resizer.c
@@ -90,7 +90,6 @@ egg_resizer_drag_begin_cb (EggResizer *self,
break;
}
-deny_sequence:
gtk_gesture_set_state (GTK_GESTURE (drag),
GTK_EVENT_SEQUENCE_DENIED);
@@ -323,8 +322,13 @@ egg_resizer_dispose (GObject *object)
{
EggResizer *self = (EggResizer *)object;
- g_clear_pointer ((GtkWidget **)&self->handle, gtk_widget_unparent);
- g_clear_pointer ((GtkWidget **)&self->child, gtk_widget_unparent);
+ if (self->handle)
+ gtk_widget_unparent (GTK_WIDGET (self->handle));
+ self->handle = NULL;
+
+ if (self->child)
+ gtk_widget_unparent (self->child);
+ self->child = NULL;
G_OBJECT_CLASS (egg_resizer_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]