X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-hildon2-window-mgr.c;h=41d2b3ea2c34584a418d41edcdf463c756236008;hp=d42119940620d20dd5469ed72a67bdb49712b5a2;hb=803a26446cdd134d213780d01098cdfccd650846;hpb=d7d9da7a8d7263473330a92c7f20bd065eb996d4 diff --git a/src/hildon2/modest-hildon2-window-mgr.c b/src/hildon2/modest-hildon2-window-mgr.c index d421199..41d2b3e 100644 --- a/src/hildon2/modest-hildon2-window-mgr.c +++ b/src/hildon2/modest-hildon2-window-mgr.c @@ -350,6 +350,8 @@ modest_hildon2_window_mgr_register_window (ModestWindowMgr *self, return TRUE; } + stack = hildon_window_stack_get_default (); + if (!MODEST_WINDOW_MGR_CLASS (parent_class)->register_window (self, window, parent)) goto fail; @@ -357,7 +359,6 @@ modest_hildon2_window_mgr_register_window (ModestWindowMgr *self, g_object_ref (window); priv->window_list = g_list_prepend (priv->window_list, window); - stack = hildon_window_stack_get_default (); current_top = hildon_window_stack_peek (stack); /* TODO: rethink this method it will be different depending on