comparison src/gtkimhtml.c @ 10504:1a97d5e88d12

[gaim-migrate @ 11796] Lots of things here: - Several memory leak fixes - A few invalid memory access fixes - Fix a yahoo crash going idle when away - Fix Add user in chats to actually fill in the screenname - Add gaim_account_{get,set}_enabled to perl - Fix command priorities (fixes /me in IRC) - Fix MSN notification server transfer to be quiet about it - Fix MSN blist sync if user has insane friendly name - Make the docklet less crash-happy if it fails to embed in 3 seconds - Only probe for native plugins with the correct file extension - 1 typo fix :) ... and quite possibly something else I forgot. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 11 Jan 2005 17:25:06 +0000
parents 748aa3c6de36
children e8b160971254
comparison
equal deleted inserted replaced
10503:776586d647e3 10504:1a97d5e88d12
1353 /* ... don't pretend we handled it if we didn't */ 1353 /* ... don't pretend we handled it if we didn't */
1354 gtk_drag_finish(dc, FALSE, FALSE, t); 1354 gtk_drag_finish(dc, FALSE, FALSE, t);
1355 return; 1355 return;
1356 } 1356 }
1357 } 1357 }
1358 g_strfreev(links);
1358 break; 1359 break;
1359 case GTK_IMHTML_DRAG_HTML: 1360 case GTK_IMHTML_DRAG_HTML:
1360 { 1361 {
1361 char *utf8 = NULL; 1362 char *utf8 = NULL;
1362 /* Ewww. This is all because mozilla thinks that text/html is 'for internal use only.' 1363 /* Ewww. This is all because mozilla thinks that text/html is 'for internal use only.'
2343 if (href && (imhtml->format_functions & GTK_IMHTML_LINK)) { 2344 if (href && (imhtml->format_functions & GTK_IMHTML_LINK)) {
2344 gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos); 2345 gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos);
2345 ws[0] = '\0'; wpos = 0; 2346 ws[0] = '\0'; wpos = 0;
2346 gtk_imhtml_toggle_link(imhtml, href); 2347 gtk_imhtml_toggle_link(imhtml, href);
2347 } 2348 }
2349 if (href)
2350 g_free(href);
2348 } 2351 }
2349 break; 2352 break;
2350 case 46: /* IMG (opt) */ 2353 case 46: /* IMG (opt) */
2351 case 59: /* IMG */ 2354 case 59: /* IMG */
2352 { 2355 {