diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-19 17:29:27 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-19 17:29:27 +0000 |
commit | aeef6c7766b1c66b1b1ecaccfa07a887aa84d3ef (patch) | |
tree | 52e8500cdec7ee3619aa51de533369be13a7afea /gtk/sip_stat.c | |
parent | 2a46f365cd7a47ff69b1ec41cab0fa6457207e32 (diff) |
Martin Mathieson: gtk_table_get_size() was only introduced in gtk 2.22
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38116 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/sip_stat.c')
-rw-r--r-- | gtk/sip_stat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/sip_stat.c b/gtk/sip_stat.c index aece2c69ce..97161bdbae 100644 --- a/gtk/sip_stat.c +++ b/gtk/sip_stat.c @@ -293,7 +293,11 @@ sip_draw_hash_responses(gint * key _U_ , sip_response_code_t *data, gchar * unus } /* Get number of rows in table */ +#if GTK_CHECK_VERSION(2,22,0) gtk_table_get_size(GTK_TABLE(data->table), &x, &dummy); +#else + x = GTK_TABLE(data->table)->nrows; +#endif /* Create a new label with this response, e.g. "SIP 180 Ringing" */ g_snprintf(string_buff, sizeof(string_buff), |