X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-hildon2-window-mgr.c;h=6031a59c8b293a943867bbc870ea356c827bce90;hp=9d8d9f4969bd6a9deb5f95e44aa28d2204e43000;hb=5ceb190cf64dacf7025c438bf13ffdbde224236e;hpb=b6bc60bc4f71d41318a1c18d7f9c25922e25fb6d diff --git a/src/hildon2/modest-hildon2-window-mgr.c b/src/hildon2/modest-hildon2-window-mgr.c index 9d8d9f4..6031a59 100644 --- a/src/hildon2/modest-hildon2-window-mgr.c +++ b/src/hildon2/modest-hildon2-window-mgr.c @@ -341,6 +341,7 @@ modest_hildon2_window_mgr_register_window (ModestWindowMgr *self, priv = MODEST_HILDON2_WINDOW_MGR_GET_PRIVATE (self); + program = hildon_program_get_instance (); win = g_list_find (priv->window_list, window); if (win) { /* this is for the case we want to register the window and it was already @@ -357,7 +358,6 @@ modest_hildon2_window_mgr_register_window (ModestWindowMgr *self, g_object_ref (window); priv->window_list = g_list_prepend (priv->window_list, window); - program = hildon_program_get_instance (); current_top = GTK_WIDGET (hildon_program_peek_window_stack (program)); if (!parent || ((GtkWidget *) parent != current_top)) {