summaryrefslogtreecommitdiff
path: root/gtk/gtkselection.c
Commit message (Collapse)AuthorAgeFilesLines
* Guard against selection requestor disappearingOwen W. Taylor2015-10-221-1/+11
| | | | | | | | | | | | | | We made a number of unchecked accesses to the selection requestor, which could cause X errors if the selection requestor vanished (or we were sent invalid events). Add error traps around all of them. See https://bugzilla.redhat.com/show_bug.cgi?id=1210814 for an example of a crash that could be caused by this. (There are about 1000 instances of such a crash in http://retrace.fedoraproject.org though no linked bug reports specifically talk about cut-and-paste or DND.) https://bugzilla.gnome.org/show_bug.cgi?id=756881
* Don't use g_list_next in gtkselection.cMatthias Clasen2015-10-201-3/+1
| | | | We generally access ->next directly.
* wayland: Don't use the default displayJasper St. Pierre2014-10-271-1/+1
| | | | Pass a display in so that multi-display technology works.
* wayland: Replace clipboard implementationCarlos Garnacho2014-09-011-0/+27
| | | | | | | | | The wayland specific clipboard functions have been replaced by something more similar to the hooking the win32 backend does, which allows for just using the default GtkClipboard code in GTK+. As a consequence, the wayland-specific GtkClipboard implementation is now gone. https://bugzilla.gnome.org/show_bug.cgi?id=697855
* gtkselection: Ensure the X11 specific message length only applies to X11Carlos Garnacho2014-09-011-1/+3
| | | | | | | Other backends are compilable together with the X11 one, so the message lenght limit was applying to them all. https://bugzilla.gnome.org/show_bug.cgi?id=697855
* gtk: Fix return annotation of gtk_selection_data_get_textRico Tzschichholz2014-08-201-1/+1
|
* gtkselection: fix warnings of unused vars on win32Ignacio Casal Quinteiro2014-07-221-2/+3
|
* Fix gtk_selection_data_get_data annotationsDieter Verfaillie2014-06-121-2/+2
| | | | | | | The annotations were intended for the return value, not the instance argument. https://bugzilla.gnome.org/show_bug.cgi?id=731299
* gtk: port many nullability annotation fixes from Vala bindingsEvan Nemerson2014-05-301-4/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=730745
* gtk: port missing array annotations from Vala bindingsEvan Nemerson2014-05-271-1/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=730745
* selection: mark targets param to gtk_target_list_new as allow-noneEvan Nemerson2014-04-141-1/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=728165
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-26/+26
| | | | Instead of Return value:
* Docs: Remove all entities and turn off sgml modeMatthias Clasen2014-02-091-4/+4
| | | | | With all element markup gone, it is time to turn off sgml mode, and get rid of entities as well.
* docs: use apostrophe in *'reWilliam Jon McCann2014-02-071-1/+1
|
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-4/+4
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-2/+2
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: use proper quotesWilliam Jon McCann2014-02-051-9/+9
|
* docs: don't use <emphasis>William Jon McCann2014-01-281-1/+1
| | | | It is a little heavy handed. The text can speak for itself.
* docs: use #*-struct instead of <structname>William Jon McCann2014-01-271-20/+20
|
* docs: don't reference nonexisting type in docsWilliam Jon McCann2014-01-211-3/+3
|
* docs: fix typo in argument listWilliam Jon McCann2014-01-211-1/+1
|
* Fix a compiler warningMatthias Clasen2013-12-131-1/+1
| | | | Don't return without a value from a non-void function.
* clipboard: Don't crash when data is requested from NULL windowBenjamin Otte2013-12-131-0/+3
| | | | | | | | | | | This could happen if data was requested from a separate screen now that multi-screen is no longer supported. Ideally, we'd want to support copying to other screens, but that requires solving in GDK as that's X-specific so cannot be well abstracted by GDK (without the reintroduction of multiple screens). https://bugzilla.gnome.org/show_bug.cgi?id=719314
* all: Add names to timeoutsBastien Nocera2013-10-231-2/+7
| | | | | | | Add names to every timeout we setup, so it's easier to track their usage, and debug possible misbehaviour. https://bugzilla.gnome.org/show_bug.cgi?id=710651
* Fix GI warningsJasper St. Pierre2013-10-091-2/+1
|
* Add missing introspection annotationsPhil Clayton2013-09-101-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=707519
* docs: fix a number of typos and obsolete referencesCosimo Cecchi2012-07-021-2/+2
|
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Bug 658398 - Use of uninitialized variable reported by ValgrindBehdad Esfahbod2011-09-071-2/+1
| | | | Fix it.
* API: gdk: Make GdkEventSelection.requestor a GdkWindowBenjamin Otte2011-02-011-9/+1
| | | | | instead of a GdkNativeWindow. Also change gdk_selection_notify() API to take a GdkWindow to match this change.
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-15/+17
|
* [GI] Add missing (transfer) annotationsPavel Holejsovsky2011-01-201-4/+4
|
* [GI] Fixes of existing incorrect annotationsPavel Holejsovsky2011-01-201-1/+1
|
* [GI] Add (type) annotations to real typesPavel Holejsovsky2011-01-201-4/+4
|
* Move GtkSelection docs inlineMatthias Clasen2011-01-141-0/+26
| | | | At the same time, move private selection API to gtkselectionprivate.h
* add gtk_selection_data_get_data_with_length API which can be boundMatthias Clasen2011-01-031-0/+23
| | | | | | | * gtk_selection_data_get_data can't be bound because we need to know the length of data inorder to marshal it https://bugzilla.gnome.org/show_bug.cgi?id=635299
* x11: Rename GdkDisplayX11 to GdkX11DisplayBenjamin Otte2010-12-211-2/+2
| | | | Also rename all the macros etc.
* Deal with property encoding functionsMatthias Clasen2010-12-211-10/+14
| | | | | | | | Move everything dealing with compound text to be X11 specific Only gdk_text_property_to_utf8_list and gdk_utf8_to_string_target are kept across backends, so add vfuncs for these. Also, remove the non-multihead-safe variants of all these.
* Make gdk_window_{lookup,foreign_new}_for_display backend specificMatthias Clasen2010-12-211-10/+10
| | | | | At the same time, make GDK_IS_DISPLAY_X11 available in gdkx.h, and add some exemplaric ifdefs to GTK+ code.
* Move GtkSelectionData to a private headerJavier Jardón2010-12-191-1/+4
|
* selection: constify GtkSelectionData gettersBenjamin Otte2010-12-171-21/+21
|
* API: Remove GDK_WINDOW_XWINDOW() macroBenjamin Otte2010-12-021-1/+1
| | | | | | | Use GDK_WINDOW_XID() instead. THis was done using sed, so there might be issues resulting to that. Feel free to fix.
* [gi] add array annotations for DnD related methodsJohn (J5) Palmieri2010-11-191-1/+1
|
* selection: Hi, I can't get my code rightBenjamin Otte2010-10-181-1/+1
| | | | Also, I refuse to compile with -Werror, so I don't notice.
* Add boxed type and constructorColin Walters2010-10-151-1/+67
| | | | | | This allows bindings to sanely construct these. https://bugzilla.gnome.org/show_bug.cgi?id=632095
* Remove GtkObject completelyMatthias Clasen2010-09-261-0/+1
|
* gtk: gdk_drawable_get_display() => gdk_window_get_display()Benjamin Otte2010-09-261-1/+1
|
* Tons of transfer annotationsMatthias Clasen2010-09-211-2/+2
|
* Use gdk_error_trap_pop_ignore() where appropriateMatthias Clasen2010-09-181-2/+2
|
* Use accessor functions in Win32-only codeTor Lillqvist2010-09-091-2/+2
|