mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +03:00
Utils: Remove unused get_next_window and get_icon_for_window (#691)
This commit is contained in:
parent
82f0b7bbe8
commit
cdd3bdcfb0
@ -76,24 +76,6 @@ namespace Gala {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a pixbuf for the application of this window or a default icon
|
||||
*
|
||||
* @param window The window to get an icon for
|
||||
* @param size The size of the icon
|
||||
* @param scale The desired scale of the icon
|
||||
* @param ignore_cache Should not be necessary in most cases, if you care about the icon
|
||||
* being loaded correctly, you should consider using the WindowIcon class
|
||||
*/
|
||||
public static Gdk.Pixbuf get_icon_for_window (
|
||||
Meta.Window window,
|
||||
int size,
|
||||
int scale = 1,
|
||||
bool ignore_cache = false
|
||||
) {
|
||||
return get_icon_for_xid ((uint32)window.get_xwindow (), size, scale, ignore_cache);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a pixbuf for a given xid or a default icon
|
||||
*
|
||||
@ -178,30 +160,6 @@ namespace Gala {
|
||||
return image;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the next window that should be active on a workspace right now. Based on
|
||||
* stacking order
|
||||
*
|
||||
* @param workspace The workspace on which to find the window
|
||||
* @param backward Whether to get the previous one instead
|
||||
*/
|
||||
public static Meta.Window get_next_window (Meta.Workspace workspace, bool backward = false) {
|
||||
#if HAS_MUTTER330
|
||||
var display = workspace.get_display ();
|
||||
#else
|
||||
var screen = workspace.get_screen ();
|
||||
var display = screen.get_display ();
|
||||
#endif
|
||||
|
||||
var window = display.get_tab_next (Meta.TabList.NORMAL,
|
||||
workspace, null, backward);
|
||||
|
||||
if (window == null)
|
||||
window = display.get_tab_current (Meta.TabList.NORMAL, workspace);
|
||||
|
||||
return window;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the number of toplevel windows on a workspace excluding those that are
|
||||
* on all workspaces
|
||||
|
Loading…
Reference in New Issue
Block a user