summaryrefslogtreecommitdiff
path: root/gtk/gtkdnd.c
Commit message (Collapse)AuthorAgeFilesLines
* Start deprecating some GtkStock APIWilliam Jon McCann2013-06-251-2/+6
|
* Start migrating internals away from GtkStockWilliam Jon McCann2013-06-241-3/+3
|
* fix mem leak in gtk_drag_set_icon_surface, destroy patternammonkey2013-04-131-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681446
* Fix DNDMatthias Clasen2013-03-211-1/+1
| | | | | | The removal of the Motif DND code accidentally changed the value of the TARGET_DELETE enumeration value, breaking DND pretty badly.
* Drop the Motif DND protocolMatthias Clasen2013-03-121-31/+1
| | | | | | | The implementation is not working and unused, since XDND is the de-facto standard under X nowadays. https://bugzilla.gnome.org/show_bug.cgi?id=695476
* Fix DND with frame syncMatthias Clasen2013-02-281-1/+1
| | | | | | | | Mutter magically ignores override-redirect windows with geometry -100-100+1+1, and this breaks the frame synchronization between gtk+ and mutter. For now, we avoid the issue by simply giving the window a different geometry. https://bugzilla.gnome.org/show_bug.cgi?id=694217
* Fix DND keyboard control with XI2Matthias Clasen2012-08-061-0/+12
| | | | | | | We are using XI2 to grab the key events, but we did not do the necessary extra work to make GDK deliver root window events to us. https://bugzilla.gnome.org/show_bug.cgi?id=681006
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtkdnd: Use symbolic names for button numbersCarlos Garcia Campos2012-01-271-1/+1
|
* Move fallback dnd cursors to resourcesAlexander Larsson2012-01-161-13/+29
|
* gtk/*: Use g_list_free_full() convenience functionJavier Jardón2012-01-051-2/+1
|
* dnd: port to GtkIconHelperCosimo Cecchi2011-11-301-193/+109
|
* gtk: Fix XIGrabKeycode usageBastien Nocera2011-10-281-14/+4
| | | | | | | | | A modifier of "0" is still a modifier and must be submitted normally. A num_modifiers of 0 is essentially a noop in the server. As mentioned by Peter Hutterer <peter.hutterer@who-t.net> https://bugzilla.gnome.org/show_bug.cgi?id=662839
* DND: Work better with XI2Matthias Clasen2011-10-201-17/+113
| | | | | | | | | | | | It turns out that simply using XIGrabKeycode instead of XGrabKey makes the DND keyboard support mostly work (there seem to be some minor issues with modifiers). This means we no longer grab the keyboard actively during DND, which in turn makes Alt-Tab and other window manager shortcuts work again during DND. At the same time, bring the DND key handling code into the multi-backend work, by checking for X11 and XI2 at runtime, in addition to compile time.
* [gi] add more annotations to force drag and drop api to be methodsJohn (J5) Palmieri2011-06-291-14/+14
|
* [gi] make sure gtk_drag_dest_unset is annotated as a methodJohn (J5) Palmieri2011-06-291-1/+1
|
* gtkdnd: Don't bind/unbind keycodes that couldn't be determinedDaniel Drake2011-06-121-0/+4
| | | | | | | | | | | | | | | At http://dev.laptop.org/ticket/10643 we are seeing that drag-and-drop within the Sugar shell causes all of Sugar's custom keybindings to be removed. This is because gtkdnd tries to unbind XK_KP_Space, which (on my systems) is resolved to NoSymbol by XKeycodeToKeysym(). NoSymbol has value 0, the same as AnyKey, and XUngrabKey(AnyKey) is equivalent to unbinding all possible keycodes. Fix this by catching NoSymbol before binding/unbinding. https://bugzilla.gnome.org/show_bug.cgi?id=652402
* gtkdnd: Add API that takes GIconColin Walters2011-05-031-4/+82
| | | | | | | This will be useful for me to port gnome-panel to gnome-menus 4, which uses GAppInfo, which in turn returns icon references as GIcon. https://bugzilla.gnome.org/show_bug.cgi?id=649295
* Move documentation to inline comments: GtkDndJavier Jardón2011-04-181-55/+93
|
* dnd: Use G_N_ELEMENTS()Benjamin Otte2011-03-261-7/+5
| | | | | | Now that we have wesome macros in glib 2.0, we can use them. Woohoo, GTK 2.0 will be so awesome in the future. (Did anybody touch dnd code this millenium?)
* gtk: Fix warnings for dnd code without XInputBenjamin Otte2011-02-111-2/+2
|
* gtk: don't send BUTTON_RELEASE to unrealized widgetsMichael Natterer2011-02-111-22/+25
| | | | | | which happened when the source widget was hidden or destroyed while a drag was going on, like when dragging from a popup that got a grab broken as result of the dnd operation.
* Rename time to time_ to avoid a scanner warningJohan Dahlin2011-02-081-5/+5
|
* API: image: Move private struct definitions into private headerBenjamin Otte2011-02-081-1/+1
| | | | | They weren't privatized because the dnd code used them, too. But a private header can allow the dnd code to be nasty, so go dnd code!
* [GI] Add method annotations to remaining gtk_drag_* functions.Laszlo Pandy2011-02-031-48/+38
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=639945
* [GI] Annotate gtk_drag_{dest,source}* as methodsMartin Pitt2011-02-021-30/+28
| | | | | | | | | | As these do not start with gtk_widget_*, the GI scanner does not recognize them as methods. With the recently added (method) annotation [1] it is now possible to mark them as proper methods of GtkWidget. https://bugzilla.gnome.org/show_bug.cgi?id=639945 [1] http://git.gnome.org/browse/gobject-introspection/commit/?id=09bca85dd4
* [GI] Add missing (transfer) annotationsPavel Holejsovsky2011-01-201-5/+5
|
* Make DnD code use GtkStyleContext for the highlight rectangle.Carlos Garnacho2011-01-041-4/+9
|
* API: gdk: gdk_display_get_device_state() => gdk_device_get_position()Benjamin Otte2010-12-271-6/+2
| | | | | The API was not display-specific, but belonged to the device. Also, we didn't find a user of the modifier mask, so we dropped it.
* Better fix for keynav dndMatthias Clasen2010-12-221-4/+6
| | | | With proper rounding, we can go back to a 'small step' of 1.
* Abort a drag when a keynav drop has not destinationMatthias Clasen2010-12-221-34/+42
| | | | | | | | | | This was claimed to cause problems for Chromium, see bug 599130. Also work around apparent rounding errors in XIWarpDevice by setting the 'small step' for keynav dnd to 2 instead of 1 - I notice that a warp seems to sometimes warp a little less than I tell it to, and if I tell it to only move by 1 pixel then moving less means that you are stuck.
* API: gdk: gdk_display_warp_device() => gdk_device_warp()Benjamin Otte2010-12-211-3/+3
| | | | | warping devices has nothing to do with displays, so putting it there seems weird.
* gtk: Use g_object_unref instead of gdk_cursor_unrefBenjamin Otte2010-12-211-4/+4
|
* Merge libgdk and libgtkMatthias Clasen2010-12-211-3/+1
| | | | | | | | | | | This commit does a number of things: - remove some dead wchar configury from configure.ac and gdkconfig.h - repurpose gdkconfig.h as header that contains GDK_WINDOWING_foo macros for each included backend, include it in gdk.h and install it in $includedir instead of below $libdir - drop the backend from the library names - build libgdk-3.0.la as a convenience lib and include it in libgtk-3.0.la It does not yet enable building multiple backends at the same time.
* Move GtkSelectionData to a private headerJavier Jardón2010-12-191-0/+1
|
* gtk/gtkdnd.c: Use accessor functions to access GtkSelectionDataJavier Jardón2010-12-151-13/+15
|
* Don't access GdkDragContext fields directlyMatthias Clasen2010-12-101-40/+34
| | | | Instead use the accessors.
* dnd: Use gtk_widget_render_icon_pixbuf()Carlos Garcia Campos2010-12-081-2/+2
| | | | Instead of gtk_widget_render_icon() which is now deprecated.
* Move all GdkDevice members to private and add one missing accessorMichael Natterer2010-11-231-1/+1
|
* Don't g_free gslice-allocated structuresMatthias Clasen2010-10-271-1/+1
| | | | | This was causing memory corruption when removing remote plugs from sockets.
* Fix typo in docsKristian Rietveld2010-10-171-6/+6
|
* dnd: Fix gtk_drag_set_icon_surface() with translucent surfacesBenjamin Otte2010-09-301-1/+3
| | | | | The code for surfaces with alpha content was apparently untested and screwed up the signs.
* docs: Add note about hot_x/y in gtk_drag_set_icon_surface()Benjamin Otte2010-09-301-0/+5
|
* API: Rename gtk_cairo_paint_*() to gtk_paint_*()Benjamin Otte2010-09-261-1/+1
| | | | | | Large patch, but just renaming. Indentation should still mostly be correct because I took care of keeping the indentation for this function name.
* dnd: Connect to raw func for drag hilightBenjamin Otte2010-09-261-49/+19
|
* gtk: gdk_drawable_get_display() => gdk_window_get_display()Benjamin Otte2010-09-261-1/+1
|
* gtk: gdk_drawable_get_screen/visual => gdk_window_get_screen/visualBenjamin Otte2010-09-261-6/+6
|
* dnd: Remove unused colormap codeBenjamin Otte2010-09-261-6/+0
|
* API: Remove gtk_widget_push_colormap()Benjamin Otte2010-09-261-6/+0
| | | | | And of course, gtk_widget_pop_colormap() is gone, too. No replacement is necessary, the function is basically unused.
* dnd: Replace last pixmap usage with cairo surfaces.Benjamin Otte2010-09-261-14/+34
|