gtk4.git
7 years agodocs: Update getting started docs
Mohammed Sadiq [Thu, 14 Jun 2018 00:00:21 +0000 (05:30 +0530)]
docs: Update getting started docs

We have removed references to private members in our examples.
Let the docs be updated to reflect that.

7 years agodocs: Use gtk_widget_show() to show window
Mohammed Sadiq [Wed, 13 Jun 2018 14:45:20 +0000 (20:15 +0530)]
docs: Use gtk_widget_show() to show window

gtk_window_show_all() is no longer available (and no longer needed)

7 years agosnapshot: Trivial typo fix in comment
Mohammed Sadiq [Wed, 13 Jun 2018 14:28:01 +0000 (19:58 +0530)]
snapshot: Trivial typo fix in comment

7 years agopicture: Fix g-i annotation warning
Rico Tzschichholz [Wed, 13 Jun 2018 11:08:28 +0000 (13:08 +0200)]
picture: Fix g-i annotation warning

7 years agobuild: Fix compiler warnings
Mohammed Sadiq [Mon, 11 Jun 2018 15:14:23 +0000 (20:44 +0530)]
build: Fix compiler warnings

7 years agooverlay: Use the right property variable name
Mohammed Sadiq [Mon, 11 Jun 2018 12:10:05 +0000 (17:40 +0530)]
overlay: Use the right property variable name

7 years agoMerge branch 'wip/sadiq/fixes' into 'master'
Benjamin Otte [Mon, 11 Jun 2018 11:55:09 +0000 (11:55 +0000)]
Merge branch 'wip/sadiq/fixes' into 'master'

overlay: Add support for clipping overlay widgets

See merge request GNOME/gtk!189

7 years agooverlay: Add support for clipping overlay widgets
Mohammed Sadiq [Mon, 11 Jun 2018 10:36:22 +0000 (16:06 +0530)]
overlay: Add support for clipping overlay widgets

Sometimes users may want to restrict the growth of child
widgets in a GtkOverlay to grow atmost the size of the overlay.

Let's add a support for that.

7 years agoMerge branch 'lrn/gtk4warnings' into 'master'
Matthias Clasen [Sun, 10 Jun 2018 23:14:42 +0000 (23:14 +0000)]
Merge branch 'lrn/gtk4warnings' into 'master'

Fix a lot of warnings in GTK4

See merge request GNOME/gtk!188

7 years agoMerge branch 'master' into 'master'
Matthias Clasen [Sun, 10 Jun 2018 23:05:50 +0000 (23:05 +0000)]
Merge branch 'master' into 'master'

gtk: Add gtk_is_initialized() and gtk_get_main_thread()

See merge request GNOME/gtk!186

7 years agoMerge branch 'lrn/aligned-alloc' into 'master'
Matthias Clasen [Sun, 10 Jun 2018 22:05:12 +0000 (22:05 +0000)]
Merge branch 'lrn/aligned-alloc' into 'master'

Aligned allocators for GTK4

Closes #856

See merge request GNOME/gtk!187

7 years agoUse correct stat struct for ftw()
Руслан Ижбулатов [Sun, 10 Jun 2018 21:05:30 +0000 (21:05 +0000)]
Use correct stat struct for ftw()

check_dir_mtime() is called by ftw() and is given
the real stat struct, not its glib version (which may
or may not be the same as "struct stat").

This is irrelevant for MSVC (it has no ftw()) and
works correctly for MinGW-w64 (which declares stat
structures correctly). If mingw.org complains, add
a special ifdef for it later.

7 years agoSee if _MSC_VER is defined before checking its value
Руслан Ижбулатов [Sun, 10 Jun 2018 21:04:50 +0000 (21:04 +0000)]
See if _MSC_VER is defined before checking its value

7 years agoFix missing default switch case in DllMain
Руслан Ижбулатов [Sun, 10 Jun 2018 21:04:27 +0000 (21:04 +0000)]
Fix missing default switch case in DllMain

7 years agoFix missing default switch cases in gtkimcontextsimple
Руслан Ижбулатов [Sun, 10 Jun 2018 21:04:03 +0000 (21:04 +0000)]
Fix missing default switch cases in gtkimcontextsimple

