diff options
author | Vincent Untz <vuntz@gnome.org> | 2007-06-11 20:01:01 +0000 |
---|---|---|
committer | Vincent Untz <vuntz@src.gnome.org> | 2007-06-11 20:01:01 +0000 |
commit | 68d6494cc733ec25b4f19c91127fe1d38ade430c (patch) | |
tree | d42b2b21cbec3300a25554197f937e4d24e293fe /doc | |
parent | 37bf1c4d663f1bc500c0511e24a35ba63c3cad6d (diff) | |
download | libwnck-68d6494cc733ec25b4f19c91127fe1d38ade430c.tar.gz |
If the pager can't set the layout, make it use the real layout of the
2007-06-11 Vincent Untz <vuntz@gnome.org>
If the pager can't set the layout, make it use the real layout of the
screen.
Fix second part of bug #445686.
* doc/libwnck-sections.txt: updated for not-yet public API
* doc/tmpl/pager.sgml: updated
* libwnck/pager.c: (wnck_pager_realize): don't set the layout hint
here
(wnck_pager_set_screen): try to set the layout hint on the screen, and
if it failed, gets the actual layout from the screen
(wnck_pager_new): call wnck_pager_set_screen() instead of
wnck_pager_connect_screen()
* libwnck/screen.[ch]: change WnckScreen to use WnckLayoutCorner
instead of ScreenCorner
(wnck_screen_construct): ditto
(wnck_screen_calc_workspace_layout): ditto, and mention that we should
remove this from the API next time we break API
(wnck_screen_free_workspace_layout): add comment to mention that we
should remove this API
(update_workspace_layout): use WnckLayoutCorner instead of ScreenCorner
(_wnck_screen_get_workspace_layout): new private function to get the
layout on the screen. Should probably be public in the future.
(wnck_screen_try_set_workspace_layout): update a bit the doc, and add
a guard againt bogus parameters
svn path=/trunk/; revision=1301
Diffstat (limited to 'doc')
-rw-r--r-- | doc/libwnck-sections.txt | 6 | ||||
-rw-r--r-- | doc/tmpl/pager.sgml | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/libwnck-sections.txt b/doc/libwnck-sections.txt index 32524ad..c0c76cb 100644 --- a/doc/libwnck-sections.txt +++ b/doc/libwnck-sections.txt @@ -207,6 +207,12 @@ wnck_screen_toggle_showing_desktop <SUBSECTION Private> WnckScreenPrivate wnck_screen_get_type +# FIXME: the first two WNCK_TYPE_ are dummy stuff gtk-doc generates, the other +# two should be added when _wnck_screen_get_workspace_layout becomes public +WNCK_TYPE___WNCK_LAYOUT_CORNER +WNCK_TYPE___WNCK_LAYOUT_ORIENTATION +_WnckLayoutCorner +_WnckLayoutOrientation <SUBSECTION Standard> WNCK_SCREEN WNCK_IS_SCREEN diff --git a/doc/tmpl/pager.sgml b/doc/tmpl/pager.sgml index 123d323..10b1653 100644 --- a/doc/tmpl/pager.sgml +++ b/doc/tmpl/pager.sgml @@ -48,6 +48,7 @@ WnckPager @pager: @orientation: +@Returns: <!-- ##### FUNCTION wnck_pager_set_n_rows ##### --> @@ -57,6 +58,7 @@ WnckPager @pager: @n_rows: +@Returns: <!-- ##### ENUM WnckPagerDisplayMode ##### --> |