[libpeas] libpeas-gtk: remove GDestroyNotify cast from g_clear_pointer



commit 8ef8dc542c10af281651f12c2cfc78437bd66158
Author: Christian Hergert <chergert redhat com>
Date:   Mon Aug 5 14:46:08 2019 -0700

    libpeas-gtk: remove GDestroyNotify cast from g_clear_pointer
    
    This can be type checked with macros now.

 libpeas-gtk/peas-gtk-plugin-manager-view.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/libpeas-gtk/peas-gtk-plugin-manager-view.c b/libpeas-gtk/peas-gtk-plugin-manager-view.c
index c6afbff..ce9e7ba 100644
--- a/libpeas-gtk/peas-gtk-plugin-manager-view.c
+++ b/libpeas-gtk/peas-gtk-plugin-manager-view.c
@@ -754,8 +754,7 @@ peas_gtk_plugin_manager_view_dispose (GObject *object)
   PeasGtkPluginManagerView *view = PEAS_GTK_PLUGIN_MANAGER_VIEW (object);
   PeasGtkPluginManagerViewPrivate *priv = GET_PRIV (view);
 
-  g_clear_pointer (&priv->popup_menu,
-                   (GDestroyNotify) gtk_widget_destroy);
+  g_clear_pointer (&priv->popup_menu, gtk_widget_destroy);
 
   g_clear_object (&priv->engine);
   g_clear_object (&priv->store);


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