7 years agoFix some warnings in W32 part of gtkmain
Руслан Ижбулатов [Sun, 10 Jun 2018 21:02:56 +0000 (21:02 +0000)]
Fix some warnings in W32 part of gtkmain

* Add missing default cases
* Cast string literals as non-const

7 years agoFix a typo in W32 event-handling code
Руслан Ижбулатов [Sun, 10 Jun 2018 21:01:49 +0000 (21:01 +0000)]
Fix a typo in W32 event-handling code

It's quite old, but mostly harmless (both "message == WM_KEYUP"
and "message = WM_KEYUP" evaluate to not-FALSE, and message
value is not used after that line).

7 years agoFix a warning about uninitialized variable
Руслан Ижбулатов [Sun, 10 Jun 2018 21:00:31 +0000 (21:00 +0000)]
Fix a warning about uninitialized variable

7 years agoRemove unused code in gdksurface-win32.c
Руслан Ижбулатов [Sun, 10 Jun 2018 21:00:05 +0000 (21:00 +0000)]
Remove unused code in gdksurface-win32.c

7 years agoFix more signedness issues in W32 backend
Руслан Ижбулатов [Sun, 10 Jun 2018 20:59:30 +0000 (20:59 +0000)]
Fix more signedness issues in W32 backend

7 years agoA quick and dirty fix for a circular allocation issue
Руслан Ижбулатов [Sun, 10 Jun 2018 20:58:19 +0000 (20:58 +0000)]
A quick and dirty fix for a circular allocation issue

query_targets() tried to write to struct that
wasn't yet allocated.
This code is going to change soon, so this is a temporary
fix until then.

7 years agoFix a missing default case warning
Руслан Ижбулатов [Sun, 10 Jun 2018 20:57:18 +0000 (20:57 +0000)]
Fix a missing default case warning

It shouldn't be possible to get DPI_STATUS_PENDING here.
If it does happen, that would be a bug that should be fixed.

7 years agoRemove unused functions in W32 backend
Руслан Ижбулатов [Sun, 10 Jun 2018 20:56:49 +0000 (20:56 +0000)]
Remove unused functions in W32 backend

7 years agoFix signedness issues, remove unused code
Руслан Ижбулатов [Sun, 10 Jun 2018 20:56:10 +0000 (20:56 +0000)]
Fix signedness issues, remove unused code

7 years agoRemove some more unused variables
Руслан Ижбулатов [Sun, 10 Jun 2018 20:55:46 +0000 (20:55 +0000)]
Remove some more unused variables

7 years agoFix various type mismatch warnings
Руслан Ижбулатов [Sun, 10 Jun 2018 20:53:46 +0000 (20:53 +0000)]
Fix various type mismatch warnings

7 years agoFix gdk_win32_cairo_context_end_frame prototype
Руслан Ижбулатов [Sun, 10 Jun 2018 20:53:25 +0000 (20:53 +0000)]
Fix gdk_win32_cairo_context_end_frame prototype

7 years agoRemove unused variables (mostly in W32 code)
Руслан Ижбулатов [Sun, 10 Jun 2018 20:51:05 +0000 (20:51 +0000)]
Remove unused variables (mostly in W32 code)

7 years agoFix wrong format strings in various places
Руслан Ижбулатов [Sun, 10 Jun 2018 20:49:47 +0000 (20:49 +0000)]
Fix wrong format strings in various places

7 years agoUse aligned allocators for GtkSnapshot
Руслан Ижбулатов [Sat, 9 Jun 2018 14:06:55 +0000 (14:06 +0000)]
Use aligned allocators for GtkSnapshot

Any data that is later fed to graphene must be
allocated with proper alignment, if graphene
uses SSE2 or GCC vector instructions.

This adds custom array code (a streamlined copy
of GArray with all unnecessary bells and whistles removed),
which is then used for the state_stack instead of GArray.

There's also a runtime check for the size of GtkSnapshotState
itself being a multiple of 16. If that is not so, any array
elements past the 0th element will lose alignment.
There are probably struct attributes that can
make GtkSnapshotState always have size that is a multiple
of 16, but we'll burn that bridge if we cross it.

