You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.8 KiB
54 lines
1.8 KiB
15 years ago
|
--- file-roller-2.28.1/src/eggtreemultidnd.c 2009-10-19 13:53:45.000000000 -0400
|
||
|
+++ hacked/src/eggtreemultidnd.c 2009-10-29 23:23:12.660790804 -0400
|
||
|
@@ -179,8 +179,14 @@
|
||
|
priv_data->event_list = NULL;
|
||
|
priv_data->pending_event = FALSE;
|
||
|
|
||
|
- g_signal_handler_disconnect (widget, priv_data->motion_notify_handler);
|
||
|
- g_signal_handler_disconnect (widget, priv_data->button_release_handler);
|
||
|
+ if (priv_data->motion_notify_handler) {
|
||
|
+ g_signal_handler_disconnect (widget, priv_data->motion_notify_handler);
|
||
|
+ priv_data->motion_notify_handler = 0;
|
||
|
+ }
|
||
|
+ if (priv_data->button_release_handler) {
|
||
|
+ g_signal_handler_disconnect (widget, priv_data->button_release_handler);
|
||
|
+ priv_data->button_release_handler = 0;
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
|
||
|
@@ -401,16 +407,23 @@
|
||
|
priv_data->event_list = g_slist_append (priv_data->event_list,
|
||
|
gdk_event_copy ((GdkEvent*)event));
|
||
|
|
||
|
- priv_data->motion_notify_handler =
|
||
|
- g_signal_connect (G_OBJECT (tree_view),
|
||
|
- "motion_notify_event",
|
||
|
- G_CALLBACK (egg_tree_multi_drag_motion_event),
|
||
|
- NULL);
|
||
|
- priv_data->button_release_handler =
|
||
|
- g_signal_connect (G_OBJECT (tree_view),
|
||
|
- "button_release_event",
|
||
|
- G_CALLBACK (egg_tree_multi_drag_button_release_event),
|
||
|
- NULL);
|
||
|
+ if (priv_data->motion_notify_handler == 0)
|
||
|
+ {
|
||
|
+ priv_data->motion_notify_handler =
|
||
|
+ g_signal_connect (G_OBJECT (tree_view),
|
||
|
+ "motion_notify_event",
|
||
|
+ G_CALLBACK (egg_tree_multi_drag_motion_event),
|
||
|
+ NULL);
|
||
|
+ }
|
||
|
+
|
||
|
+ if (priv_data->button_release_handler == 0)
|
||
|
+ {
|
||
|
+ priv_data->button_release_handler =
|
||
|
+ g_signal_connect (G_OBJECT (tree_view),
|
||
|
+ "button_release_event",
|
||
|
+ G_CALLBACK (egg_tree_multi_drag_button_release_event),
|
||
|
+ NULL);
|
||
|
+ }
|
||
|
|
||
|
if (priv_data->drag_data_get_handler == 0)
|
||
|
{
|