aboutsummaryrefslogtreecommitdiffstats
path: root/managers
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2010-08-18 12:27:30 +0100
committerRobert Bragg <robert@linux.intel.com>2010-12-09 22:46:47 +0000
commita8e582f0d589a4405fc86855903a3d39a45df655 (patch)
tree5ce4588eef08ab166bef51c7edcc1857da62d718 /managers
parenteb3bf71e657868f0bdeff7d64dd1ad692bcec019 (diff)
downloadlibmatchboxwm2-a8e582f0d589a4405fc86855903a3d39a45df655.tar.gz
libmatchboxwm2-a8e582f0d589a4405fc86855903a3d39a45df655.tar.bz2
libmatchboxwm2-a8e582f0d589a4405fc86855903a3d39a45df655.zip
lists: Completely removes mb_wm_util_list
This actually replaces all use of the mb_wm_util_list API so all the code now just uses the g_list API directly.
Diffstat (limited to 'managers')
-rw-r--r--managers/clutter/mb-wm-comp-mgr-clutter.c18
-rw-r--r--managers/clutter/mb-wm-comp-mgr-clutter.h2
-rw-r--r--managers/maemo/maemo-input.c4
3 files changed, 12 insertions, 12 deletions
diff --git a/managers/clutter/mb-wm-comp-mgr-clutter.c b/managers/clutter/mb-wm-comp-mgr-clutter.c
index 91163df..4d8a820 100644
--- a/managers/clutter/mb-wm-comp-mgr-clutter.c
+++ b/managers/clutter/mb-wm-comp-mgr-clutter.c
@@ -408,7 +408,7 @@ mb_wm_comp_mgr_clutter_client_get_actor (MBWMCompMgrClutterClient *cclient)
struct _MBWMCompMgrClutterPrivate
{
ClutterActor * arena;
- MBWMList * desktops;
+ GList * desktops;
ClutterActor * shadow;
Window overlay_window;
@@ -514,7 +514,7 @@ mbwm_cmc_init (MBWMObject *obj, va_list vap)
desktop = clutter_group_new ();
clutter_actor_show (desktop);
clutter_container_add_actor (CLUTTER_CONTAINER (arena), desktop);
- priv->desktops = mb_wm_util_list_append (priv->desktops, desktop);
+ priv->desktops = g_list_append (priv->desktops, desktop);
return 1;
}
@@ -805,7 +805,7 @@ mbwm_cmc_restack_real (MBWMCompMgr *mgr)
MBWindowManager *wm = mgr->wm;
MBWMCompMgrClutter *cmgr = CMGR (mgr);
MBWMCompMgrClutterPrivate *priv = cmgr->priv;
- MBWMList *l;
+ GList *l;
int i = 0;
if (priv->freeze_stack)
@@ -853,7 +853,7 @@ mbwm_cmc_restack_real (MBWMCompMgr *mgr)
}
}
-MBWMList *
+GList *
mb_wm_comp_mgr_clutter_get_desktops (MBWMCompMgrClutter *cmgr)
{
return cmgr->priv->desktops;
@@ -867,7 +867,7 @@ ClutterActor *
mb_wm_comp_mgr_clutter_get_nth_desktop (MBWMCompMgrClutter * cmgr, int desktop)
{
MBWMCompMgrClutterPrivate * priv = cmgr->priv;
- MBWMList * l = priv->desktops;
+ GList * l = priv->desktops;
int i = 0;
while (l && i != desktop)
@@ -880,7 +880,7 @@ mb_wm_comp_mgr_clutter_get_nth_desktop (MBWMCompMgrClutter * cmgr, int desktop)
{
/* End of the line -- append new desktop */
ClutterActor * d = clutter_group_new ();
- priv->desktops = mb_wm_util_list_append (priv->desktops, d);
+ priv->desktops = g_list_append (priv->desktops, d);
clutter_container_add_actor (CLUTTER_CONTAINER (priv->arena), d);
l = l->next;
@@ -911,7 +911,7 @@ mbwm_cmc_select_desktop (MBWMCompMgr * mgr,
{
MBWMCompMgrClutter * cmgr = CMGR (mgr);
ClutterActor * d;
- MBWMList * l;
+ GList * l;
d = mb_wm_comp_mgr_clutter_get_nth_desktop (cmgr, desktop);
@@ -943,7 +943,7 @@ mbwm_cmc_map_notify_real (MBWMCompMgr *mgr,
ClutterActor *texture;
ClutterActor *rect;
MBGeometry geom;
- const MBWMList *l;
+ const GList *l;
unsigned int shadow_clr[4];
ClutterColor shadow_cclr;
MBWMCompMgrShadowType shadow_type;
@@ -1102,7 +1102,7 @@ static void
_fade_apply_behaviour_to_client (MBWindowManagerClient *wc,
unsigned long duration)
{
- MBWMList *l;
+ GList *l;
ClutterActor *a = CCLIENT (wc->cm_client)->priv->actor;
ClutterAnimation *anim;
diff --git a/managers/clutter/mb-wm-comp-mgr-clutter.h b/managers/clutter/mb-wm-comp-mgr-clutter.h
index c18fcbf..e929067 100644
--- a/managers/clutter/mb-wm-comp-mgr-clutter.h
+++ b/managers/clutter/mb-wm-comp-mgr-clutter.h
@@ -96,7 +96,7 @@ mb_wm_comp_mgr_clutter_client_unset_flags (MBWMCompMgrClutterClient *cclient,
MBWMCompMgrClutterClientFlags
mb_wm_comp_mgr_clutter_client_get_flags (MBWMCompMgrClutterClient *cclient);
-MBWMList *
+GList *
mb_wm_comp_mgr_clutter_get_desktops (MBWMCompMgrClutter *cmgr);
ClutterActor *
diff --git a/managers/maemo/maemo-input.c b/managers/maemo/maemo-input.c
index 52e1940..858608d 100644
--- a/managers/maemo/maemo-input.c
+++ b/managers/maemo/maemo-input.c
@@ -45,7 +45,7 @@ maemo_input_init (MBWMObject *this, va_list vap)
if ((c = mb_wm_stack_get_highest_by_type (wm, MBWMClientTypeApp)))
{
Window w;
- MBWMList *trans = mb_wm_client_get_transients (c);
+ GList *trans = mb_wm_client_get_transients (c);
if (trans && (t = trans->data))
w = t->window->xwindow;
@@ -56,7 +56,7 @@ maemo_input_init (MBWMObject *this, va_list vap)
XSetTransientForHint(wm->xdpy, win->xwindow, w);
- mb_wm_util_list_free (trans);
+ g_list_free (trans);
}
}
#endif