The GTK+ documentation says we can pass NULL to gtk_table_get_size(). Do

that instead of using a dummy variable.

svn path=/trunk/; revision=38127
This commit is contained in:
Gerald Combs 2011-07-19 22:38:28 +00:00
parent 4e20e37aa6
commit 3991a62d31
1 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ sip_draw_hash_responses(gint * key _U_ , sip_response_code_t *data, gchar * unus
/* Create an entry in the relevant box of the window */
if (data->widget==NULL)
{
guint x, dummy;
guint x;
GtkWidget *tmp;
guint i = data->response_code;
@ -294,7 +294,7 @@ 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);
gtk_table_get_size(GTK_TABLE(data->table), &x, NULL);
#else
x = GTK_TABLE(data->table)->nrows;
#endif