[gnome-notes] compiler: Use gtk_widget_destroy directly
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] compiler: Use gtk_widget_destroy directly
- Date: Fri, 26 Oct 2018 19:03:38 +0000 (UTC)
commit 575965c7415cbe2bab5bff1dcec60685e3c4f86b
Author: Isaque Galdino <igaldino gmail com>
Date: Fri Oct 26 16:01:58 2018 -0300
compiler: Use gtk_widget_destroy directly
src/bjb-window-base.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/bjb-window-base.c b/src/bjb-window-base.c
index 6de4f83..5c8b3cc 100644
--- a/src/bjb-window-base.c
+++ b/src/bjb-window-base.c
@@ -521,7 +521,9 @@ destroy_note_if_needed (BjbWindowBase *self)
self->note = NULL;
if (self->note_view && GTK_IS_WIDGET (self->note_view))
- g_clear_pointer (&(self->note_view), gtk_widget_destroy);
+ gtk_widget_destroy (GTK_WIDGET (self->note_view));
+
+ self->note_view = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]