Mercurial > pidgin.yaz
comparison pidgin/gtkft.c @ 20453:69febfa6d307
propagate from branch 'im.pidgin.pidgin' (head d3e5a5add3f39caa08b46c83177328e51c2d961a)
to branch 'im.pidgin.cpw.khc.msnp14' (head a8f6c999b039b4097aa70cd8d2597f3127615435)
author | Carlos Silva <typ0@pidgin.im> |
---|---|
date | Sat, 16 Jun 2007 04:00:32 +0000 |
parents | 40d51793f2d7 |
children | 16f3919b78f5 |
comparison
equal
deleted
inserted
replaced
20452:5c34a0a3c362 | 20453:69febfa6d307 |
---|---|
246 | 246 |
247 data = PIDGINXFER(xfer); | 247 data = PIDGINXFER(xfer); |
248 | 248 |
249 get_xfer_info_strings(xfer, &kbsec, &time_elapsed, &time_remaining); | 249 get_xfer_info_strings(xfer, &kbsec, &time_elapsed, &time_remaining); |
250 | 250 |
251 status = g_strdup_printf("%ld%% (%ld of %ld bytes)", | 251 status = g_strdup_printf("%d%% (%" G_GSIZE_FORMAT " of %" G_GSIZE_FORMAT " bytes)", |
252 (unsigned long)(purple_xfer_get_progress(xfer)*100), | 252 (int)(purple_xfer_get_progress(xfer)*100), |
253 (unsigned long)purple_xfer_get_bytes_sent(xfer), | 253 purple_xfer_get_bytes_sent(xfer), |
254 (unsigned long)purple_xfer_get_size(xfer)); | 254 purple_xfer_get_size(xfer)); |
255 | 255 |
256 if (purple_xfer_is_completed(xfer)) { | 256 if (purple_xfer_is_completed(xfer)) { |
257 | 257 |
258 GdkPixbuf *pixbuf = NULL; | 258 GdkPixbuf *pixbuf = NULL; |
259 | 259 |
756 purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/filetransfer/keep_open"); | 756 purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/filetransfer/keep_open"); |
757 dialog->auto_clear = | 757 dialog->auto_clear = |
758 purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/filetransfer/clear_finished"); | 758 purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/filetransfer/clear_finished"); |
759 | 759 |
760 /* Create the window. */ | 760 /* Create the window. */ |
761 dialog->window = window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 761 dialog->window = window = pidgin_create_window(_("File Transfers"), PIDGIN_HIG_BORDER, "file transfer", TRUE); |
762 gtk_window_set_role(GTK_WINDOW(window), "file transfer"); | |
763 gtk_window_set_title(GTK_WINDOW(window), _("File Transfers")); | |
764 gtk_container_set_border_width(GTK_CONTAINER(window), PIDGIN_HIG_BORDER); | |
765 | 762 |
766 g_signal_connect(G_OBJECT(window), "delete_event", | 763 g_signal_connect(G_OBJECT(window), "delete_event", |
767 G_CALLBACK(delete_win_cb), dialog); | 764 G_CALLBACK(delete_win_cb), dialog); |
768 | 765 |
769 /* Create the parent vbox for everything. */ | 766 /* Create the parent vbox for everything. */ |