diff 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
line wrap: on
line diff
--- a/src/multi.c	Thu Mar 13 07:35:28 2003 +0000
+++ b/src/multi.c	Thu Mar 13 08:42:06 2003 +0000
@@ -590,13 +590,13 @@
 	dlg = gtk_file_selection_new(_("Load Buddy Icon"));
 	gtk_file_selection_hide_fileop_buttons(GTK_FILE_SELECTION(dlg));
 	if (ma->iconfile) {
-		char *tmp = g_dirname(ma->iconfile);
-		gtk_file_selection_set_filename(GTK_FILE_SELECTION(dlg), tmp);
+		char *tmp = g_path_get_dirname(ma->iconfile);
+		g_snprintf(buf, sizeof(buf), "%s" G_DIR_SEPARATOR_S, tmp);
 		g_free(tmp);
 	} else {
 		g_snprintf(buf, sizeof(buf), "%s" G_DIR_SEPARATOR_S, gaim_home_dir());
-		gtk_file_selection_set_filename(GTK_FILE_SELECTION(dlg), buf);
 	}
+	gtk_file_selection_set_filename(GTK_FILE_SELECTION(dlg), buf);
 
 	g_signal_connect(GTK_OBJECT(dlg), "destroy", G_CALLBACK(des_icon_sel), ma);
 	g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(dlg)->cancel_button), "clicked",