Chun-wei Fan
8059975f74
gtk/gtkseclection.c: Don't build X11 items unconditionally
...
Limit building the X11 items only when GDK_WINDOWING_X11 is defined.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
2017-11-21 14:16:19 +08:00
Benjamin Otte
1a70ca75e8
gdk: Sanitize GdkContentFormats API
...
Make sure the API reflects the idea that GdkContentFormats is a set
containing mime types. In particular, treat the object itself as a
plural - it's named content format`S' after all - and therefor use
the correct verb form.
Also make GdkContentFormats keep an array instead of a list, now that
it's immutable.
2017-11-20 23:15:11 +01:00
Benjamin Otte
fc2ce5a925
gdk: Make GdkContentFormats immutable
2017-11-20 23:13:10 +01:00
Benjamin Otte
9a6ec4e959
contentformats: Rename GtkTargetList
...
It's now called GdkContentsFormat
2017-11-20 23:12:33 +01:00
Benjamin Otte
0638bbb5d5
gdk: Move GtkTargetList to GDK
...
It's gonna be renamed next, so put it in the right source file already.
For now retain the old name to keep the diff small.
2017-11-20 23:12:33 +01:00
Benjamin Otte
0b40ad32f3
selection: Make GtkTargetList members private
...
Outside of the target list, don't access it directly, instead use public
APIs like the newly introduced gtk_target_list_intersects().
2017-11-20 23:12:33 +01:00
Benjamin Otte
c863ac0f90
dnd: Remove GtkTargetEntry and GtkTargetFlags
...
warning: We don't do any same-app checks anymore so you currently can
copy local data into external apps.
This will be fixed later.
2017-11-20 23:12:33 +01:00
Matthias Clasen
daacd25344
selection: Use x11-specific traps
...
The generic trap api is going away.
2017-11-16 23:42:55 -05:00
Benjamin Otte
3f5178dc21
selection: Remove the info uint
...
Instead of allowing people to pass a uint user-data, insist on them
comparing mime types.
The user data was a uint instead of a pointer anyway, so uniqueness
could not be guaranteed and it caused more issues than it was worth.
And that's ignoring the fact that it basically wasn't used.
2017-11-16 22:59:43 +01:00
Benjamin Otte
5da3059175
selection: Remove gtk_target_table_*() functions
2017-11-16 22:59:42 +01:00
Benjamin Otte
47e75b34a4
selection: Make GtkTargetEntry not allocatable
...
And remove it being registered as a boxed type (lol).
2017-11-16 22:59:42 +01:00
Benjamin Otte
dcc2577b97
introspection: Fix build
2017-11-15 19:33:26 +01:00
Benjamin Otte
4c4e914806
gdk: Replace GDK_NONE with NULL
2017-11-15 19:07:17 +01:00
Benjamin Otte
7efc5a1558
clipboard: Consistently use GtkTargetList
...
Some code was using GtkTargetList, some used GtkTargetEntry and some
GtkTargetPair.
2017-11-15 19:07:16 +01:00
Benjamin Otte
fb94f79094
selection: Remove #ifdef WAYLAND
...
Instead, turn the functions into backend API:
gdk_broadway_display_add_selection_targets()
gdk_broadway_display_clear_selection_targets()
Remove the old per-backend functions, too.
2017-11-15 19:07:16 +01:00
Matthias Clasen
65408a0b0c
Document new selection apis
...
Document the new cairo surface-based apis for GtkSelection.
2017-10-23 05:58:54 +02:00
Matthias Clasen
27e89c69cd
selection: Add another surface api
...
Of course, we need a getter too.
2017-10-23 05:58:54 +02:00
Matthias Clasen
ad00108678
selection: Add surface based apis
...
Add gtk_selection_data_set_surface.
2017-10-22 22:22:44 +02:00
Matthias Clasen
aeaa42121f
selection: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Owen W. Taylor
01136618b8
Guard against selection requestor disappearing
...
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
2015-10-22 11:05:03 -04:00
Matthias Clasen
b5d3bebae3
Don't use g_list_next in gtkselection.c
...
We generally access ->next directly.
2015-10-20 06:14:57 -04:00
Jasper St. Pierre
c40ba85ace
wayland: Don't use the default display
...
Pass a display in so that multi-display technology works.
2014-10-27 22:29:41 -07:00
Carlos Garnacho
f48b3cce02
wayland: Replace clipboard implementation
...
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
2014-09-01 19:17:53 +02:00
Carlos Garnacho
bd410421d8
gtkselection: Ensure the X11 specific message length only applies to X11
...
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
2014-09-01 19:17:53 +02:00
Rico Tzschichholz
e317117f03
gtk: Fix return annotation of gtk_selection_data_get_text
2014-08-20 08:54:12 +02:00
Ignacio Casal Quinteiro
8f873f3aa3
gtkselection: fix warnings of unused vars on win32
2014-07-22 17:22:00 +02:00
Dieter Verfaillie
daa8b48a33
Fix gtk_selection_data_get_data annotations
...
The annotations were intended for the return
value, not the instance argument.
https://bugzilla.gnome.org/show_bug.cgi?id=731299
2014-06-12 21:01:01 +02:00
Evan Nemerson
54ec42f035
gtk: port many nullability annotation fixes from Vala bindings
...
https://bugzilla.gnome.org/show_bug.cgi?id=730745
2014-05-30 13:24:20 -07:00
Evan Nemerson
e596e58c51
gtk: port missing array annotations from Vala bindings
...
https://bugzilla.gnome.org/show_bug.cgi?id=730745
2014-05-27 21:10:32 -07:00
Evan Nemerson
0ebc4decbb
selection: mark targets param to gtk_target_list_new as allow-none
...
https://bugzilla.gnome.org/show_bug.cgi?id=728165
2014-04-14 23:27:41 -07:00
William Jon McCann
469d333aa2
docs: use Returns: consistently
...
Instead of Return value:
2014-02-19 18:56:05 -05:00
Matthias Clasen
7f6a964c47
Docs: Remove all entities and turn off sgml mode
...
With all element markup gone, it is time to turn off
sgml mode, and get rid of entities as well.
2014-02-09 17:58:07 -05:00
William Jon McCann
a4b5929e81
docs: use apostrophe in *'re
2014-02-07 13:37:09 -05:00
William Jon McCann
e34bd4137d
docs: use apostrophes in *n't
2014-02-07 13:32:47 -05:00
William Jon McCann
7a208fbbf3
docs: use proper apostrophe
...
https://wiki.gnome.org/Design/OS/Typography
2014-02-07 13:06:10 -05:00
William Jon McCann
2a45418b67
docs: use proper quotes
2014-02-05 15:08:42 -05:00
William Jon McCann
2d003553e8
docs: don't use <emphasis>
...
It is a little heavy handed. The text can speak for itself.
2014-01-28 02:02:05 -05:00
William Jon McCann
22586ea7c2
docs: use #*-struct instead of <structname>
2014-01-27 19:59:55 -05:00
William Jon McCann
93138e96c1
docs: don't reference nonexisting type in docs
2014-01-21 23:20:38 -05:00
William Jon McCann
9cfa3ba1f6
docs: fix typo in argument list
2014-01-21 18:57:40 -05:00
Matthias Clasen
9f1159a1a8
Fix a compiler warning
...
Don't return without a value from a non-void function.
2013-12-13 20:05:03 -05:00
Benjamin Otte
d4c8f1028a
clipboard: Don't crash when data is requested from NULL window
...
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
2013-12-13 19:07:42 +01:00
Bastien Nocera
438cd857c4
all: Add names to timeouts
...
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
2013-10-23 13:31:18 +02:00
Jasper St. Pierre
ddb4034e8e
Fix GI warnings
2013-10-09 14:19:54 -04:00
Phil Clayton
59c4fb9d6a
Add missing introspection annotations
...
https://bugzilla.gnome.org/show_bug.cgi?id=707519
2013-09-10 17:20:15 -04:00
Cosimo Cecchi
f70fc49ebc
docs: fix a number of typos and obsolete references
2012-07-02 10:41:11 -04:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Behdad Esfahbod
057a50d58e
Bug 658398 - Use of uninitialized variable reported by Valgrind
...
Fix it.
2011-09-07 16:19:44 -04:00
Benjamin Otte
5bc04bc07b
API: gdk: Make GdkEventSelection.requestor a GdkWindow
...
instead of a GdkNativeWindow. Also change gdk_selection_notify() API to
take a GdkWindow to match this change.
2011-02-01 18:51:57 +01:00
Pavel Holejsovsky
2fb1c06402
[GI] Add missing (out) and (array) annotations
2011-01-20 13:57:20 +01:00