diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-30 09:17:08 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-30 09:17:08 +0000 |
commit | 49705ac04f2280ab852c5c340f59b091cd3f7b92 (patch) | |
tree | c830ee0b891c2d7af94fbe659adaae2e68850b37 /gtk | |
parent | d7308c143e5d4ce0bafff45e8dbdcb548b1fa1f9 (diff) |
Fix the problem in the .c file.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38267 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/sip_stat.c | 7 |
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" */ |