Mercurial > pidgin
comparison src/gtkblist.c @ 9556:75fe1ace4ae4
[gaim-migrate @ 10392]
DND bug fix.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 18 Jul 2004 18:20:04 +0000 |
parents | 03066f174777 |
children | 1ea8d59a7957 |
comparison
equal
deleted
inserted
replaced
9555:a79e03ef63f6 | 9556:75fe1ace4ae4 |
---|---|
3038 GtkWidget *sw; | 3038 GtkWidget *sw; |
3039 GtkWidget *button; | 3039 GtkWidget *button; |
3040 GtkSizeGroup *sg; | 3040 GtkSizeGroup *sg; |
3041 GtkAccelGroup *accel_group; | 3041 GtkAccelGroup *accel_group; |
3042 GtkTreeSelection *selection; | 3042 GtkTreeSelection *selection; |
3043 GtkTargetEntry gte[] = {{"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, DRAG_ROW}, | 3043 GtkTargetEntry dte[] = {{"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, DRAG_ROW}, |
3044 {"application/x-im-contact", 0, DRAG_BUDDY}, | 3044 {"application/x-im-contact", 0, DRAG_BUDDY}, |
3045 {"text/x-vcard", 0, DRAG_VCARD }, | 3045 {"text/x-vcard", 0, DRAG_VCARD }, |
3046 {"text/uri-list", 0, DRAG_URI}, | 3046 {"text/uri-list", 0, DRAG_URI}, |
3047 {"text/plain", 0, DRAG_TEXT}}; | 3047 {"text/plain", 0, DRAG_TEXT}}; |
3048 | 3048 GtkTargetEntry ste[] = {{"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, DRAG_ROW}, |
3049 {"application/x-im-contact", 0, DRAG_BUDDY}, | |
3050 {"text/x-vcard", 0, DRAG_VCARD }}; | |
3049 if (gtkblist && gtkblist->window) { | 3051 if (gtkblist && gtkblist->window) { |
3050 gtk_widget_show(gtkblist->window); | 3052 gtk_widget_show(gtkblist->window); |
3051 return; | 3053 return; |
3052 } | 3054 } |
3053 | 3055 |
3112 g_signal_connect(G_OBJECT(selection), "changed", G_CALLBACK(gaim_gtk_blist_selection_changed), NULL); | 3114 g_signal_connect(G_OBJECT(selection), "changed", G_CALLBACK(gaim_gtk_blist_selection_changed), NULL); |
3113 | 3115 |
3114 | 3116 |
3115 /* Set up dnd */ | 3117 /* Set up dnd */ |
3116 gtk_tree_view_enable_model_drag_source(GTK_TREE_VIEW(gtkblist->treeview), | 3118 gtk_tree_view_enable_model_drag_source(GTK_TREE_VIEW(gtkblist->treeview), |
3117 GDK_BUTTON1_MASK, gte, NUM_TARGETS, | 3119 GDK_BUTTON1_MASK, ste, NUM_TARGETS, |
3118 GDK_ACTION_COPY); | 3120 GDK_ACTION_COPY); |
3119 gtk_tree_view_enable_model_drag_dest(GTK_TREE_VIEW(gtkblist->treeview), | 3121 gtk_tree_view_enable_model_drag_dest(GTK_TREE_VIEW(gtkblist->treeview), |
3120 gte, NUM_TARGETS, | 3122 dte, NUM_TARGETS, |
3121 GDK_ACTION_COPY | GDK_ACTION_MOVE); | 3123 GDK_ACTION_COPY | GDK_ACTION_MOVE); |
3122 | 3124 |
3123 g_signal_connect(G_OBJECT(gtkblist->treeview), "drag-data-received", G_CALLBACK(gaim_gtk_blist_drag_data_rcv_cb), NULL); | 3125 g_signal_connect(G_OBJECT(gtkblist->treeview), "drag-data-received", G_CALLBACK(gaim_gtk_blist_drag_data_rcv_cb), NULL); |
3124 g_signal_connect(G_OBJECT(gtkblist->treeview), "drag-data-get", G_CALLBACK(gaim_gtk_blist_drag_data_get_cb), NULL); | 3126 g_signal_connect(G_OBJECT(gtkblist->treeview), "drag-data-get", G_CALLBACK(gaim_gtk_blist_drag_data_get_cb), NULL); |
3125 | 3127 |