aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-12-16 17:32:16 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-12-16 17:32:16 +0800
commitc545753f66b387413e51cf7726deec025e58803f (patch)
treece35bbf15b66c62464cb2648afe02645512f1d1c
parentb3bc472ea1350ff07939cd274f824ee3d38ef45a (diff)
downloadgsoc2013-empathy-c545753f66b387413e51cf7726deec025e58803f.tar
gsoc2013-empathy-c545753f66b387413e51cf7726deec025e58803f.tar.gz
gsoc2013-empathy-c545753f66b387413e51cf7726deec025e58803f.tar.bz2
gsoc2013-empathy-c545753f66b387413e51cf7726deec025e58803f.tar.lz
gsoc2013-empathy-c545753f66b387413e51cf7726deec025e58803f.tar.xz
gsoc2013-empathy-c545753f66b387413e51cf7726deec025e58803f.tar.zst
gsoc2013-empathy-c545753f66b387413e51cf7726deec025e58803f.zip
Do not assert the tab exists in empathy_chat_text_view_tag_set(), simply return silently.
svn path=/trunk/; revision=2006
-rw-r--r--libempathy-gtk/empathy-chat-text-view.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c
index b17dd3b06..9362303a2 100644
--- a/libempathy-gtk/empathy-chat-text-view.c
+++ b/libempathy-gtk/empathy-chat-text-view.c
@@ -1361,9 +1361,8 @@ empathy_chat_text_view_tag_set (EmpathyChatTextView *view,
table = gtk_text_buffer_get_tag_table (priv->buffer);
tag = gtk_text_tag_table_lookup (table, tag_name);
- g_return_val_if_fail (tag != NULL, NULL);
- if (first_property_name) {
+ if (tag && first_property_name) {
va_start (list, first_property_name);
g_object_set_valist (G_OBJECT (tag), first_property_name, list);
va_end (list);