[gtk/im-context-work: 2/3] composetable: Warn when ignoring things




commit 61f709811c75e733afb9e3c5049faedc8bb5fd8f
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 1 12:21:06 2021 -0500

    composetable: Warn when ignoring things
    
    We should at least give a hint that we've seen the line,
    otherwise people will wonder why nothing happened.

 gtk/gtkcomposetable.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkcomposetable.c b/gtk/gtkcomposetable.c
index 82f591850c..afcedc42df 100644
--- a/gtk/gtkcomposetable.c
+++ b/gtk/gtkcomposetable.c
@@ -218,7 +218,10 @@ parse_compose_line (GList       **compose_list,
     return;
 
   if (g_str_has_prefix (line, "include "))
-    return;
+    {
+      g_warning ("include in Compose files not supported: %s", line);
+      return;
+    }
 
   components = g_strsplit (line, ":", 2);
 


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