aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c8
2 files changed, 14 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 935ce550ac..18802fdb07 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+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)
+
2001-11-09 Chris Toshok <toshok@ximian.com>
[ Fixes Ximian bug #14687 ]
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:"),