7 years agoUpdate Polish translation
Piotr Drąg [Sun, 10 Jun 2018 13:35:50 +0000 (15:35 +0200)]
Update Polish translation

7 years agoUpdate POTFILES.in
Piotr Drąg [Sun, 10 Jun 2018 13:19:06 +0000 (15:19 +0200)]
Update POTFILES.in

7 years agopicture: Don't use g_str_equal() with potential NULLs
Benjamin Otte [Sun, 10 Jun 2018 00:56:18 +0000 (02:56 +0200)]
picture: Don't use g_str_equal() with potential NULLs

7 years agodocs: Add GtkEventControllerKey to index
Benjamin Otte [Thu, 7 Jun 2018 11:17:20 +0000 (13:17 +0200)]
docs: Add GtkEventControllerKey to index

7 years agodnd: Ref the GdkDrop during the DND operation
Benjamin Otte [Thu, 31 May 2018 19:44:38 +0000 (21:44 +0200)]
dnd: Ref the GdkDrop during the DND operation

It might go away if the DND takes too long otherwise...

7 years agoquartz: Remove gtkdnd-quartz.c
Benjamin Otte [Thu, 7 Jun 2018 03:22:18 +0000 (05:22 +0200)]
quartz: Remove gtkdnd-quartz.c

It shows up in my git diff calls and is completely broken.

7 years agox11: Remove useless check
Benjamin Otte [Wed, 6 Jun 2018 03:33:30 +0000 (05:33 +0200)]
x11: Remove useless check

The check survived from GTK2 when that function could still return
GdkPixmap and GdkFont objects and was accompanied by this comment:

  /* We may receive events such as NoExpose/GraphicsExpose
   * and ShmCompletion for pixmaps
   */

7 years agoclipboard: Remove return statements from void function
Benjamin Otte [Thu, 31 May 2018 19:29:02 +0000 (21:29 +0200)]
clipboard: Remove return statements from void function

7 years agogtk-demo: Use GtkImages to select the puzzle
Benjamin Otte [Sat, 9 Jun 2018 23:28:08 +0000 (01:28 +0200)]
gtk-demo: Use GtkImages to select the puzzle

7 years agoiconhelper: Always size contents to icon size
Benjamin Otte [Sat, 9 Jun 2018 22:38:06 +0000 (00:38 +0200)]
iconhelper: Always size contents to icon size

No more special casing for paintables. If you want the special case for
paintables, you should use GtkPicture.

7 years agoimage: Remove gtk_image_set_keep_aspect_ratio()
Benjamin Otte [Sat, 9 Jun 2018 21:36:56 +0000 (23:36 +0200)]
image: Remove gtk_image_set_keep_aspect_ratio()

and gtk_image_set_can_shrink().

Images are meant to always be icon-sized, they can never shrink below
that.

And images are icons, so they are meant to be square. If they are
not, we pretned that's by accident and keep aspect ratio.

7 years agogtk-demo: Make sliding puzzle demo use GtkPicture
Benjamin Otte [Sat, 9 Jun 2018 21:30:11 +0000 (23:30 +0200)]
gtk-demo: Make sliding puzzle demo use GtkPicture

7 years agogtk-demo: Port images demo to use a GtkPicture in places
Benjamin Otte [Sat, 9 Jun 2018 21:12:00 +0000 (23:12 +0200)]
gtk-demo: Port images demo to use a GtkPicture in places

7 years agovideo: Use a Picture instead of an Image
Benjamin Otte [Sat, 9 Jun 2018 20:54:04 +0000 (22:54 +0200)]
video: Use a Picture instead of an Image

7 years agopicture: Introduce
Benjamin Otte [Sat, 9 Jun 2018 20:48:06 +0000 (22:48 +0200)]
picture: Introduce

This commit introduces GtkPicture, which is supposed to complement
GtkImage.

GtkImage will be adapted to always display an icon, while
GtkPicture displays regular imagery.

7 years agopuzzle: fix some compiler warnings
Matthias Clasen [Sat, 9 Jun 2018 23:14:08 +0000 (19:14 -0400)]
puzzle: fix some compiler warnings

These slipped under the radar, sorry.

7 years agowidget: Use priv pointer less
Timm Bäder [Sat, 9 Jun 2018 18:03:44 +0000 (20:03 +0200)]
widget: Use priv pointer less

