[metacity/matching] debugging warning if there's no role (like for say xlogo)



commit 9bdb9ac8b6a2716d82a4f05b1692e19dfff6c347
Author: Thomas Thurman <tthurman gnome org>
Date:   Fri Jul 10 08:04:19 2009 -0400

    debugging warning if there's no role (like for say xlogo)

 src/core/matching.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/core/matching.c b/src/core/matching.c
index d781cad..8b72f6e 100644
--- a/src/core/matching.c
+++ b/src/core/matching.c
@@ -56,7 +56,10 @@ meta_matching_save_to_role (MetaWindow *window)
   gchar *role = window->role;
 
   if (!role)
-    return;
+    {
+      g_warning ("No role: aborting\n");
+      return;
+    }
 
   load_matching_data ();
 



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