summaryrefslogtreecommitdiff
path: root/gtk/gtkdnd.h
Commit message (Collapse)AuthorAgeFilesLines
* dnd: Rename gtk_drag_begin_with_coordinatesMatthias Clasen2018-07-121-6/+6
| | | | | Now that the coordiate-less variant is gone, rename this back to the shorter gtk_drag_begin.
* gdk: Rename GdkDragContext to GdkDragMatthias Clasen2018-07-021-13/+13
| | | | | | | This is to go along with the newly introduced GdkDrop. This commit includes the necessary updates to the X11, Wayland and Broadway backends. Other backends have to be updated separately.
* dnd: Make drag-motion and drag-drop signals use GdkDropBenjamin Otte2018-06-181-3/+2
|
* dnd: Get rid of gtk_drag_finish()Benjamin Otte2018-06-181-4/+0
| | | | It's just a wrapper around gdk_drag_finish(), so use that one instead.
* dnd: Remove gtk_drag_set_icon_surface()Benjamin Otte2018-03-261-3/+0
| | | | All users are gone. Use gtk_drag_set_icon_paintable() instead.
* dnd: Make dnd icon API take a paintableBenjamin Otte2018-03-161-2/+2
| | | | ... instead of a texture.
* The big versioning cleanupMatthias Clasen2018-02-061-4/+4
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* dnd: Pass device, not eventBenjamin Otte2017-12-121-1/+1
| | | | | You don't start a dnd operation with a device, you start it with an event.
* dnd: Remove button argument from drag_begin()Benjamin Otte2017-12-121-1/+0
| | | | It was unused.
* dnd: Remove "delete" argument from gtk_drag_finish()Benjamin Otte2017-12-101-1/+0
| | | | | | | The argument is ignored by anything but X11. It's treated like suggested_action == MOVE. So do that in gtk_drag_finish(), too.
* dnd: Add gtk_drag_set_icon_texture()Benjamin Otte2017-12-021-0/+5
|
* Fix some parameter name mismatches to make g-ir-scanner happierRico Tzschichholz2017-11-281-1/+1
|
* contentformats: Rename GtkTargetListBenjamin Otte2017-11-201-1/+1
| | | | It's now called GdkContentsFormat
* Drop gtk_drag_set_icon_pixbufMatthias Clasen2017-10-231-5/+0
| | | | | We are moving away from GdkPixbuf in the api. Use surface-based replacements instead.
* gtkdnd: Remove gtk_drag_beginTimm Bäder2016-10-181-7/+0
|
* Remove GtkStock API from GtkImageTimm Bäder2016-10-161-5/+0
|
* dnd: Move GtkDragDest to a separate fileMatthias Clasen2016-03-251-88/+0
| | | | | | This follows what was done for GtkDragSource in 415030d25f2552d3937ee3c394c50d22c5382982 and shaves another 500 lines off gtkdnd.c.
* dnd: Split GtkDragSourceSite into its own fileBenjamin Otte2015-11-251-35/+0
|
* Remove some useless commentsMatthias Clasen2015-05-161-6/+0
|
* DND: Move private api to a private headerMatthias Clasen2015-05-161-5/+0
|
* dnd: Allow programmatic drag cancellationMatthias Clasen2015-01-301-0/+3
| | | | | | | Add a gtk_drag_cancel() function that can be used on the source side to cancel an ongoing drag operation. This can be useful, e.g. if the data that is being dragged becomes unavailable.
* docs: fully break lines in examplesWilliam Jon McCann2014-02-121-3/+3
| | | | | | | | | Try to do a better job of keeping example content from being too wide. It is often rendered as <pre> text so the only time we can wrap it is in the source. It is best to full break lines at all punctuation and to try to keep the width under 70 chars or so.
* docs: use proper apostropheWilliam Jon McCann2014-02-071-2/+2
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: don't refer to types that don't existWilliam Jon McCann2014-01-211-1/+1
|
* gtkdnd: Introduce a new API for more accurate drag origin dataJasper St. Pierre2013-08-141-1/+10
| | | | | | | | | | | | | | | When trying to drag, we currently the position of the first motion event to determine where the drag came from. This might be alright in the case of the old animation, but the data will be inaccurate if the user has moved the pointer quite a bit since pressing the cursor to start dragging. While we could monkey patch the GdkEvent at the widget layer, this is unintuitive and strange. Add a new API that takes a set of pointer coordinates describing the origin of the drag. Additionally, adapt most widgets to use it and use it with correct coordinates. https://bugzilla.gnome.org/show_bug.cgi?id=705605
* Start deprecating some GtkStock APIWilliam Jon McCann2013-06-251-2/+2
|
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+34
| | | | Add annotations to all exported functions in GTK+ headers.
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-4/+4
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: Use versioned deprecationsMatthias Clasen2012-02-271-0/+2
| | | | | | | This patch changes all uses of GDK_DEPRECATED(_FOR) in gtk headers by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions in 3.2 and 3.4.
* gtkdnd: Add API that takes GIconColin Walters2011-05-031-0/+6
| | | | | | | 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-1/+35
|
* API: Remove the ability to set the dnd icon from a pixmapBenjamin Otte2010-09-261-10/+0
|
* API: Add gtk_drag_set_icon_surface()Benjamin Otte2010-09-261-10/+12
| | | | The function is supposed to replace gtk_drag_set_icon_pixmap().
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* Remove deprecated gtk_drag_set_default_iconChristian Dywan2010-05-031-8/+0
|
* no need to include <gtk/gtkenums.h> in headers which somehow includeMichael Natterer2008-10-301-1/+0
| | | | | | | | | | 2008-10-30 Michael Natterer <mitch@imendio.com> * gtk/*.h: no need to include <gtk/gtkenums.h> in headers which somehow include gtkobject.h or another header which includes it. svn path=/trunk/; revision=21734
* no need to include <gdk/gdk.h> in any widget header, it's included viaMichael Natterer2008-10-301-1/+2
| | | | | | | | | | 2008-10-30 Michael Natterer <mitch@imendio.com> * gtk/*.h: no need to include <gdk/gdk.h> in any widget header, it's included via gtkwidget.h anyway. svn path=/trunk/; revision=21732
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* whitespace cleanup: remove trailing whitespace and excess newlines andMichael Natterer2008-05-281-5/+2
| | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and excess newlines and sprinkled some newlines where needed. Zero code or formatting changes included. svn path=/trunk/; revision=20225
* define __GTK_H_INSIDE__ around including all other headers.Michael Natterer2008-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk.h: define __GTK_H_INSIDE__ around including all other headers. * gtk/gtktypebuiltins.h.template * gtk/gtkversion.h.in * gtk/gtk*.h: add single-include guards that #error out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is included individually. * gtk/gtkprintbackend.h * gtk/gtkprinter-private.h * gtk/gtktextlayout.h * gtk/gtktexttagprivate.h * gtk/gtktexttypes.h * gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual headers in these private or semi-private headers. * gtk/gtkimmodule.h: also here because it's not in gtk.h. * gtk/gtkpagesetupunixdialog.h * gtk/gtkprinter.h * gtk/gtkprintjob.h * gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers. * gtk/gtkclist.h * gtk/gtkcombo.h * gtk/gtkctree.h * gtk/gtkfilesel.h * gtk/gtkitemfactory.h * gtk/gtklist.h * gtk/gtklistitem.h * gtk/gtkoldeditable.h * gtk/gtkoptionmenu.h * gtk/gtkpixmap.h * gtk/gtkpreview.h * gtk/gtksignal.h * gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h> instead of individual headers in these deprecated headers. They don't get included at all when GTK_DISABLE_DEPRECATED is defined, so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED and include them individually, which should continue to work. * gtk/gtkclist.c: include "gtkctree.h" because of the change above. svn path=/trunk/; revision=20221
* Add GTK_TARGET_OTHER_{APP,WIDGET} to restrict drags within anMatthias Clasen2007-04-281-1/+3
| | | | | | | | | | | 2007-04-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkdnd.[hc]: Add GTK_TARGET_OTHER_{APP,WIDGET} to restrict drags within an application/widget. (#163141, Jorn Baayen) svn path=/trunk/; revision=17676
* Improved DND support for GtkNotebook (#332991, Carlos Garnacho)Matthias Clasen2006-03-221-0/+5
| | | | | | | | | | | | | | | | | | 2006-03-22 Matthias Clasen <mclasen@redhat.com> Improved DND support for GtkNotebook (#332991, Carlos Garnacho) * gtk/gtk.symbols: * gtk/gtkdnd.h: * gtk/gtkdnd.c: Add a track_motion flag on GtkDragDest with getter and setter, for cases where the drag destination is interested in drag motion events independent of targets. * gtk/gtksettings.c (gtk_settings_class_init): Add a setting for the timeout used when expanding during DND. * gtk/gtknotebook.c: Use the track_motion flag to switch notebook tabs when hovering over tabs during DND.
* New functions to support themed drag icons. (#116577, Christian Neumair)Matthias Clasen2005-05-181-0/+6
| | | | | | | | | | 2005-05-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkdnd.h: * gtk/gtkdnd.c (gtk_drag_source_set_icon_name) (gtk_drag_set_icon_name): New functions to support themed drag icons. (#116577, Christian Neumair)
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-6/+2
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* Use the new file DND api.Matthias Clasen2004-10-221-2/+4
| | | | | | | | | | | | | | | | | | | | | | 2004-10-22 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_drag_data_received) (gtk_file_chooser_button_init): Use the new file DND api. * gtk/gtkdnd.h: * gtk/gtkdnd.c (gtk_drag_dest_add_uri_targets) (gtk_drag_source_add_uri_targets): * gtk/gtkselection.h: * gtk/gtkselection.c (gtk_target_list_add_uri_targets): (gtk_selection_data_set_uris): (gtk_selection_data_get_uris): New functions to allow handling file DND "without knowing jack shit". * configure.in: Bump glib requirement to 2.5.4. * gtk/gtkfilechooserdefault.c (shortcuts_drop_uris): Use g_uri_list_extract_uris().
* Add convenience api for image dnd (#150165):Matthias Clasen2004-10-211-0/+2
| | | | | | | | | | | | | | | | | 2004-10-21 Matthias Clasen <mclasen@redhat.com> Add convenience api for image dnd (#150165): * gtk/gtkselection.h: * gtk/gtkselection.c (gtk_target_list_add_image_targets) (gtk_selection_data_set_pixbuf, gtk_selection_data_get_pixbuf): New functions to handle the image formats readable/writable by gdk-pixbuf. * gtk/gtkdnd.h: * gtk/gtkdnd.c (gtk_drag_dest_add_image_targets) (gtk_drag_source_add_text_targets): New functions to handle the image formats readable/writable by gdk-pixbuf.
* Support text/plain selection target (#55117, Owen Taylor)Matthias Clasen2004-07-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Jul 17 00:48:27 2004 Matthias Clasen <maclas@gmx.de> Support text/plain selection target (#55117, Owen Taylor) * gtk/gtkselection.h: * gtk/gtkdnd.h: * gtk/gtkselection.c (gtk_target_list_add_text_targets): * gtk/gtkdnd.c (gtk_drag_dest_add_text_targets): * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): New functions to facilitate handling of text targets. * gtk/gtkentry.c: * gtk/gtktextview.c: Use the new text target handling functions instead of hardwiring the list of supported text targets everywhere. * gtk/gtkselection.c (gtk_selection_data_get_text): (gtk_selection_data_set_text): Support the targets text/plain, text/plain?charset=utf-8 and text/plain?charset=<LOCALE-CHARSET> as outlined in #55117: For text/plain send only ASCII, but accept 8-bit text and treat it as ISO-8859-1 as specified by the Xdnd spec. Always send CRLF terminators. Accept either and convert into the native terminator for the platform.
* Add gtk_drag_source_set/get_target_list(). (#127499, based on patch fromOwen Taylor2004-03-021-0/+4
| | | | | | | | | | Mon Mar 1 19:30:25 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.[ch]: Add gtk_drag_source_set/get_target_list(). (#127499, based on patch from Michael Natterer) * tests/testgtk.c: Fix bidi strings to display correctly with new auto-bidi.