diff options
author | Vincent Untz <vuntz@gnome.org> | 2011-08-12 12:46:49 +0200 |
---|---|---|
committer | Vincent Untz <vuntz@gnome.org> | 2011-08-12 12:46:49 +0200 |
commit | de8fb576b2db973e0adf98f412a5667a2c4b2d09 (patch) | |
tree | 10b7796f452fd3a7955cd72ac38994ffb8e793fb /libwnck/wnckprop.c | |
parent | 65ecde53d993970600b42f0b183b9485dd181099 (diff) | |
download | libwnck-de8fb576b2db973e0adf98f412a5667a2c4b2d09.tar.gz |
core, wnckprop: Use "ID" instead of "resource class" in WnckClassGroup
To avoid any confusion for people not knowing what the WM_CLASS is, we
talk about "identifier" instead of "resource class".
This means we deprecate wnck_class_group_get_res_class();
wnck_class_group_get_id() should be used instead.
Diffstat (limited to 'libwnck/wnckprop.c')
-rw-r--r-- | libwnck/wnckprop.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/libwnck/wnckprop.c b/libwnck/wnckprop.c index 5691f52..ac00217 100644 --- a/libwnck/wnckprop.c +++ b/libwnck/wnckprop.c @@ -1347,10 +1347,13 @@ print_class_group (WnckClassGroup *class_group) windows = wnck_class_group_get_windows (class_group); - /* Translators: Resource class is the name to identify a class. */ - g_print (_("Resource Class: %s\n"), - wnck_class_group_get_res_class (class_group)); - g_print (_("Group Name: %s\n"), wnck_class_group_get_name (class_group)); + /* Translators: A class is like a "family". E.g., all gvim windows are of the + * same class. */ + g_print (_("Class Group ID: %s\n"), + wnck_class_group_get_id (class_group)); + /* Translators: A class is like a "family". E.g., all gvim windows are of the + * same class. */ + g_print (_("Class Group Name: %s\n"), wnck_class_group_get_name (class_group)); /* TODO: missing API */ #if 0 @@ -1498,14 +1501,14 @@ print_window (WnckWindow *window) g_print (_("Geometry (x, y, width, height): %d, %d, %d, %d\n"), x, y, w, h); class_group = wnck_window_get_class_group (window); - if (strcmp (wnck_class_group_get_res_class (class_group), "")) - buf = wnck_class_group_get_res_class (class_group); + if (strcmp (wnck_class_group_get_id (class_group), "")) + buf = wnck_class_group_get_id (class_group); 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. */ - g_print (_("Class Group: %s\n"), buf); + g_print (_("Class Group ID: %s\n"), buf); if (g_strcmp0 (wnck_window_get_class_instance_name (window), "")) buf = wnck_window_get_class_instance_name (window); |