[libwnck] wnckprop: Tweak print of class instance name



commit 65ecde53d993970600b42f0b183b9485dd181099
Author: Vincent Untz <vuntz gnome org>
Date:   Fri Aug 12 12:24:38 2011 +0200

    wnckprop: Tweak print of class instance name
    
    Check that it's not empty, and add translator comment.

 libwnck/wnckprop.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libwnck/wnckprop.c b/libwnck/wnckprop.c
index b8f363d..5691f52 100644
--- a/libwnck/wnckprop.c
+++ b/libwnck/wnckprop.c
@@ -1507,12 +1507,14 @@ print_window (WnckWindow *window)
    * same class. */
   g_print (_("Class Group: %s\n"), buf);
 
-  if (wnck_window_get_class_instance_name (window))
+  if (g_strcmp0 (wnck_window_get_class_instance_name (window), ""))
     buf = wnck_window_get_class_instance_name (window);
   else
     /* Translators: 'unset' in the sense of "something has not been set". */
     buf = _("<unset>");
-
+  /* Translators: A class is like a "family". E.g., all gvim windows are of the
+   * same class. The class instance is a way to differentiate windows belonging
+   * to the same class group. */
   g_print (_("Class Instance: %s\n"), buf);
 
   g_print (_("XID: %lu\n"), wnck_window_get_xid (window));



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