diff options
author | Alexander Larsson <alexl@redhat.com> | 2001-05-07 19:24:18 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-05-07 19:24:18 +0000 |
commit | 404d1a2d7e0caee4e7aa1808cd9d9e9c6410c877 (patch) | |
tree | d123115a1e22afb2715504aee4fb1adbce6e556e /gtk/gtkdnd.c | |
parent | b19d0812ef453af2e295871bd68cca5f5ec959d5 (diff) | |
download | gtk+-404d1a2d7e0caee4e7aa1808cd9d9e9c6410c877.tar.gz |
New function for getting toplevel window at position.
2001-05-07 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
New function for getting toplevel window at position.
(gdk_drag_find_window): Use get_toplevel_window () instead
of gdk_window_get_pointer(). (gdk_drag_status): Use
correct context for getting window.
* gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
g_strdup the atom name.
* gdk/linux-fb/gdkwindow-fb.c:
Costmetic fix.
* gtk/gtkdnd.c (gtk_drag_source_handle_event):
Add code for changing cursor on linux-fb backend (same as
win32).
Diffstat (limited to 'gtk/gtkdnd.c')
-rw-r--r-- | gtk/gtkdnd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 3b2a8b967f..5d14a4e8d1 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -509,7 +509,7 @@ gtk_drag_get_event_actions (GdkEvent *event, default: break; } - + if ((button == 2 || button == 3) && (actions & GDK_ACTION_ASK)) { *suggested_action = GDK_ACTION_ASK; @@ -1789,7 +1789,7 @@ gtk_drag_begin (GtkWidget *widget, gtk_drag_get_event_actions (event, info->button, actions, &suggested_action, &possible_actions); - + info->cursor = gtk_drag_get_cursor (suggested_action); /* Set cur_x, cur_y here so if the "drag_begin" signal shows @@ -2242,13 +2242,13 @@ gtk_drag_source_handle_event (GtkWidget *widget, PointerMotionMask | PointerMotionHintMask | ButtonReleaseMask, ((GdkCursorPrivate *)cursor)->xcursor, event->dnd.time); -#elif defined (GDK_WINDOWING_WIN32) +#elif defined (GDK_WINDOWING_WIN32) || defined (GDK_WINDOWING_FB) gdk_pointer_grab (widget->window, FALSE, GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_RELEASE_MASK, NULL, - info->cursor, event->dnd.time); + cursor, event->dnd.time); #endif info->cursor = cursor; } @@ -2741,7 +2741,7 @@ gtk_drag_update (GtkDragSourceInfo *info, gdk_drag_find_window (info->context, window, x_root, y_root, &dest_window, &protocol); - + if (gdk_drag_motion (info->context, dest_window, protocol, x_root, y_root, action, possible_actions, |