[mutter] screen: Drop the MetaScreen parameter from the foreach function
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] screen: Drop the MetaScreen parameter from the foreach function
- Date: Sat, 16 Aug 2014 00:25:00 +0000 (UTC)
commit 8627b65f8dcaf1efca4187b4d9a8e14802abcab0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Aug 15 20:05:48 2014 -0400
screen: Drop the MetaScreen parameter from the foreach function
It's unused.
src/core/screen-private.h | 4 ++--
src/core/screen.c | 19 +++++++------------
src/core/workspace.c | 3 ++-
3 files changed, 11 insertions(+), 15 deletions(-)
---
diff --git a/src/core/screen-private.h b/src/core/screen-private.h
index 44edd93..7525e48 100644
--- a/src/core/screen-private.h
+++ b/src/core/screen-private.h
@@ -38,8 +38,8 @@
#include "ui.h"
#include "meta-monitor-manager.h"
-typedef void (* MetaScreenWindowFunc) (MetaScreen *screen, MetaWindow *window,
- gpointer user_data);
+typedef void (* MetaScreenWindowFunc) (MetaWindow *window,
+ gpointer user_data);
typedef enum
{
diff --git a/src/core/screen.c b/src/core/screen.c
index 7f61acf..bb0d09b 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -968,11 +968,11 @@ get_screen_name (MetaDisplay *display,
* ignoring override-redirect windows.
*/
void
-meta_screen_foreach_window (MetaScreen *screen,
- MetaScreenWindowFunc func,
- gpointer data)
+meta_screen_foreach_window (MetaScreen *screen,
+ MetaScreenWindowFunc func,
+ gpointer data)
{
- GSList *windows, *l;
+ GSList *windows;
/* If we end up doing this often, just keeping a list
* of windows might be sensible.
@@ -980,11 +980,7 @@ meta_screen_foreach_window (MetaScreen *screen,
windows = meta_display_list_windows (screen->display, META_LIST_DEFAULT);
- for (l = windows; l != NULL; l = l->next)
- {
- MetaWindow *window = l->data;
- func (screen, window, data);
- }
+ g_slist_foreach (windows, (GFunc) func, data);
g_slist_free (windows);
}
@@ -2384,9 +2380,8 @@ meta_screen_free_workspace_layout (MetaWorkspaceLayout *layout)
}
static void
-meta_screen_resize_func (MetaScreen *screen,
- MetaWindow *window,
- void *user_data)
+meta_screen_resize_func (MetaWindow *window,
+ gpointer user_data)
{
if (window->struts)
{
diff --git a/src/core/workspace.c b/src/core/workspace.c
index f9e1e19..4d4541f 100644
--- a/src/core/workspace.c
+++ b/src/core/workspace.c
@@ -158,7 +158,8 @@ meta_workspace_init (MetaWorkspace *workspace)
}
static void
-maybe_add_to_list (MetaScreen *screen, MetaWindow *window, gpointer data)
+maybe_add_to_list (MetaWindow *window,
+ gpointer data)
{
GList **mru_list = data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]