aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-11-13 01:31:56 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-11-13 01:31:56 +0800
commit8ab7f1a02444f3484284092ec1a6b8066781b8e2 (patch)
tree6964ee4a49fc364ffac2d898b1c4d3fa656fb34d /addressbook/gui
parent9dab15ace74f972425b35ce13c6c87ab1e1878a7 (diff)
downloadgsoc2013-evolution-8ab7f1a02444f3484284092ec1a6b8066781b8e2.tar
gsoc2013-evolution-8ab7f1a02444f3484284092ec1a6b8066781b8e2.tar.gz
gsoc2013-evolution-8ab7f1a02444f3484284092ec1a6b8066781b8e2.tar.bz2
gsoc2013-evolution-8ab7f1a02444f3484284092ec1a6b8066781b8e2.tar.lz
gsoc2013-evolution-8ab7f1a02444f3484284092ec1a6b8066781b8e2.tar.xz
gsoc2013-evolution-8ab7f1a02444f3484284092ec1a6b8066781b8e2.tar.zst
gsoc2013-evolution-8ab7f1a02444f3484284092ec1a6b8066781b8e2.zip
If our call to e_categories_new returns NULL, put up an error dialog and
2001-11-12 Jon Trowbridge <trow@ximian.com> * gui/contact-editor/e-contact-editor.c (categories_clicked): If our call to e_categories_new returns NULL, put up an error dialog and return. (Fixed #14780) svn path=/trunk/; revision=14672
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 2983cd8a24..5abc4af8f7 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -27,6 +27,7 @@
#include <gtk/gtkcombo.h>
#include <gtk/gtktext.h>
#include <libgnomeui/gnome-popup-menu.h>
+#include <libgnomeui/gnome-dialog-util.h>
#include <libgnomeui/gnome-stock.h>
#include <libgnome/gnome-i18n.h>
@@ -750,6 +751,13 @@ categories_clicked(GtkWidget *button, EContactEditor *editor)
"categories", &categories,
NULL);
dialog = GNOME_DIALOG(e_categories_new(categories));
+
+ if (dialog == NULL) {
+ GtkWidget *uh_oh = gnome_error_dialog (_("Category editor not available."));
+ gtk_widget_show (uh_oh);
+ return;
+ }
+
ecml = e_categories_master_list_wombat_new ();
gtk_object_set(GTK_OBJECT(dialog),
"header", _("This contact belongs to these categories:"),