[libwnck] wnckprop: Tweak print of class instance name
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck] wnckprop: Tweak print of class instance name
- Date: Fri, 12 Aug 2011 10:57:43 +0000 (UTC)
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]