aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/sip_stat.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2011-07-30 09:17:08 +0000
committerJörg Mayer <jmayer@loplof.de>2011-07-30 09:17:08 +0000
commitbaa189aee095bce9703acd0ee591cd58b123f9e5 (patch)
treec830ee0b891c2d7af94fbe659adaae2e68850b37 /gtk/sip_stat.c
parentf9f01fea36972a2e5123bcff6fbc2a1b24045ce6 (diff)
Fix the problem in the .c file.
svn path=/trunk/; revision=38267
Diffstat (limited to 'gtk/sip_stat.c')
-rw-r--r--gtk/sip_stat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/sip_stat.c b/gtk/sip_stat.c
index 09a0bcba3c..417e0755b6 100644
--- a/gtk/sip_stat.c
+++ b/gtk/sip_stat.c
@@ -297,7 +297,12 @@ sip_draw_hash_responses(gint * key _U_ , sip_response_code_t *data, gchar * unus
#if GTK_CHECK_VERSION(2,22,0)
gtk_table_get_size(GTK_TABLE(data->table), &x, NULL);
#else
- x = GTK_TABLE(data->table)->nrows;
+ /* Work around GTK bug: Sealed in 2.14, accessor provided in 2.22 */
+# if GTK_CHECK_VERSION (2, 14, 0) && defined(GSEAL_ENABLE)
+ x = GTK_TABLE(data->table)->_g_sealed__nrows;
+# else
+ x = GTK_TABLE(data->table)->nrows;
+# endif
#endif
/* Create a new label with this response, e.g. "SIP 180 Ringing" */