[gnome-notes] compiler: Use gtk_widget_destroy directly



commit c82fae5c30e9dc98dabcc4bb4ba1c5822784f3bf
Author: Isaque Galdino <igaldino gmail com>
Date:   Fri Oct 26 15:58:37 2018 -0300

    compiler: Use gtk_widget_destroy directly

 src/bjb-application.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/bjb-application.c b/src/bjb-application.c
index b84ae88..e4def44 100644
--- a/src/bjb-application.c
+++ b/src/bjb-application.c
@@ -586,8 +586,7 @@ bjb_app_import_notes (BjbApplication *self)
       g_list_free_full (locations, g_free);
     }
 
-  if (dialog)
-    g_clear_pointer (&dialog, gtk_widget_destroy);
+  gtk_widget_destroy (GTK_WIDGET (dialog));
 }
 
 void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]