Benjamin Otte
4658d7ea54
dnd: Remove x/y coordinates from drag-data-received
...
This is in preparation of using input streams to show that these
coordinates aren't needed most of the time and can otherwise be saved
during GtkWidget::drag-drop.
2017-12-05 05:29:00 +01:00
Matthias Clasen
6f00c1b626
Expand the docs
...
Cross-reference the serializers.
2017-12-04 16:28:33 -08:00
Matthias Clasen
ddcd687617
Document gdk_content_provider_contents_changed
2017-12-04 16:08:32 -08:00
Matthias Clasen
91499d4b0e
gdk: Expand the clipboard documentation
2017-12-04 16:06:02 -08:00
Matthias Clasen
77f0e678ec
gdk: Fill in some blanks in the docs
...
This is just an initial cut; more work is needed.
2017-12-04 15:58:30 -08:00
Matthias Clasen
d5afb9e805
Add a long description for GdkTexture
2017-12-04 11:04:02 -08:00
Matthias Clasen
384a999032
Move GdkGrabStatus docs
...
This enum was the odd man out in the initialization docs.
Move it to GdkSeat where grabbing happens nowadays.
2017-12-04 10:36:19 -08:00
Matthias Clasen
edfb86fe10
Add new stuff to the gdk docs
...
Document all the things.
2017-12-04 10:32:17 -08:00
Matthias Clasen
5cc7bf5dbd
Fix the gdk doc build
...
Some types don't exist anymore.
2017-12-04 10:03:23 -08:00
Timm Bäder
8619ff0744
switch: Remove unused variable
2017-12-04 18:35:48 +01:00
Benjamin Otte
2f12eb616a
wayland: Initialize variable
...
Otherwise we get NULL-warnings when we try to use (read: unref) it.
2017-12-04 18:28:53 +01:00
Matthias Clasen
841eb45b66
actionbar: Add more docs for gtk_action_bar_get_revealed
...
This stops gtk-doc complaints.
2017-12-04 07:42:01 -08:00
Matthias Clasen
b912416be5
about dialog: Add some missing docs
...
gtk_about_dialog_set/get_system_information are new,
and were missing docs.
2017-12-04 07:42:01 -08:00
Matthias Clasen
5c1a46c149
docs: Remove gtk_application_is_inhibited
...
It doesn't exist anymore.
2017-12-04 07:42:01 -08:00
Timm Bäder
93df23d962
Remove some more gtk_widget_get_content_size uses
2017-12-04 12:42:52 +01:00
Timm Bäder
1ed364a000
widgetbowl: Add some more widget types
2017-12-04 12:24:33 +01:00
Timm Bäder
78832732c4
testswitch: Remove unnecessary gtk_widget_show calls
2017-12-04 12:24:27 +01:00
Timm Bäder
3a3783dfcd
image: Stop using gtk_widget_get_content_size
2017-12-04 12:24:18 +01:00
Timm Bäder
dbc4796d6a
popover: Stop using gtk_widget_get_content_size
2017-12-03 22:05:15 +01:00
Timm Bäder
7cc9bee7a2
spinner: Stop using gtk_widget_get_content_size
2017-12-03 22:04:59 +01:00
Benjamin Otte
52b1cd40d1
gsk: Remove gsk_render_node_set_scaling_filters()
...
This is a leftover from the very early rendernode that we forgot to delete.
This can be seen by the fact that it is settable on an immutable object.
2017-12-03 21:57:21 +01:00
Piotr Drąg
794a2bfd00
Use Unicode quotation marks in new strings
...
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772371
2017-12-03 18:38:39 +01:00
Piotr Drąg
a5815ad5c6
Update POTFILES.in
2017-12-03 18:24:36 +01:00
Руслан Ижбулатов
bcc77e169c
GDK W32: Remove stray debug code
...
I have no idea how this slipped into master (these two lines are not present
in the same commit that went into gtk-3-22).
2017-12-03 06:10:03 +00:00
Benjamin Otte
acee3809b3
dnd: Remove unused variables
2017-12-03 06:50:51 +01:00
Matthias Clasen
6ab72b2653
Remove GdkDragProtocol from the api
...
...together with apis that return it. We were not using this
information in GTK+ at all, so no need to provide it.
2017-12-03 06:41:08 +01:00
Matthias Clasen
8b1b9f8c55
Drop api that is only for unmanaged dnd
...
These functions are not needed as public api anymore.
2017-12-03 06:24:24 +01:00
Matthias Clasen
e74c46fc4e
dnd: Handle rootwin drop in gdk
...
This lets us drop the only use of the drag protocol in gtk.
2017-12-03 06:22:25 +01:00
Matthias Clasen
6cfb55a396
dnd: Remove much of the unmanaged dnd
2017-12-03 06:17:42 +01:00
Benjamin Otte
ff577e6c2c
wayland: Add primary clipboard subclass
...
I decided to put this in a custom subclass, because then I could keep
the whole gtk primary protocol self-contained.
The other option would have been reusing GdkWaylandClipboard, but that
didn't seem worth it, especially because that code needs to interact
with the DND machinery, while the primary doesn't.
2017-12-03 05:46:49 +01:00
Benjamin Otte
ef69daacdf
wayland: Implement taking over the clipboard
...
The clipboard is now complete.
That was fast.
2017-12-03 05:46:49 +01:00
Benjamin Otte
82002eabfe
wayland: Implement reading the clipboard
...
We now keep track of what's in the clipboard and allow people to read
its contents.
2017-12-03 05:46:49 +01:00
Benjamin Otte
00192266a1
wayland: Add skeleton for a GdkClipboardWayland
...
Creates the source file and a custom subclass and makes sure it's used
by GDK.
2017-12-03 05:46:49 +01:00
Benjamin Otte
437d70f569
gdk: Get rid of owner change events
...
They're unused now.
2017-12-03 05:46:49 +01:00
Benjamin Otte
2d5c82b4ec
gtk: Remove GtkClipboard
2017-12-03 05:46:49 +01:00
Benjamin Otte
c8edc6ed58
icon-browser: Port to new clipboard
2017-12-03 05:46:49 +01:00
Benjamin Otte
c833b47b21
gtk-demo: Port to GdkClipboard
2017-12-03 05:46:49 +01:00
Benjamin Otte
18bf0eb61a
clipboard: Change image convenience APIs
...
Don't use pixbufs anymore, use textures.
2017-12-03 05:46:49 +01:00
Benjamin Otte
a34836f35b
gdk: Add (de)serializers for GDK_TYPE_TEXTURE
...
We want to use textures more, so we should be able to use them for
copy/paste and dnd.
2017-12-03 05:46:49 +01:00
Benjamin Otte
ead67a7c17
x11: Handle case where clipboard was reclaimed quickly
...
When the reply to a TARGETS request comes in, the clipboard may already
be reclaimed by the local app. Deal with that case (in an ugly way,
strictly speaking we should use a cancellable here).
This happens for example at startup when the initial TARGETS requests
have not been answered until after the main widow popped up. And if such
a window immediately claims the primary clipboard (like when the initial
focus is inside an entry), this race will happen.
2017-12-03 05:46:49 +01:00
Benjamin Otte
24c934f8c0
entry: Port to GdkClipboard
2017-12-03 05:46:49 +01:00
Benjamin Otte
5abd7a39a2
x11: Implement storing the clipboard
2017-12-03 05:46:49 +01:00
Benjamin Otte
b75546d0fb
x11: Implement MULTIPLE requests
2017-12-03 05:46:48 +01:00
Benjamin Otte
3ea258de26
tests: Don't crash if widgets go away before clipboard
...
Don't g_signal_connect() to the clipboard without protection - the
clipboard might outlast you and still emit signals.
2017-12-03 05:46:48 +01:00
Benjamin Otte
ea18793965
x11: Introduce GdkX11PendingSelectionNotify
...
This object tracks the SelectionNotifyEvent that has to be sent in
response to a SelectionRequest.
Currently it just looks like code reshuffling, but it's a prerequisite
for handling MULTIPLE, which requires to only send the notify after
every stream has writtten at least once.
But anyway, code is cleaner now, so it's a win!
2017-12-03 05:46:48 +01:00
Benjamin Otte
bcc0d4b5f0
x11: Split out a function
...
This will be necessary for MULTIPLE handling.
2017-12-03 05:46:48 +01:00
Benjamin Otte
0ff3340da7
main: Implement storing all clipboards
2017-12-03 05:46:48 +01:00
Benjamin Otte
4cce109e16
application: Put shared code into a common function
2017-12-03 05:46:48 +01:00
Benjamin Otte
fe7c283aea
clipboard: Add infrastructure to store clipboards
...
Clipboard managers will be so happy once the backends actually implement
it!
2017-12-03 05:46:48 +01:00
Benjamin Otte
51e46cc898
contentprovider: Add ref_storable_formats()
...
This is to be used for advocating to clipboard managers.
2017-12-03 05:46:48 +01:00