Mercurial > pidgin.yaz
changeset 27176:db373b572015
Restore the "Time Remaining" field in the file transfer window, but not in
exactly the same way as the patch in the ticket.
Fixes #9329.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 10 Jun 2009 01:07:29 +0000 |
parents | 5330ffe6ca86 |
children | 211b59ac6345 28b5fcfb7444 |
files | pidgin/gtkft.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkft.c Tue Jun 09 03:42:23 2009 +0000 +++ b/pidgin/gtkft.c Wed Jun 10 01:07:29 2009 +0000 @@ -705,12 +705,12 @@ }; /* Setup the initial table */ - dialog->table = table = gtk_table_new(9, 2, FALSE); + dialog->table = table = gtk_table_new(G_N_ELEMENTS(labels), 2, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), PIDGIN_HIG_BOX_SPACE); gtk_table_set_col_spacings(GTK_TABLE(table), PIDGIN_HIG_BOX_SPACE); /* Setup the labels */ - for (i = 0; i < sizeof(labels) / sizeof(*labels); i++) { + for (i = 0; i < G_N_ELEMENTS(labels); i++) { GtkWidget *label; char buf[256]; @@ -734,7 +734,9 @@ /* Setup the progress bar */ dialog->progress = gtk_progress_bar_new(); - gtk_table_attach(GTK_TABLE(table), dialog->progress, 0, 2, 8, 9, + gtk_table_attach(GTK_TABLE(table), dialog->progress, + 0, 2, + G_N_ELEMENTS(labels), G_N_ELEMENTS(labels) + 1, GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show(dialog->progress);