Mohammed Sadiq [Sun, 13 May 2018 02:53:53 +0000 (08:23 +0530)]
video: Fix memory leak
Mohammed Sadiq [Sat, 12 May 2018 12:02:16 +0000 (17:32 +0530)]
examples: Remove unused variables
Mohammed Sadiq [Sat, 12 May 2018 04:01:32 +0000 (09:31 +0530)]
snapshot: Fix typo in documentation comment
Mohammed Sadiq [Fri, 11 May 2018 06:28:34 +0000 (11:58 +0530)]
label: Rearrange struct members
Rearranging so can save us 8 bytes per GtkLabel
on 32/64 bit aligned memory.
Not a big count, but we get it for free.
Mohammed Sadiq [Fri, 11 May 2018 04:49:09 +0000 (10:19 +0530)]
textview: Always show select-all button in touch popup
"Select all" action is possible regardless of the text selection state
or if the text is editable or not.
Mohammed Sadiq [Fri, 11 May 2018 04:10:48 +0000 (09:40 +0530)]
textview: Reset bubble source id once run
The bubble_timeout_id was reset only on some special case.
And so warnings were shown when the source is being tried
to be removed with the already removed id.
Fix this by unconditionally resetting the id on start of the function.
Mohammed Sadiq [Fri, 11 May 2018 03:17:56 +0000 (08:47 +0530)]
textview: Simplify creating bubble action buttons
Buttons can be created simply with gtk_button_new_from_icon_name().
Mohammed Sadiq [Fri, 11 May 2018 01:39:45 +0000 (07:09 +0530)]
widget: Avoid an unnecessary check
The preceding loop terminates when either the widget is NULL,
or if their type matches. There is no reason to check that again
Mohammed Sadiq [Wed, 9 May 2018 01:53:05 +0000 (07:23 +0530)]
examples: Use icon-name property to set button icons
Gtk4 added an icon-name property for GtkButton.
Mohammed Sadiq [Tue, 8 May 2018 15:54:29 +0000 (21:24 +0530)]
examples: Simplify counting buffer lines
We do have a gtk_text_buffer_get_line_count() function
to get the line count.
Mohammed Sadiq [Tue, 8 May 2018 14:23:27 +0000 (19:53 +0530)]
examples: Remove explicit gtk_widget_show()
In gtk4, widgets are visible by default.
Robert Ancell [Tue, 8 May 2018 23:28:53 +0000 (11:28 +1200)]
Fix comment typo introduced in
a32725bc9ab
Marek Cernocky [Tue, 8 May 2018 20:55:59 +0000 (22:55 +0200)]
Updated Czech translation
Mohammed Sadiq [Tue, 8 May 2018 12:47:54 +0000 (18:17 +0530)]
examples: Take advantage of user_data passed
The last parameter of the signal callback from .ui
is the template's object from which the class is
derived.
And so, we already have access to the window object.
Let's just use it.
Emmanuele Bassi [Tue, 8 May 2018 08:49:27 +0000 (09:49 +0100)]
ci: Disable tests when building Graphene
Our flatpak-builder manifests include building Graphene from Git; since
we're building the GTK demos, it's pointless to build the Graphene tests
as well. Disabling tests and benchmarks avoids pointless installations
inside the Flatpak build repo that will just be removed by the time we
bundle the demo.
Emmanuele Bassi [Tue, 8 May 2018 13:18:50 +0000 (14:18 +0100)]
docs: List private headers for gtk-doc to ignore
We have a lot of private headers that should not be used by gtk-doc when
scanning for symbols.
Emmanuele Bassi [Thu, 3 May 2018 11:58:33 +0000 (12:58 +0100)]
Avoid absolute paths when building the API reference
We should always use relative paths, or include_directories objects, to
allow using GTK as a subproject.
Daniel Mustieles [Tue, 8 May 2018 13:12:45 +0000 (15:12 +0200)]
Updated Spanish translation
Daniel Mustieles [Tue, 8 May 2018 13:06:32 +0000 (15:06 +0200)]
Updated Spanish translation
Mohammed Sadiq [Tue, 8 May 2018 09:04:03 +0000 (14:34 +0530)]
examples: Don't use private members for final classes
Only derivable classes are required to have private members
so that derived classes can't override them.
Mohammed Sadiq [Mon, 7 May 2018 18:43:18 +0000 (00:13 +0530)]
reference: Replace reference to gtk3 with gtk4
Mohammed Sadiq [Mon, 7 May 2018 18:22:18 +0000 (23:52 +0530)]
reference: Use gtk+-4 for compilation in examples
Mohammed Sadiq [Mon, 7 May 2018 16:42:09 +0000 (22:12 +0530)]
examples: Simplify .ui files
Run gtk4-builder-tool recursively
Mohammed Sadiq [Mon, 7 May 2018 16:32:10 +0000 (22:02 +0530)]
examples: Fix Makefiles to use gtk4 for build
Benjamin Otte [Mon, 7 May 2018 15:31:26 +0000 (17:31 +0200)]
dnd: Make "formats" a construct-only property
... and hide the member variable inside the DragContextPrivate.
Benjamin Otte [Mon, 7 May 2018 15:16:29 +0000 (17:16 +0200)]
wayland: Remove stray if
Leftover from
d056be4ea238e6f4371230b1a892ed0100770848.
I need more sleep when I need to fixup the fixups of my fixups now.
Benjamin Otte [Mon, 7 May 2018 15:14:52 +0000 (17:14 +0200)]
win32: Remove unused file
Benjamin Otte [Mon, 7 May 2018 15:54:26 +0000 (15:54 +0000)]
Merge branch 'wip/sadiq/fixes' into 'master'
icon-browser: Fix typo in description
See merge request GNOME/gtk!138
Mohammed Sadiq [Mon, 7 May 2018 15:19:12 +0000 (20:49 +0530)]
icon-browser: Fix typo in description
This is shown as tooltip-text
Benjamin Otte [Mon, 7 May 2018 14:45:32 +0000 (16:45 +0200)]
gsk: Improve GSK_RENDERER behavior
1. Include the broadway renderer (so we can test it properly fails on
Wayland or X11)
2. List all potential renderers, print useful information when Vulkan
is not compiled in instea dof omitting it
3. Improve docs
Benjamin Otte [Sun, 6 May 2018 15:06:57 +0000 (17:06 +0200)]
wayland: Fix memleak
7f8a8f221d60bc5da23602e5e024eb91f8b0f758 forgot to free the data offer
passed to it.
Matthias Clasen [Mon, 7 May 2018 02:45:36 +0000 (22:45 -0400)]
Update docs for debug environment variables
Just the usual pre-release doc fixups.
Matthias Clasen [Mon, 7 May 2018 02:06:35 +0000 (22:06 -0400)]
Document the GSK_RENDERER environment variable
Just the usual pre-release doc fixups.
Matthias Clasen [Mon, 7 May 2018 01:58:53 +0000 (21:58 -0400)]
Update build docs
Just the usual pre-release doc fixups.
Matthias Clasen [Mon, 7 May 2018 01:21:43 +0000 (21:21 -0400)]
Miscellaneous docs improvements
Just the usual pre-release doc fixups.
Matthias Clasen [Mon, 7 May 2018 00:42:12 +0000 (20:42 -0400)]
Add GtkWidgetPaintable to the docs
Just the usual pre-release doc fixups.
Matthias Clasen [Mon, 7 May 2018 00:34:31 +0000 (20:34 -0400)]
Add GdkPaintable to the docs
Just the usual pre-release doc fixups.
Daniel Boles [Sun, 6 May 2018 20:41:57 +0000 (21:41 +0100)]
MediaStream: Fix capitalisation of two new %TRUEs
Matthias Clasen [Sun, 6 May 2018 19:37:13 +0000 (15:37 -0400)]
Add more media docs
Benjamin Otte [Sun, 6 May 2018 00:06:53 +0000 (02:06 +0200)]
wayland: Redo DND offer handling
Instead of tracking offers in GdkWaylandSelection objects, track the
pending offer in the GdkWaylandSeat and pass it to the GdkDragContext
once we get an enter event.
Benjamin Otte [Sat, 5 May 2018 18:36:12 +0000 (20:36 +0200)]
gdk: Remove unnecessary assignments
The variable is never read again.
Matthias Clasen [Sat, 5 May 2018 22:28:19 +0000 (18:28 -0400)]
Add media support to docs
Matthias Clasen [Sat, 5 May 2018 22:03:31 +0000 (18:03 -0400)]
Fixes to the gtk docs
Matthias Clasen [Sat, 5 May 2018 01:09:57 +0000 (21:09 -0400)]
Add some more content to the migration guide
Matthias Clasen [Fri, 4 May 2018 20:17:01 +0000 (16:17 -0400)]
More NEWS
Daniel Boles [Sat, 5 May 2018 09:51:24 +0000 (10:51 +0100)]
GesturePan: Remove widget parameter from docs, too
https://gitlab.gnome.org/GNOME/gtk/commit/
71991270b047c66e7c14a65aaa70703527c978cf#note_112519
Timm Bäder [Sat, 5 May 2018 07:06:22 +0000 (09:06 +0200)]
inspector: Don't add controllers to non-window toplevels
That doesn't make sense in this context and breaks grabs.
Timm Bäder [Sat, 5 May 2018 07:02:14 +0000 (09:02 +0200)]
inspector: Use unique names for g_object_set_data calls
Otherwise the calls of the different inspector pages might end up
clashing.
Timm Bäder [Sat, 5 May 2018 05:38:56 +0000 (07:38 +0200)]
widget: Clarify add_tick_callback docs
You don't pass the callback to remove_tick_callback, but the id returned
from add_tick_callback.
Timm Bäder [Fri, 4 May 2018 18:20:09 +0000 (20:20 +0200)]
stylecontext: Draw arrow-less insertion cursors as color nodes
This lets us avoid an often used cairo node.
Timm Bäder [Fri, 4 May 2018 17:58:15 +0000 (19:58 +0200)]
stylecontext: Remove outdated comment
gtktextview:invalidate_cursor_windwo is no more.
Timm Bäder [Wed, 2 May 2018 17:57:36 +0000 (19:57 +0200)]
widget: Directly access priv pointer in even controller API
Spares us a few lines.
Christian Hergert [Sat, 5 May 2018 00:46:08 +0000 (17:46 -0700)]
build: fix meson.build when quartz is used
We need access to the variable earlier in the file when the quartz
backend is being setup.
Piotr Drąg [Fri, 4 May 2018 19:48:33 +0000 (21:48 +0200)]
Update Polish translation
Matthias Clasen [Fri, 4 May 2018 19:37:48 +0000 (15:37 -0400)]
Update NEWS
Matthias Clasen [Fri, 4 May 2018 02:04:28 +0000 (22:04 -0400)]
Document gdk_drop_read_async
Matthias Clasen [Fri, 4 May 2018 00:45:36 +0000 (20:45 -0400)]
The legacy event controller is still private
Matthias Clasen [Fri, 4 May 2018 00:43:01 +0000 (00:43 +0000)]
Merge branch 'wip/xdg-shell' into 'master'
xdg shell (stable)
See merge request GNOME/gtk!35
Matthias Clasen [Fri, 4 May 2018 00:39:39 +0000 (00:39 +0000)]
Merge branch 'altBackspaceEmacs' into 'master'
Add binding for <alt>BackSpace to emacs keys
See merge request GNOME/gtk!96
Matthias Clasen [Fri, 4 May 2018 00:18:48 +0000 (20:18 -0400)]
emoji chooser: Match search terms better
Use g_str_match_string for better results.
Emin Tufan Çetin [Thu, 3 May 2018 07:04:43 +0000 (07:04 +0000)]
Update Turkish translation
Benjamin Otte [Wed, 2 May 2018 23:56:44 +0000 (01:56 +0200)]
win32: Fix build
Benjamin Otte [Mon, 30 Apr 2018 11:14:29 +0000 (13:14 +0200)]
dnd: Add a private struct
And put member veriables into it.
Also fix backends to use accessors instead of direct access.
Benjamin Otte [Wed, 2 May 2018 00:56:14 +0000 (02:56 +0200)]
dnd: Remove gdk_drop_reply()
It was only necessary for Motif DND, and we don't support that anymore.
Benjamin Otte [Tue, 1 May 2018 22:39:41 +0000 (00:39 +0200)]
gdk: Remove gdk_drag_grop_succeeded()
It's unused and most backends don't implement it.
Timm Bäder [Tue, 1 May 2018 19:18:51 +0000 (21:18 +0200)]
snapshot: merge container nodes
A container node inside another container node doesn't make a lot of
sense, we can instead just use the parent container node and add the
child container node's children to it directly.
Timm Bäder [Tue, 1 May 2018 19:17:26 +0000 (21:17 +0200)]
recorder: Fix cairo node display
We can only upload image surfaces as a texture but cairo nodes use
recording surfaces now.
Timm Bäder [Tue, 1 May 2018 17:16:59 +0000 (19:16 +0200)]
gl renderer: Remove ops debug message
Without a node name, this doesn't make much sense anymore.
Matthias Clasen [Wed, 2 May 2018 10:55:38 +0000 (10:55 +0000)]
Merge branch 'wip/lantw/gtk4-use-dev-evdev-input-h-on-freebsd' into 'master'
wayland: Use dev/evdev/input.h on FreeBSD (GTK4)
See merge request GNOME/gtk!133
Matthias Clasen [Wed, 2 May 2018 03:26:28 +0000 (23:26 -0400)]
Add missing types to gtk docs
Matthias Clasen [Wed, 2 May 2018 03:22:13 +0000 (23:22 -0400)]
Add missing types to gdk docs
Ting-Wei Lan [Tue, 1 May 2018 14:28:57 +0000 (22:28 +0800)]
wayland: Use dev/evdev/input.h on FreeBSD
The header linux/input.h used by GDK is specific to Linux. It is
possible to get a few Linux headers on FreeBSD by installing v4l_compat,
but it is usually better to use the one shipped with FreeBSD.
We prefer dev/evdev/input.h to linux/input.h here, so it will always use
dev/evdev/input.h on FreeBSD regardless of v4l_compat.
https://svnweb.freebsd.org/changeset/ports/465644
Timm Bäder [Tue, 1 May 2018 10:51:04 +0000 (12:51 +0200)]
gl renderer: Ignore nodes outside of the clip
Pretty sure this will bite me later but for now we avoid rendering nodes
that we are not going to see anyway.
Timm Bäder [Tue, 1 May 2018 06:19:48 +0000 (08:19 +0200)]
gl renderer: Use simple offset for selected offset node children
Timm Bäder [Sat, 21 Apr 2018 18:14:05 +0000 (20:14 +0200)]
widget: add shortcut to gtk_widget_set_child_visible
So we don't do unnecessary work when just setting priv->child_visible to
the same value again.
Timm Bäder [Sat, 21 Apr 2018 17:44:45 +0000 (19:44 +0200)]
widget: Don't mention gtk_widget_snapshot() in the docs
It's not public so people can't know about it.
Matthias Clasen [Tue, 1 May 2018 12:35:53 +0000 (12:35 +0000)]
Merge branch 'wip/carlosg/controller' into 'master'
carlosg/controller
See merge request GNOME/gtk!131
Jonas Ådahl [Mon, 18 Dec 2017 12:10:47 +0000 (20:10 +0800)]
wayland: Various whitespace cleanups
Broke up a long line, added an empty one, indented another one, and re-aligned
a large amount of function parameter names that got misaligned in some past
refactoring.
https://bugzilla.gnome.org/show_bug.cgi?id=791939
Jonas Ådahl [Mon, 18 Dec 2017 12:00:36 +0000 (20:00 +0800)]
wayland: Add support for xdg-shell stable
This commit adds support the stable version of the xdg-shell protocol.
Support for the last version of the unstable series is left intact, but
will not receive new features.
The stable version is prioritized above the older version.
https://bugzilla.gnome.org/show_bug.cgi?id=791939
Rico Tzschichholz [Tue, 1 May 2018 10:35:32 +0000 (12:35 +0200)]
Fix some g-i annotation warnings
Matthias Clasen [Tue, 1 May 2018 00:09:57 +0000 (20:09 -0400)]
Fix the modelbutton demo _again_
It lost the action-target properties again.
Emmanuele Bassi [Mon, 30 Apr 2018 16:21:21 +0000 (16:21 +0000)]
Merge branch 'docs' into 'master'
gitlabci: Add gtk-doc to the container image.
See merge request GNOME/gtk!130
Jordan Petridis [Mon, 30 Apr 2018 15:39:05 +0000 (18:39 +0300)]
gitlabci: Add gtk-doc to the container image.
Benjamin Otte [Mon, 30 Apr 2018 12:25:43 +0000 (12:25 +0000)]
Merge branch 'lrn/meson-intl' into 'master'
Link libgtk to libintl
See merge request GNOME/gtk!113
Benjamin Otte [Mon, 30 Apr 2018 11:56:36 +0000 (11:56 +0000)]
Merge branch '169-gtktextview-accesses-already-disposed-object' into 'master'
Resolve "GtkTextView accesses already disposed object"
Closes #169
See merge request GNOME/gtk!109
Mario Blättermann [Mon, 30 Apr 2018 10:42:41 +0000 (10:42 +0000)]
Update German translation
Benjamin Otte [Mon, 30 Apr 2018 09:48:25 +0000 (09:48 +0000)]
Merge branch 'window-activate-grab-4-2.4' into 'master'
gdk: do not deactivate surface on keyboard grab
Closes #85
See merge request GNOME/gtk!120
Samuel Thibault [Thu, 19 Apr 2018 12:10:23 +0000 (14:10 +0200)]
gdk: do not deactivate surface on keyboard grabs
When pressing e.g. a window manager shortcut, which acquires keyboard grab,
Xorg would send FocusOut NotifyGrab then FocusIn NotifyUngrab. Currently
gdk would then deactivate the current surface, which makes accessibility
screen readers think that we have switched to a non-accessible application
and came back again, and thus reannounce the application frame etc. which we
don't want when e.g. just raising volume.
And actually, receiving FocusOut NotifyGrab does not mean losing the
X focus, it only means an application aqcuired a grab, i.e. it is
temporarily stealing keyboard events. On Wayland, this isn't even
notified actually.
This commit makes gdk only deactivate surfaces when there was an actual
focus switch to another window, as determined by has_focus_window (instead
of just has_focus), which happens either normally through FocusOut with
NotifyNormal, or during grabs through FocusOut with NotifyWhileGrabbed.
Fixes #85
Matthias Clasen [Sat, 28 Apr 2018 20:23:32 +0000 (16:23 -0400)]
Misc documentation fixes
Close some gaps in gdk docs.
Matthias Clasen [Sat, 28 Apr 2018 20:20:19 +0000 (16:20 -0400)]
Document GdkMemoryTexture
Matthias Clasen [Sat, 28 Apr 2018 20:02:34 +0000 (16:02 -0400)]
More doc build fixes
If only the errors would make it back to stderr.
Matthias Clasen [Sat, 28 Apr 2018 18:13:34 +0000 (14:13 -0400)]
More doc build fixes
Matthias Clasen [Sat, 28 Apr 2018 14:04:23 +0000 (10:04 -0400)]
Add offset nodes to the docs
Matthias Clasen [Sat, 28 Apr 2018 00:14:03 +0000 (20:14 -0400)]
Fix the gdk doc build
GdkDrawingContext no longer exists.
Fabio Tomat [Sat, 28 Apr 2018 09:19:30 +0000 (09:19 +0000)]
Update Friulian translation
Benjamin Otte [Fri, 27 Apr 2018 10:32:17 +0000 (12:32 +0200)]
dnd: Make GdkDragContext::device a (construct-only) property
Also remove gdk_drag_context_set_device() and insist on backends using
the property.
Benjamin Otte [Fri, 27 Apr 2018 10:25:59 +0000 (12:25 +0200)]
wayland: Create drop contexts on demand
Instead of creating and reusing the same one from start to finish.
Benjamin Otte [Fri, 27 Apr 2018 01:31:39 +0000 (03:31 +0200)]
dragsource: Use capture phase for gesture
Otherwise buttons don't work as drag sources, and we like to do that.
Benjamin Otte [Wed, 25 Apr 2018 22:17:23 +0000 (00:17 +0200)]
gtk-demo: Always have at least 1 icon in the fishbowl
When changing the widget type, don't start out with 0 icons.
Kristjan SCHMIDT [Thu, 26 Apr 2018 23:24:32 +0000 (23:24 +0000)]
Update Esperanto translation