comparison src/gtkblist.c @ 11137:096020ae09a9

[gaim-migrate @ 13201] Some more deworming. I mean, dewarning. I also realized that lots of glib uses guchar* instead of guint* for passing around bits of binary data, so I changed some stuff in util.c that I'd already changed. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 21 Jul 2005 05:49:48 +0000
parents f78e7e982cf4
children a511b77a368b
comparison
equal deleted inserted replaced
11136:6270b6ad69a2 11137:096020ae09a9
1911 mime_str = g_string_free(str, FALSE); 1911 mime_str = g_string_free(str, FALSE);
1912 1912
1913 gtk_selection_data_set(data, 1913 gtk_selection_data_set(data,
1914 gdk_atom_intern("application/x-im-contact", FALSE), 1914 gdk_atom_intern("application/x-im-contact", FALSE),
1915 8, /* bits */ 1915 8, /* bits */
1916 mime_str, 1916 (const guchar *)mime_str,
1917 strlen(mime_str) + 1); 1917 strlen(mime_str) + 1);
1918 1918
1919 g_free(mime_str); 1919 g_free(mime_str);
1920 gtk_tree_path_free(sourcerow); 1920 gtk_tree_path_free(sourcerow);
1921 } 1921 }
2109 { 2109 {
2110 group = (GaimGroup *)node; 2110 group = (GaimGroup *)node;
2111 } 2111 }
2112 } 2112 }
2113 2113
2114 if (gaim_gtk_parse_x_im_contact(sd->data, FALSE, &account, 2114 if (gaim_gtk_parse_x_im_contact((const char *)sd->data, FALSE, &account,
2115 &protocol, &username, &alias)) 2115 &protocol, &username, &alias))
2116 { 2116 {
2117 if (account == NULL) 2117 if (account == NULL)
2118 { 2118 {
2119 gaim_notify_error(NULL, NULL, 2119 gaim_notify_error(NULL, NULL,
2170 { 2170 {
2171 group = (GaimGroup *)node; 2171 group = (GaimGroup *)node;
2172 } 2172 }
2173 } 2173 }
2174 2174
2175 result = parse_vcard(sd->data, group); 2175 result = parse_vcard((const gchar *)sd->data, group);
2176 2176
2177 gtk_drag_finish(dc, result, (dc->action == GDK_ACTION_MOVE), t); 2177 gtk_drag_finish(dc, result, (dc->action == GDK_ACTION_MOVE), t);
2178 } else if (sd->target == gdk_atom_intern("text/uri-list", FALSE) && sd->data) { 2178 } else if (sd->target == gdk_atom_intern("text/uri-list", FALSE) && sd->data) {
2179 GtkTreePath *path = NULL; 2179 GtkTreePath *path = NULL;
2180 GtkTreeViewDropPosition position; 2180 GtkTreeViewDropPosition position;
2207 gboolean scaled, gboolean greyed) 2207 gboolean scaled, gboolean greyed)
2208 { 2208 {
2209 GdkPixbuf *buf, *ret = NULL; 2209 GdkPixbuf *buf, *ret = NULL;
2210 GdkPixbufLoader *loader; 2210 GdkPixbufLoader *loader;
2211 GaimBuddyIcon *icon; 2211 GaimBuddyIcon *icon;
2212 const char *data; 2212 const guchar *data;
2213 size_t len; 2213 gsize len;
2214 GaimBuddy *buddy = (GaimBuddy *)node; 2214 GaimBuddy *buddy = (GaimBuddy *)node;
2215 2215
2216 if(GAIM_BLIST_NODE_IS_CONTACT(node)) { 2216 if(GAIM_BLIST_NODE_IS_CONTACT(node)) {
2217 buddy = gaim_contact_get_priority_buddy((GaimContact*)node); 2217 buddy = gaim_contact_get_priority_buddy((GaimContact*)node);
2218 } else if(GAIM_BLIST_NODE_IS_BUDDY(node)) { 2218 } else if(GAIM_BLIST_NODE_IS_BUDDY(node)) {