1
0
Fork 0

display: Revert API break for get_tab_list

gnome-shell apparently uses this, and we shouldn't break it.
This commit is contained in:
Jasper St. Pierre 2014-03-27 12:41:36 -04:00
parent 6eeaf09ab7
commit 3f70bdd331
2 changed files with 5 additions and 2 deletions

View file

@ -2771,19 +2771,21 @@ mru_cmp (gconstpointer a,
* meta_display_get_tab_list: * meta_display_get_tab_list:
* @display: a #MetaDisplay * @display: a #MetaDisplay
* @type: type of tab list * @type: type of tab list
* @screen: a #MetaScreen
* @workspace: (allow-none): origin workspace * @workspace: (allow-none): origin workspace
* *
* Determine the list of windows that should be displayed for Alt-TAB * Determine the list of windows that should be displayed for Alt-TAB
* functionality. The windows are returned in most recently used order. * functionality. The windows are returned in most recently used order.
* If @workspace is not %NULL, the list only conains windows that are on * If @workspace is not %NULL, the list only conains windows that are on
* @workspace or have the demands-attention hint set; otherwise it contains * @workspace or have the demands-attention hint set; otherwise it contains
* all windows. * all windows on @screen.
* *
* Returns: (transfer container) (element-type Meta.Window): List of windows * Returns: (transfer container) (element-type Meta.Window): List of windows
*/ */
GList* GList*
meta_display_get_tab_list (MetaDisplay *display, meta_display_get_tab_list (MetaDisplay *display,
MetaTabList type, MetaTabList type,
MetaScreen *screen,
MetaWorkspace *workspace) MetaWorkspace *workspace)
{ {
GList *tab_list = NULL; GList *tab_list = NULL;
@ -2858,7 +2860,7 @@ meta_display_get_tab_next (MetaDisplay *display,
gboolean skip; gboolean skip;
GList *tab_list; GList *tab_list;
MetaWindow *ret; MetaWindow *ret;
tab_list = meta_display_get_tab_list (display, type, workspace); tab_list = meta_display_get_tab_list (display, type, NULL, workspace);
if (tab_list == NULL) if (tab_list == NULL)
return NULL; return NULL;

View file

@ -96,6 +96,7 @@ unsigned int meta_display_get_ignored_modifier_mask (MetaDisplay *display);
GList* meta_display_get_tab_list (MetaDisplay *display, GList* meta_display_get_tab_list (MetaDisplay *display,
MetaTabList type, MetaTabList type,
MetaScreen *screen,
MetaWorkspace *workspace); MetaWorkspace *workspace);
MetaWindow* meta_display_get_tab_next (MetaDisplay *display, MetaWindow* meta_display_get_tab_next (MetaDisplay *display,