Alexander Larsson
e80ad0e0f9
broadway: Remove references to unused BROADWAY_EVENT_DELETE_NOTIFY
2017-12-05 15:50:34 +01:00
Alexander Larsson
4694885015
broadway: Remove now unused toplevel surface
2017-12-05 15:50:34 +01:00
Christian Hergert
dc8320c129
autocleanups: allow g_autoptr() usage with GtkTreePath
...
As the summary says, this allows using g_autoptr(GtkTreePath). This is
useful for API that uses out parameters for GtkTreePath that need to be
freed.
https://bugzilla.gnome.org/show_bug.cgi?id=791234
2017-12-05 12:33:50 +00:00
Emmanuele Bassi
51db8f8f53
Ensure that the path is always set
...
We are using `path` unconditionally, but it can be conditionally filled.
To avoid inconsistent internal state, and a compiler warning, let's
assert that the variable is always set.
2017-12-05 11:07:46 +00:00
Emmanuele Bassi
66f7f1768f
Fix the build
...
Use the right argument name in the preconditions check.
2017-12-05 11:02:20 +00:00
Matthias Clasen
4a11baa372
gdk: Documentation improvements
2017-12-04 23:52:48 -08:00
Matthias Clasen
4ab15a8292
docs: Drop some no longer existing functions
2017-12-04 23:15:06 -08:00
Matthias Clasen
b5c62cf86f
Revert "clipboard: Add gdk_clipboard_set()"
...
This reverts commit dc50e0637f
.
This broke the build.
2017-12-04 23:09:54 -08:00
Benjamin Otte
dc50e0637f
clipboard: Add gdk_clipboard_set()
...
This API allows specifying a GType and va_args of a value of that type
to set the clipboard contents. This massively simplifies setting weird
object types into the clipboard.
2 example patches included in this patch are the GtkTextBuffer and the
file list in the file chooser.
Using gobject-introspection, this should work without specifying the
type, so that you can literlally say
clipboard.set ("Hello World")
or
clipboard.set (pixbuf)
which is why I've also marked all other setters as (skip). They just
exist in C as wrappers for type safety reasons.
2017-12-05 05:29:03 +01:00
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