Fixed bug with simultaneous dragging icon and reordering tabs in notebook

master
Yevgen Muntyan 2006-08-20 15:41:14 -05:00
parent ca1310a325
commit 60de5a4217
1 changed files with 5 additions and 1 deletions

View File

@ -1868,6 +1868,7 @@ _moo_edit_window_remove_doc (MooEditWindow *window,
typedef struct { typedef struct {
int x; int x;
int y; int y;
gboolean drag_started;
} DragInfo; } DragInfo;
@ -1954,9 +1955,12 @@ tab_icon_motion_notify (GtkWidget *evbox,
info = g_object_get_data (G_OBJECT (evbox), "moo-drag-info"); info = g_object_get_data (G_OBJECT (evbox), "moo-drag-info");
g_return_val_if_fail (info != NULL, FALSE); g_return_val_if_fail (info != NULL, FALSE);
if (info->drag_started)
return TRUE;
if (gtk_drag_check_threshold (evbox, info->x, info->y, event->x, event->y)) if (gtk_drag_check_threshold (evbox, info->x, info->y, event->x, event->y))
{ {
g_signal_handlers_disconnect_by_func (evbox, (gpointer) tab_icon_motion_notify, window); info->drag_started = TRUE;
tab_icon_start_drag (evbox, (GdkEvent*) event, window); tab_icon_start_drag (evbox, (GdkEvent*) event, window);
} }