comparison src/gtkconv.c @ 10145:4d484e455839

[gaim-migrate @ 11218] This fixes the crash / hang / strangeness when dragging a buddy to a conversation entry thing. Also fixes a minor memory leak with old plugins. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 26 Oct 2004 01:00:35 +0000
parents d520ab74fe8f
children 3f71f7282dbf
comparison
equal deleted inserted replaced
10144:757a7c088801 10145:4d484e455839
4503 } 4503 }
4504 g_list_free(files); 4504 g_list_free(files);
4505 /* XXX - Attempt to load this file into gdk_pixbuf, or otherwise determine if it is an image. If it is, offer 4505 /* XXX - Attempt to load this file into gdk_pixbuf, or otherwise determine if it is an image. If it is, offer
4506 * the choice of a) sending this file b) inserting this file as an IM image or c) setting this file as a custom 4506 * the choice of a) sending this file b) inserting this file as an IM image or c) setting this file as a custom
4507 * buddy icon for this buddy */ 4507 * buddy icon for this buddy */
4508 } 4508 gtk_drag_finish(dc, TRUE, (dc->action == GDK_ACTION_MOVE), t);
4509 gtk_drag_finish(dc, FALSE, FALSE, t); 4509 }
4510 else
4511 gtk_drag_finish(dc, FALSE, FALSE, t);
4510 } 4512 }
4511 4513
4512 /************************************************************************** 4514 /**************************************************************************
4513 * GTK+ window ops 4515 * GTK+ window ops
4514 **************************************************************************/ 4516 **************************************************************************/
4635 gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkwin->notebook), index); 4637 gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkwin->notebook), index);
4636 } 4638 }
4637 4639
4638 static const GtkTargetEntry te[] = 4640 static const GtkTargetEntry te[] =
4639 { 4641 {
4640 {"text/uri-list", 0, 0}, 4642 GTK_IMHTML_DND_TARGETS,
4641 {"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, 1}, 4643 {"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, GTK_IMHTML_DRAG_NUM},
4642 {"text/plain", 0, 2}, 4644 {"application/x-im-contact", 0, GTK_IMHTML_DRAG_NUM + 1}
4643 {"STRING", 0, 3},
4644 {"application/x-im-contact", 0, 4}
4645 }; 4645 };
4646 4646
4647 static void 4647 static void
4648 gaim_gtk_add_conversation(GaimConvWindow *win, GaimConversation *conv) 4648 gaim_gtk_add_conversation(GaimConvWindow *win, GaimConversation *conv)
4649 { 4649 {