[gtk: 19/31] Use G_OBJECT_TYPE_NAME instead of g_type_name_from_instance



commit 79699cc20dbf733465957cf9ac800065d14fb290
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Feb 7 08:44:29 2020 +0100

    Use G_OBJECT_TYPE_NAME instead of g_type_name_from_instance

 gtk/gtkicontheme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 5c4ce8160c..e108567ffb 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -3622,7 +3622,7 @@ gtk_icon_theme_lookup_by_gicon (GtkIconTheme       *self,
     }
   else
     {
-      g_debug ("Unhandled GIcon type %s", g_type_name_from_instance ((GTypeInstance *)gicon));
+      g_debug ("Unhandled GIcon type %s", G_OBJECT_TYPE_NAME (gicon));
       icon = icon_paintable_new (size, scale);
       icon->icon_name = g_strdup ("image-missing");
       icon->filename = g_strdup (IMAGE_MISSING_RESOURCE_PATH);


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