From: Sergio Villar Senin Date: Mon, 3 Aug 2009 18:13:46 +0000 (+0200) Subject: Fixes NB#130850, fixes a certificate confirmation note modality issue that could... X-Git-Tag: 3.0.17-rc28~6 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=41cc8aa6abf9beb51e8f712c78c6bd3f34d2d416;hp=8ad36d3e8950c17e87ec346f1afed9a2eb1a8c6e Fixes NB#130850, fixes a certificate confirmation note modality issue that could "hang" the application --- diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index 0223d15..36650e0 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -2069,14 +2069,17 @@ modest_platform_run_certificate_confirmation_dialog (const gchar* server_name, example. With GTK_RESPONSE_HELP the view button is aligned to the left while the other two to the right */ note = hildon_note_new_confirmation_add_buttons ( - NULL, + (GtkWindow *) win, question, _HL("wdgt_bd_yes"), GTK_RESPONSE_OK, _HL("wdgt_bd_view"), GTK_RESPONSE_APPLY, /* abusing this... */ _HL("wdgt_bd_no"), GTK_RESPONSE_CANCEL, NULL, NULL); - g_signal_connect (G_OBJECT(note), "response", + modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), + (GtkWindow *) note, (GtkWindow *) win); + + g_signal_connect (G_OBJECT(note), "response", G_CALLBACK(on_cert_dialog_response), (gpointer) certificate);