[libwnck] WnckProp: include Window Role



commit b403e1605813ba6be79e1fb95a8ae1e5d11c4961
Author: Marco Trevisan (TreviÃo) <mail 3v1n0 net>
Date:   Tue Feb 5 22:04:18 2013 +0100

    WnckProp: include Window Role

 libwnck/wnckprop.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libwnck/wnckprop.c b/libwnck/wnckprop.c
index e4a4456..ad8fb01 100644
--- a/libwnck/wnckprop.c
+++ b/libwnck/wnckprop.c
@@ -1538,6 +1538,13 @@ print_window (WnckWindow *window)
     buf = _("<unset>");
   g_print (_("Session ID: %s\n"), buf);
 
+  if (wnck_window_get_role (window))
+    buf = wnck_window_get_role (window);
+  else
+    /* Translators: 'unset' in the sense of "something has not been set". */
+    buf = _("<unset>");
+  g_print (_("Role: %s\n"), buf);
+
   if (wnck_window_get_group_leader (window) != wnck_window_get_xid (window))
     /* Translators: A group leader is the window that is the "owner" of a group
      * of windows, ie: if you have multiple windows in one application, one



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