summaryrefslogtreecommitdiff
path: root/libwnck/workspace.c
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2007-06-24 19:59:57 +0000
committerVincent Untz <vuntz@src.gnome.org>2007-06-24 19:59:57 +0000
commit92d69c357d56866a9f0fc8a4c11cd9f67262a193 (patch)
treef698c4cff92cf114ffa17eddc4cd845278856f8d /libwnck/workspace.c
parent65698923b531e9bdb55885c189fbe3e31a6b7bac (diff)
downloadlibwnck-92d69c357d56866a9f0fc8a4c11cd9f67262a193.tar.gz
add wnck_workspace_get_screen() API, for consistency
2007-06-24 Vincent Untz <vuntz@gnome.org> * doc/libwnck-sections.txt: * libwnck/workspace.[ch]: (wnck_workspace_get_screen): add wnck_workspace_get_screen() API, for consistency * libwnck/wnckprop.c: add parameters to print information about a class group and an application, make --list list windows for a screen, workspace, class group or application. This removes --list-windows and friends. svn path=/trunk/; revision=1371
Diffstat (limited to 'libwnck/workspace.c')
-rw-r--r--libwnck/workspace.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libwnck/workspace.c b/libwnck/workspace.c
index 81e8c49..dc0db10 100644
--- a/libwnck/workspace.c
+++ b/libwnck/workspace.c
@@ -200,6 +200,23 @@ wnck_workspace_change_name (WnckWorkspace *space,
}
/**
+ * wnck_workspace_get_screen:
+ * @space: a #WnckWorkspace.
+ *
+ * Returns the #WnckScreen @space is on.
+ *
+ * Return value: the #WnckScreen @space is on. The returned #WnckScreen is
+ * owned by libwnck and must not be referenced or unreferenced.
+ **/
+WnckScreen*
+wnck_workspace_get_screen (WnckWorkspace *space)
+{
+ g_return_val_if_fail (WNCK_IS_WORKSPACE (space), NULL);
+
+ return space->priv->screen;
+}
+
+/**
* wnck_workspace_activate:
* @space: a #WnckWorkspace.
* @timestamp: the X server timestamp of the user interaction event that caused