The function wCoreCreateTopLevel is replaced by the wcore creation
and the wcore mapping. In this step, the function do the same code
but now, in functions that are screen independent.

Signed-off-by: Rodolfo García Peñas (kix) <[email protected]>
---
 src/icon.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/icon.c b/src/icon.c
index d297cbc..b6510fd 100644
--- a/src/icon.c
+++ b/src/icon.c
@@ -172,13 +172,9 @@ static WIcon *icon_create_core(WScreen *scr, int coord_x, 
int coord_y)
        WIcon *icon;
 
        icon = wmalloc(sizeof(WIcon));
-       icon->core = wCoreCreateTopLevel(scr,
-                                        coord_x,
-                                        coord_y,
-                                        wPreferences.icon_size,
-                                        wPreferences.icon_size,
-                                        0, scr->w_depth, scr->w_visual, 
scr->w_colormap,
-                                        scr->white_pixel);
+       icon->core = wcore_create(wPreferences.icon_size, 
wPreferences.icon_size);
+       wcore_map_toplevel(icon->core, scr, coord_x, coord_y, 0, scr->w_depth,
+                          scr->w_visual, scr->w_colormap, scr->white_pixel);
 
        /* will be overriden if this is a application icon */
        icon->core->descriptor.handle_mousedown = miniwindowMouseDown;
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to