Instead declare a priv local. We should do this even if we don't remove
the priv pointer from GtkWidget entirely, just to stay consistent with
new code we introduce.

7 years agoUse aligned allocators for GskRenderNode
Руслан Ижбулатов [Sat, 9 Jun 2018 14:05:49 +0000 (14:05 +0000)]
Use aligned allocators for GskRenderNode

Any data that is later fed to graphene must be
allocated with proper alignment, if graphene
uses SSE2 or GCC vector instructions.

7 years agoAdd aligned allocator functions to GSK
Руслан Ижбулатов [Sat, 9 Jun 2018 14:01:03 +0000 (14:01 +0000)]
Add aligned allocator functions to GSK

The code is mostly stolen from graphene.
Allocators support any alignment, but their implementation
only calls system aligned allocator functions if malloc()
is not aligned to 16-byte boundaries. If it is aligned,
the implementation just calls malloc() regardless of which
alignment is requested by the caller.

This can be fixed by saving the result of meson malloc()
alignment check and adding a few conditions to the implementation,
but right now GSK and GTK only need 16-byte alignment either way.

7 years agoAdd aligned allocator support to meson
Руслан Ижбулатов [Sat, 9 Jun 2018 13:52:42 +0000 (13:52 +0000)]
Add aligned allocator support to meson

* A bunch of new variables for config.h.meson
* A check for aligned allocation being necessary at all
  (graphene must use GCC vector instructions or SSE2)
* A check for C malloc() being aligned at 16-byte boundaries
* A check for a few special aligned allocator functions being
  present and not being built-ins (posix_memalign is a builtin
  in GCC, even on platforms where there is no posix_memalign
  system function)
* Added -mstackrealign flag on Windows, since otherwise
  stack variables may become unaligned when the stack briefly
  passes through OS code (such as in various callbacks and
  handlers)

7 years agogtkmain: Add gtk_get_main_thread()
Philippe Normand [Fri, 8 Jun 2018 17:10:59 +0000 (18:10 +0100)]
gtkmain: Add gtk_get_main_thread()

This utility function can be useful to know which thread was initialized for
GTK+.

7 years agogtkmain: Add gtk_is_initialized()
Philippe Normand [Fri, 8 Jun 2018 17:03:22 +0000 (18:03 +0100)]
gtkmain: Add gtk_is_initialized()

This utility function can be useful to check whether GTK+ was already
initialized or not.

7 years agoUpdate Galician translation
Fran Dieguez [Fri, 8 Jun 2018 08:09:57 +0000 (08:09 +0000)]
Update Galician translation

7 years agopuzzle: Add mouse support
Matthias Clasen [Thu, 7 Jun 2018 21:38:24 +0000 (17:38 -0400)]
puzzle: Add mouse support

Make it so that clicking on a puzzle piece moves enough
pieces to move the empty space there, if it is possible.

7 years agopuzzle: Use plain labels
Matthias Clasen [Thu, 7 Jun 2018 17:06:07 +0000 (13:06 -0400)]
puzzle: Use plain labels

The previous code looked cool in the UI, but was too much
of a hack in the code.

7 years agoAdd tweaks
Matthias Clasen [Wed, 6 Jun 2018 01:02:57 +0000 (21:02 -0400)]
Add tweaks

Allow setting the puzzle size, and allow chosing between
the rose and the radioactive animation. Change the default
size to 3. 6 is just too hard.

7 years agopuzzle: Add a reshuffle button
Matthias Clasen [Tue, 5 Jun 2018 23:30:08 +0000 (19:30 -0400)]
puzzle: Add a reshuffle button

7 years agoKeep aspect ratio of the image
Matthias Clasen [Tue, 5 Jun 2018 18:04:30 +0000 (14:04 -0400)]
Keep aspect ratio of the image

Since we don't have a good way to control the window size tightly,
make the content keep aspect ratio.

7 years agodemo: Add the sliding puzzle demo
Benjamin Otte [Mon, 4 Jun 2018 03:41:44 +0000 (05:41 +0200)]
demo: Add the sliding puzzle demo

