diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-09-08 22:48:44 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-09-09 06:32:46 -0400 |
commit | 3526b08e01bd5290316d15a60870516c9f3bacc6 (patch) | |
tree | b89c5a5fe863f066534dcc867c1ca91b9c6fe275 /gtk/gtkiconcache.c | |
parent | 1b15588732f2c4e3c59994a59613d4e5c963e283 (diff) | |
download | gtk+-3526b08e01bd5290316d15a60870516c9f3bacc6.tar.gz |
Clean up debug features
Introduce a GTK_DEBUG_CHECK() macro and use it to check for
GTK_DEBUG flags everywhere. Also guard all such places by
Diffstat (limited to 'gtk/gtkiconcache.c')
-rw-r--r-- | gtk/gtkiconcache.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtkiconcache.c b/gtk/gtkiconcache.c index ac6035283d..3102003041 100644 --- a/gtk/gtkiconcache.c +++ b/gtk/gtkiconcache.c @@ -122,8 +122,7 @@ _gtk_icon_cache_new_for_path (const gchar *path) /* Verify cache is uptodate */ if (st.st_mtime < path_st.st_mtime) { - GTK_NOTE (ICONTHEME, - g_print ("cache outdated\n")); + GTK_NOTE (ICONTHEME, g_print ("cache outdated\n")); goto done; } @@ -133,7 +132,7 @@ _gtk_icon_cache_new_for_path (const gchar *path) goto done; #ifdef G_ENABLE_DEBUG - if (gtk_get_debug_flags () & GTK_DEBUG_ICONTHEME) + if (GTK_DEBUG_CHECK (ICONTHEME)) { CacheInfo info; |