[sysprof/wip/gtk4-port: 122/132] resizer: fix warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/gtk4-port: 122/132] resizer: fix warnings
- Date: Tue, 7 Dec 2021 08:29:13 +0000 (UTC)
commit a55adf098c3f50293ab8a668b0f5b2fd8324a137
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]