aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/eab-gui-util.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2005-08-03 16:23:26 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2005-08-03 16:23:26 +0800
commitf81882412a602d2b19746dda3d013926021890bd (patch)
tree2ff05f0b9c45ea9e8634568ebca8a2502cdcf6d3 /addressbook/gui/widgets/eab-gui-util.c
parent233ed2076268ad6ca7d6cbf75cf2b2983408fa77 (diff)
downloadgsoc2013-evolution-f81882412a602d2b19746dda3d013926021890bd.tar
gsoc2013-evolution-f81882412a602d2b19746dda3d013926021890bd.tar.gz
gsoc2013-evolution-f81882412a602d2b19746dda3d013926021890bd.tar.bz2
gsoc2013-evolution-f81882412a602d2b19746dda3d013926021890bd.tar.lz
gsoc2013-evolution-f81882412a602d2b19746dda3d013926021890bd.tar.xz
gsoc2013-evolution-f81882412a602d2b19746dda3d013926021890bd.tar.zst
gsoc2013-evolution-f81882412a602d2b19746dda3d013926021890bd.zip
Made the error dialog for load-error nonmodal, since it block the UI along
2005-08-01 Srinivasa Ragavan <sragavan@novell.com> * gui/widgets/eab-gui-util.c (eab_load_error_dialog): Made the error dialog for load-error nonmodal, since it block the UI along with popup menu. * gui/component/addressbook-view.c (load_uri_for_selection) (primary_source_selection_changed_callback) (addressbook_view_init): Checks whether the book is already selected. If so it doesnt reselect it on a r-click. Fixes the bug #309247 svn path=/trunk/; revision=29966
Diffstat (limited to 'addressbook/gui/widgets/eab-gui-util.c')
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c
index 6de89ccafd..646887a8cd 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -83,6 +83,7 @@ void
eab_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status)
{
char *label_string, *label = NULL, *uri;
+ GtkWidget *dialog;
g_return_if_fail (source != NULL);
@@ -123,8 +124,10 @@ eab_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status)
"is unreachable.");
}
- e_error_run ((GtkWindow *) parent, "addressbook:load-error", label_string, NULL);
-
+ dialog = e_error_new ((GtkWindow *) parent, "addressbook:load-error", label_string, NULL);
+ g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
+
+ gtk_widget_show (dialog);
g_free (label);
g_free (uri);
}