From 68d6494cc733ec25b4f19c91127fe1d38ade430c Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Mon, 11 Jun 2007 20:01:01 +0000 Subject: If the pager can't set the layout, make it use the real layout of the 2007-06-11 Vincent Untz 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 --- doc/libwnck-sections.txt | 6 ++++++ doc/tmpl/pager.sgml | 2 ++ 2 files changed, 8 insertions(+) (limited to 'doc') 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 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 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: @@ -57,6 +58,7 @@ WnckPager @pager: @n_rows: +@Returns: -- cgit v1.2.1