Mercurial > pidgin.yaz
comparison src/multi.c @ 4738:34fdf9e313d5
[gaim-migrate @ 5053]
I combined some hash tables in oscar.c to make things a bit neater.
Funtionality-wise, I made "online since" show up in the oscar
per-buddy tooltip thing, fixed the buddy selection file browser
dialog thing so the default file is blank and it puts you in the
correct directory (it is more similar to how gtkft.c does it), and
I made it so buddy icons will only be requested/advertised when
needed, rather than for every single message. Hopefully this
will make it so the icon is not re-sent for every message. And
hopefully I didn't break anything.
HEY YOU
Find out why "Capabilities" is not indeded like "Online Since" in
the tooltip.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 13 Mar 2003 08:42:06 +0000 |
parents | e4dda06a3143 |
children | c4c28874ecd3 |
comparison
equal
deleted
inserted
replaced
4737:da3c96faa167 | 4738:34fdf9e313d5 |
---|---|
588 } | 588 } |
589 | 589 |
590 dlg = gtk_file_selection_new(_("Load Buddy Icon")); | 590 dlg = gtk_file_selection_new(_("Load Buddy Icon")); |
591 gtk_file_selection_hide_fileop_buttons(GTK_FILE_SELECTION(dlg)); | 591 gtk_file_selection_hide_fileop_buttons(GTK_FILE_SELECTION(dlg)); |
592 if (ma->iconfile) { | 592 if (ma->iconfile) { |
593 char *tmp = g_dirname(ma->iconfile); | 593 char *tmp = g_path_get_dirname(ma->iconfile); |
594 gtk_file_selection_set_filename(GTK_FILE_SELECTION(dlg), tmp); | 594 g_snprintf(buf, sizeof(buf), "%s" G_DIR_SEPARATOR_S, tmp); |
595 g_free(tmp); | 595 g_free(tmp); |
596 } else { | 596 } else { |
597 g_snprintf(buf, sizeof(buf), "%s" G_DIR_SEPARATOR_S, gaim_home_dir()); | 597 g_snprintf(buf, sizeof(buf), "%s" G_DIR_SEPARATOR_S, gaim_home_dir()); |
598 gtk_file_selection_set_filename(GTK_FILE_SELECTION(dlg), buf); | 598 } |
599 } | 599 gtk_file_selection_set_filename(GTK_FILE_SELECTION(dlg), buf); |
600 | 600 |
601 g_signal_connect(GTK_OBJECT(dlg), "destroy", G_CALLBACK(des_icon_sel), ma); | 601 g_signal_connect(GTK_OBJECT(dlg), "destroy", G_CALLBACK(des_icon_sel), ma); |
602 g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(dlg)->cancel_button), "clicked", | 602 g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(dlg)->cancel_button), "clicked", |
603 G_CALLBACK(des_icon_sel), ma); | 603 G_CALLBACK(des_icon_sel), ma); |
604 g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(dlg)->ok_button), "clicked", | 604 g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(dlg)->ok_button), "clicked", |