7 years agoMerge branch 'master' into 'master'
Matthias Clasen [Thu, 7 Jun 2018 18:27:25 +0000 (18:27 +0000)]
Merge branch 'master' into 'master'

Fix reference to user styles in gtkstyleprovider.h

See merge request GNOME/gtk!184

7 years agofont-button: Suggest non deprecated function in docs
Mohammed Sadiq [Thu, 7 Jun 2018 10:14:14 +0000 (15:44 +0530)]
font-button: Suggest non deprecated function in docs

gtk_font_button_get_font_name() has been deprecated in 3.22 and
its public API is removed from GTK4.

7 years agoFix reference to user styles in gtkstyleprovider.h
Matijs van Zuijlen [Thu, 7 Jun 2018 08:54:23 +0000 (08:54 +0000)]
Fix reference to user styles in gtkstyleprovider.h

7 years agoMerge branch 'wip/move-to-rect-public' into 'master'
Matthias Clasen [Tue, 5 Jun 2018 21:02:51 +0000 (21:02 +0000)]
Merge branch 'wip/move-to-rect-public' into 'master'

gdk: Make gdk_surface_move_to_rect public

See merge request GNOME/gtk!179

7 years agoSizeRequest: Round px values up for min CSS sizes
Daniel Boles [Mon, 21 May 2018 20:45:27 +0000 (21:45 +0100)]
SizeRequest: Round px values up for min CSS sizes

Otherwise, requesting a min size in em where the equivalent in px had a
fractional part would lead to the widget getting allocated 1 too few px.
You could see this in the CSS property vs. allocation in the Inspector.

Note that margin/border/padding are left alone: the rationale is that we
do as browsers do, and Benjamin said we already do that for those,
whereas his tests on min-(width|height) showed otherwise. My subsequent
analysis indicated it to be far less clear-cut than that, but he remains
unconvinced that we should ceil() all the things! So just do these ones.

https://gitlab.gnome.org/GNOME/gtk/issues/1088

7 years agogdk: Make gdk_surface_move_to_rect public
Jonas Ådahl [Tue, 5 Jun 2018 15:46:34 +0000 (17:46 +0200)]
gdk: Make gdk_surface_move_to_rect public

This is the API used by GtkMenu to properly position menus on the screen
without requiring GTK to query the menu window's position or the work
area of where the window is positioned. It makes it possible to position
popup windows properly when using Wayland.

Make this API available to external users so custom popup windows can be
positioned properly as well.

Related: https://gitlab.gnome.org/GNOME/gtk/issues/997

7 years agopopover: Add missing close paren in docs
Timm Bäder [Mon, 4 Jun 2018 19:57:18 +0000 (21:57 +0200)]
popover: Add missing close paren in docs

7 years agocolorbutton: Remove priv pointer
Timm Bäder [Mon, 4 Jun 2018 19:54:35 +0000 (21:54 +0200)]
colorbutton: Remove priv pointer

7 years agoaspectframe: Remove unused member
Timm Bäder [Mon, 4 Jun 2018 19:42:12 +0000 (21:42 +0200)]
aspectframe: Remove unused member

7 years agobin: Remove public GtkBinPrivate typedef
Timm Bäder [Mon, 4 Jun 2018 17:43:17 +0000 (19:43 +0200)]
bin: Remove public GtkBinPrivate typedef

7 years agostatusbar: Remove garbage from header file
Timm Bäder [Mon, 4 Jun 2018 17:13:12 +0000 (19:13 +0200)]
statusbar: Remove garbage from header file

Nobody will ever read those comments; documentation belongs into the
soruce file so gtk-doc actually picks it up.

7 years agostatusbar: Remove priv pointer
Timm Bäder [Mon, 4 Jun 2018 17:12:55 +0000 (19:12 +0200)]
statusbar: Remove priv pointer

7 years agowidget: Add docs for {get,set}_focus_child
Timm Bäder [Sun, 3 Jun 2018 09:32:09 +0000 (11:32 +0200)]
widget: Add docs for {get,set}_focus_child

With get_ being still private.

7 years agogl renderer: use w axis vector from graphene
Timm Bäder [Sun, 27 May 2018 16:05:00 +0000 (18:05 +0200)]
gl renderer: use w axis vector from graphene

Instead of initializing our own one every time.

