]> git.0d.be Git - empathy.git/commitdiff
Check if append_event is implemented by the theme before calling it
authorXavier Claessens <xclaesse@src.gnome.org>
Thu, 20 Dec 2007 17:13:13 +0000 (17:13 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Thu, 20 Dec 2007 17:13:13 +0000 (17:13 +0000)
svn path=/trunk/; revision=495

libempathy-gtk/empathy-theme.c

index 185ad925a7a05fb8da0c84269cc20cb435aeee83..c465ae69ad7ac3ee7260d3ca39bb9f0ff4a8e8df 100644 (file)
@@ -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);
 }