* Fixes NB#84535, server errors are now shown over the contacts dialog
authorSergio Villar Senin <svillar@igalia.com>
Mon, 21 Apr 2008 11:56:39 +0000 (11:56 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 21 Apr 2008 11:56:39 +0000 (11:56 +0000)
pmo-trunk-r4439

src/maemo/modest-address-book.c
src/widgets/modest-window-mgr.h

index be1db54..e7c2dc9 100644 (file)
@@ -38,6 +38,8 @@
 #include <libosso-abook/osso-abook.h>
 #include "modest-hildon-includes.h"
 #include "modest-platform.h"
 #include <libosso-abook/osso-abook.h>
 #include "modest-hildon-includes.h"
 #include "modest-platform.h"
+#include "modest-runtime.h"
+#include "widgets/modest-window-mgr.h"
 #include <string.h>
 #include <gtk/gtksizegroup.h>
 #include <gtk/gtkbox.h>
 #include <string.h>
 #include <gtk/gtksizegroup.h>
 #include <gtk/gtkbox.h>
@@ -187,6 +189,7 @@ modest_address_book_select_addresses (ModestRecptEditor *recpt_editor)
 
        contact_dialog = osso_abook_select_dialog_new (OSSO_ABOOK_TREE_VIEW (contact_view));
        gtk_window_set_title (GTK_WINDOW (contact_dialog), _("mcen_ti_select_recipients"));
 
        contact_dialog = osso_abook_select_dialog_new (OSSO_ABOOK_TREE_VIEW (contact_view));
        gtk_window_set_title (GTK_WINDOW (contact_dialog), _("mcen_ti_select_recipients"));
+       modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), GTK_WINDOW (contact_dialog));
 
        gtk_widget_show (contact_dialog);
 
 
        gtk_widget_show (contact_dialog);
 
index 664c745..a8e7411 100644 (file)
@@ -185,7 +185,6 @@ GtkWindow*    modest_window_mgr_get_modal  (ModestWindowMgr *self);
  *
  * set the modal dialog; set it to NULL after destroying the dialog
  *
  *
  * set the modal dialog; set it to NULL after destroying the dialog
  *
- * Returns: the modal dialog just set
  **/
 void          modest_window_mgr_set_modal  (ModestWindowMgr *self,
                                            GtkWindow *window);
  **/
 void          modest_window_mgr_set_modal  (ModestWindowMgr *self,
                                            GtkWindow *window);