summaryrefslogtreecommitdiff
path: root/libwnck/screen.h
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2007-06-24 11:25:02 +0000
committerVincent Untz <vuntz@src.gnome.org>2007-06-24 11:25:02 +0000
commit43aaa503eb548bc23cb9d96a338d139c021e89c5 (patch)
tree837fe9aceb6487893bc3a3f7e8851bd0ceeeac74 /libwnck/screen.h
parenta71434b0a56dfd8972d21337b985a7c0bfa80df2 (diff)
downloadlibwnck-43aaa503eb548bc23cb9d96a338d139c021e89c5.tar.gz
Cleanups and deprecate some WnckScreen functions that shouldn't have been
2007-06-24 Vincent Untz <vuntz@gnome.org> Cleanups and deprecate some WnckScreen functions that shouldn't have been made public when they were added. * doc/tmpl/tasklist.sgml: * libwnck/tasklist.c: improve a bit documentation (wnck_tasklist_class_init): add doc for the style properties (wnck_tasklist_size_request): remove spurious spaces (wnck_tasklist_free_tasks): move some assertions around, since it's a bit clearer (wnck_tasklist_update_lists): remove empty line (wnck_task_create_widgets): use a define instead of magic values for the padding * libwnck/screen.[ch]: deprecate wnck_screen_get_workspace_index() (we have wnck_workspace_get_number()), wnck_screen_calc_workspace_layout(), wnck_screen_free_workspace_layout() and WnckWorkspaceLayout * libwnck/util.c: remove useless TODO (since the function is already deprecated) * libwnck/workspace.c: update doc to not refer to wnck_screen_calc_workspace_layout() svn path=/trunk/; revision=1363
Diffstat (limited to 'libwnck/screen.h')
-rw-r--r--libwnck/screen.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libwnck/screen.h b/libwnck/screen.h
index 63fbf35..3c9a910 100644
--- a/libwnck/screen.h
+++ b/libwnck/screen.h
@@ -116,6 +116,7 @@ struct _WnckScreenClass
void (* pad6) (void);
};
+#ifndef WNCK_DISABLE_DEPRECATED
typedef struct _WnckWorkspaceLayout WnckWorkspaceLayout;
/**
@@ -136,6 +137,7 @@ typedef struct _WnckWorkspaceLayout WnckWorkspaceLayout;
* #WnckWorkspace.
*
* Since: 2.12
+ * Deprecated:
*/
struct _WnckWorkspaceLayout
{
@@ -146,6 +148,7 @@ struct _WnckWorkspaceLayout
int current_row;
int current_col;
};
+#endif /* WNCK_DISABLE_DEPRECATED */
/**
* WnckMotionDirection:
@@ -216,8 +219,10 @@ WnckScreen* wnck_screen_get_for_root (gulong root_window_id)
int wnck_screen_get_number (WnckScreen *screen);
WnckWorkspace* wnck_screen_get_workspace (WnckScreen *screen,
int workspace);
+#ifndef WNCK_DISABLE_DEPRECATED
int wnck_screen_get_workspace_index (WnckScreen *screen,
WnckWorkspace *space);
+#endif /* WNCK_DISABLE_DEPRECATED */
WnckWorkspace* wnck_screen_get_workspace_neighbor (WnckScreen *screen,
WnckWorkspace *space,
WnckMotionDirection direction);
@@ -253,11 +258,13 @@ int wnck_screen_try_set_workspace_layout (WnckScreen *screen,
int columns);
void wnck_screen_release_workspace_layout (WnckScreen *screen,
int current_token);
+#ifndef WNCK_DISABLE_DEPRECATED
void wnck_screen_calc_workspace_layout (WnckScreen *screen,
int num_workspaces,
int space_index,
WnckWorkspaceLayout *layout);
void wnck_screen_free_workspace_layout (WnckWorkspaceLayout *layout);
+#endif /* WNCK_DISABLE_DEPRECATED */
G_END_DECLS