7 years agoMerge branch 'patch-1' into 'master'
Matthias Clasen [Sun, 3 Jun 2018 18:10:03 +0000 (18:10 +0000)]
Merge branch 'patch-1' into 'master'

GtkWindow: Handle non-square icons with height > width correctly

Closes #657

See merge request GNOME/gtk!170

7 years agoGtkWindow: Handle non-square icons with height > width correctly
Christian Stadelmann [Tue, 29 May 2018 17:40:06 +0000 (17:40 +0000)]
GtkWindow: Handle non-square icons with height > width correctly

7 years agowidget: Fix example code in doc
Mohammed Sadiq [Thu, 31 May 2018 10:54:00 +0000 (16:24 +0530)]
widget: Fix example code in doc

7 years agoMerge branch 'gesture-docs' into 'master'
Matthias Clasen [Wed, 30 May 2018 02:13:04 +0000 (02:13 +0000)]
Merge branch 'gesture-docs' into 'master'

Gesture stuff

See merge request GNOME/gtk!169

7 years agox11: Don't set NET_WM_PID when sandboxed
Matthias Clasen [Mon, 28 May 2018 16:09:47 +0000 (12:09 -0400)]
x11: Don't set NET_WM_PID when sandboxed

It is not useful, and some window managers misinterpret it and
add some "runs as root" indication to the window decoration.

See https://github.com/mate-desktop/marco/issues/301

7 years agogdk: Add a private api to find sandboxes
Matthias Clasen [Mon, 28 May 2018 16:04:17 +0000 (12:04 -0400)]
gdk: Add a private api to find sandboxes

This will be used in more places in the future.

7 years agoevents: Mark static function as such
Benjamin Otte [Tue, 29 May 2018 19:54:47 +0000 (21:54 +0200)]
events: Mark static function as such

7 years agogdk: Get rid of gdk_event_free()
Benjamin Otte [Tue, 29 May 2018 19:53:44 +0000 (21:53 +0200)]
gdk: Get rid of gdk_event_free()

Events are objects, so use g_object_unref().

7 years agogesturemultipress: Don’t fire ::released after ::cancel
Ernestas Kulik [Tue, 29 May 2018 11:43:06 +0000 (14:43 +0300)]
gesturemultipress: Don’t fire ::released after ::cancel

Causing a grab in the handler for ::pressed by, e.g., popping up a
context menu will cause the gesture to be canceled and, subsequently,
::end and ::released to be fired, all while the button is still
physically pressed. That results in no event being available to the
::released handler and garbage coordinates, given that
gtk_gesture_get_point() returns FALSE.

Emitting ::released can be avoided by checking the return value
gtk_gesture_get_point().

7 years agogesture: Fix code snippet
Ernestas Kulik [Tue, 29 May 2018 11:48:41 +0000 (14:48 +0300)]
gesture: Fix code snippet

GTK_EVENT_SEQUENCE_ACCEPTED seems to never have been a valid enumeration
value. GTK_EVENT_SEQUENCE_CLAIMED is the closest in meaning.

7 years agogesture: Fix get_last_event() docs
Ernestas Kulik [Tue, 29 May 2018 10:59:06 +0000 (13:59 +0300)]
gesture: Fix get_last_event() docs

Querying the event sequence of a gesture will always yield NULL for
non-touch events, but passing NULL in to calls to
gtk_gesture_get_last_event() is a perfectly valid use case.

7 years agogdkseatdefault: Don't hide GdkSurface on grab failure
Victor Toso [Thu, 24 May 2018 13:42:47 +0000 (15:42 +0200)]
gdkseatdefault: Don't hide GdkSurface on grab failure

Application is not expecting that.

Bug found due gdk_seat_grab() failure on Lock Screen. When user
Unlock the screen, the application is visible but does not receive
enter-event any more on X11/GNOME.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1485968
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1571422

Signed-off-by: Victor Toso <victortoso@redhat.com>
Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
7 years agogtkpopover: Fix thinko in key press event type check
Carlos Garnacho [Tue, 29 May 2018 11:50:41 +0000 (13:50 +0200)]
gtkpopover: Fix thinko in key press event type check

That code branch is meant to check for key events, seems obvious we want
GDK_KEY_PRESS, not GDK_BUTTON_PRESS (which also broke the branch right
below).

