aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-12-21 01:13:13 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-12-21 01:13:13 +0800
commit9088b7cbcd79f5c2d9bf751d6083289679ddc246 (patch)
tree9900ef67b6d4f019aaf224d494dbc3c4ad5c3bba /libempathy-gtk
parent63e82d2437ba18c31876defafb691422862fc91b (diff)
downloadgsoc2013-empathy-9088b7cbcd79f5c2d9bf751d6083289679ddc246.tar
gsoc2013-empathy-9088b7cbcd79f5c2d9bf751d6083289679ddc246.tar.gz
gsoc2013-empathy-9088b7cbcd79f5c2d9bf751d6083289679ddc246.tar.bz2
gsoc2013-empathy-9088b7cbcd79f5c2d9bf751d6083289679ddc246.tar.lz
gsoc2013-empathy-9088b7cbcd79f5c2d9bf751d6083289679ddc246.tar.xz
gsoc2013-empathy-9088b7cbcd79f5c2d9bf751d6083289679ddc246.tar.zst
gsoc2013-empathy-9088b7cbcd79f5c2d9bf751d6083289679ddc246.zip
Check if append_event is implemented by the theme before calling it
svn path=/trunk/; revision=495
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-theme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-theme.c b/libempathy-gtk/empathy-theme.c
index 185ad925a..c465ae69a 100644
--- a/libempathy-gtk/empathy-theme.c
+++ b/libempathy-gtk/empathy-theme.c
@@ -414,6 +414,10 @@ empathy_theme_append_event (EmpathyTheme *theme,
EmpathyChatView *view,
const gchar *str)
{
+ if (!EMPATHY_THEME_GET_CLASS(theme)->append_event) {
+ return;
+ }
+
EMPATHY_THEME_GET_CLASS(theme)->append_event (theme, context, view, str);
}