aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-importer.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-03 02:56:05 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-03 02:56:05 +0800
commitd440df54a8a719d6da8f9d6556e1191bfdb38924 (patch)
tree90fb594c56df5ff9f0938cc4439174d525a54538 /shell/e-shell-importer.c
parent19e564f320e368e4b8f4f6c238158960380bba71 (diff)
downloadgsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar.gz
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar.bz2
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar.lz
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar.xz
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar.zst
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.zip
** Fix for bug #471791 (Move away from asserts to g_ret*)
svn path=/trunk/; revision=34159
Diffstat (limited to 'shell/e-shell-importer.c')
-rw-r--r--shell/e-shell-importer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/e-shell-importer.c b/shell/e-shell-importer.c
index 35bb771653..ab8d4f6caa 100644
--- a/shell/e-shell-importer.c
+++ b/shell/e-shell-importer.c
@@ -165,9 +165,12 @@ create_help (const char *name)
if (!strcmp (name, info[i].name))
break;
}
- g_assert(i != num_info);
- label = gtk_label_new(_(info[i].text));
+ if (i >= num_info)
+ g_warning ("i > num_info\n");
+
+
+ label = gtk_label_new(i < num_info ? _(info[i].text): NULL);
gtk_widget_show (label);
gtk_label_set_line_wrap((GtkLabel *)label, TRUE);