Makes us all able to dismiss popovers again.

7 years agoRevert "popover: Fix setting priv->button_pressed in ::event handler"
Carlos Garnacho [Tue, 29 May 2018 12:03:27 +0000 (14:03 +0200)]
Revert "popover: Fix setting priv->button_pressed in ::event handler"

This reverts commit d638ff3afa7f3ccfebf2d5de23616109742d622b.

Doesn't look like the right fix. Another one coming that fixes dismissing
through both pointer and keyboard.

7 years agoRemove an unused struct
Matthias Clasen [Sun, 27 May 2018 15:56:21 +0000 (11:56 -0400)]
Remove an unused struct

Positive side-effect: visual c no longer has an empty struct
to complain about.

7 years agopopover: Fix setting priv->button_pressed in ::event handler
Timm Bäder [Sun, 27 May 2018 15:44:31 +0000 (17:44 +0200)]
popover: Fix setting priv->button_pressed in ::event handler

There were two cases in that if/else cascade handling the
event_type == GDK_BUTTON_PRESS case, so priv->button_pressed never got
set.

7 years agogdkscreen-x11: Remove redundant typedef
Timm Bäder [Sun, 27 May 2018 15:44:12 +0000 (17:44 +0200)]
gdkscreen-x11: Remove redundant typedef

Causes warnings with clang.

7 years agogl renderer: Remove an outdated comment
Timm Bäder [Sun, 27 May 2018 15:37:22 +0000 (17:37 +0200)]
gl renderer: Remove an outdated comment

7 years agoMerge branch 'master' into 'master'
Matthias Clasen [Sun, 27 May 2018 15:50:17 +0000 (15:50 +0000)]
Merge branch 'master' into 'master'

icontheme: Keep dir_mtimes in order

Closes #1115

See merge request GNOME/gtk!161

7 years agofilechooserwidget: Don't chain up in ::event
Timm Bäder [Sun, 27 May 2018 12:40:07 +0000 (14:40 +0200)]
filechooserwidget: Don't chain up in ::event

GtkWidgetClass.event is NULL.

7 years agogl renderer: Use offsets for more node types
Timm Bäder [Sun, 27 May 2018 12:41:56 +0000 (14:41 +0200)]
gl renderer: Use offsets for more node types

7 years agoUpdate Polish translation
Piotr Drąg [Sun, 27 May 2018 05:58:25 +0000 (07:58 +0200)]
Update Polish translation

7 years agoa11y: Stop using ::event
Matthias Clasen [Fri, 25 May 2018 22:25:29 +0000 (18:25 -0400)]
a11y: Stop using ::event

We can just as well use notify::has-focus for the purpose of
focus tracking, and we can at the same time avoid emitting the
deprecated AtkObject::focus-event signal.

7 years agoci/msys2: force disable vulkan
Christoph Reiter [Sat, 26 May 2018 12:23:58 +0000 (14:23 +0200)]
ci/msys2: force disable vulkan

A recent dependency change in MSYS2 made it pull in vulkan, which made
meson think it's available but it somehow links against the system vulkan dll
instead.

Disable vulkan for now.

7 years agoSpinButton: Fix an obviously wrong arg description
Daniel Boles [Sat, 26 May 2018 00:06:00 +0000 (01:06 +0100)]
SpinButton: Fix an obviously wrong arg description

:climb-rate is not about what you get when you single-click on a button,
as this implied: it's what happens if you hold down a button or a key.
Fix the description of @climb_rate to new(), and while here, mention the
key in the blurb of :climb-rate itself.

7 years agoicontheme: Keep dir_mtimes in order
Jan Alexander Steffens (heftig) [Wed, 23 May 2018 18:06:01 +0000 (20:06 +0200)]
icontheme: Keep dir_mtimes in order

Don't reverse the order each time we insert a theme. Reverse it only
once, after all themes have been loaded.

Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1115

7 years agoMerge branch 'kill-key-events' into 'master'
Matthias Clasen [Wed, 23 May 2018 01:55:05 +0000 (01:55 +0000)]
Merge branch 'kill-key-events' into 'master'

Kill key events

See merge request GNOME/gtk!160