Commit Graph

42354 Commits

Author SHA1 Message Date
Felipe Braga
a1f15bd9cb Updated Brazilian Portuguese translation 2015-07-24 17:46:58 +00:00
Chun-wei Fan
05fcff8e73 MSVC Builds: Fix Introspection Build
The deprecated and a11y sources of GTK+ were spun off some time ago into
their own Makefile.inc, which is then included by gtk/Makefile.am.  Fix the
generation of file sources for the GTK+ .gir.
2015-07-24 17:41:05 +08:00
Pavel Grunt
bb9401f35a gdk-win32: Send fake release key event for shift key
Windows does not send any release key event for one of the shift keys
when both shift keys were pressed together. This commit solves
the problem by sending the extra release key event for the shift key
which was released as first, when the other shift key is released.

Other modifiers (e.g. Ctrl, Alt) do not have this problem.

https://bugzilla.gnome.org/show_bug.cgi?id=751721
(cherry picked from commit 44608dadc6)
2015-07-23 17:56:19 +02:00
Marek Černocký
9cea93847f Updated Czech translation 2015-07-22 00:48:13 +02:00
Matthias Clasen
a6144ebe54 Avoid g_set_object
One of the backported fixes brought in a dependency on new glib
that I didn't mean to introduce here. Avoid it.
2015-07-21 12:04:45 -04:00
Piotr Drąg
6950ac7cc9 Updated Polish translation 2015-07-21 17:21:17 +02:00
Matthias Clasen
0749199d4c 3.16.6 3.16.6 2015-07-21 08:37:02 -04:00
Stefan Sauer
434c7220d7 gtkimagemenuitem: improve the replacement docs even more
Since the stock strings usually have menmosics suggest
gtk_menu_item_new_with_mnemonic().
2015-07-21 08:22:01 -04:00
Stefan Sauer
64954444ae gtkimagemenuitem: fix suggestion for replacement
gtk_menu_item_new(9 would create an empty menu item. While the stock deprecation
aims to unclutter the menus, I feel this goes too far.
2015-07-21 08:21:49 -04:00
Matthias Clasen
6978db3a52 GtkListBox: Listen for adjustment changes
We automatically pick up an adjustment from our parent
scrollable, but we failed to update it when it changes.
This is happening in the places sidebar, and it was causing
the focus-tracking to fail there, letting the focus move
out of view. With this change, the focus remains visible.
2015-07-21 08:21:17 -04:00
Daniel Hams
1debaed676 GdkGLContext little fix to property names and descriptions.
https://bugzilla.gnome.org/show_bug.cgi?id=752502
2015-07-21 08:20:46 -04:00
Ignacio Casal Quinteiro
b695d7392a gdk: fix crash if visual is NULL
cairo_xlib_surface_get_visual might return NULL so we need to
check for NULL before trying to use it.

https://bugzilla.gnome.org/show_bug.cgi?id=752520
2015-07-21 08:19:34 -04:00
Emmanuele Bassi
fe783cf271 tests/gears: Ensure we don't use unavailable GL resources
We need to check on realize if we have access to a GL context, before
calling GL functions. We use gtk_gl_area_get_error() for that.

We also need to tear down the resources during unrealization, instead
of leaking them.
2015-07-21 08:16:37 -04:00
Eric Williams
b9e0a54a42 Added an additional explanation and code snippet for GtkImageMenuItem.c
https://bugzilla.gnome.org/show_bug.cgi?id=752093
2015-07-21 08:12:59 -04:00
Ryan Lortie
0002a8a604 testgmenu: use the menu binding code
The menu tracker does a better job of this than we can, so move over to
using it instead.

This fixes issues with './testgmenu --import' not properly displaying
the language submenu.

https://bugzilla.gnome.org/show_bug.cgi?id=752016
2015-07-21 08:08:49 -04:00
Carlos Garnacho
b46b40bbc6 gtkdnd: Fix introspection annotations in some functions
The GdkEvent field is nullable on gtk_drag_begin*, and gtk_drag_cancel()
is a method, like the rest of the DnD API.
2015-07-21 08:08:42 -04:00
Carlos Garnacho
542413feca gtkdnd: Account for setting a same icon helper
g_set_object() will take care of ref'ing before destroying the previous
instance, which might actually be the same pointer.

https://bugzilla.gnome.org/show_bug.cgi?id=751401
2015-07-21 08:08:36 -04:00
nick
fe104915e4 settings: Include pangofc-fontmap.h header on Wayland
In case the X11 backend is not enabled, we still need to include the
pangofc-fontmap.h header file, as we use the Pango/FontConfig API in
both the X11 and Wayland case.

https://bugzilla.gnome.org/show_bug.cgi?id=751625
2015-07-21 00:06:13 +01:00
Marek Černocký
4d049c989b Updated Czech translation 2015-07-18 09:42:01 +02:00
Matthias Clasen
34a2c6a2ee Fix the build 2015-07-17 20:46:11 -04:00
Matthias Clasen
074fd13350 testgtk: Remove pointless code
The display is getting overwritten immediately. Pointed out by
coverity.
2015-07-17 19:55:11 -04:00
Matthias Clasen
c9267b30d7 inspector: Avoid a NULL deref
Coverity pointed out that getting a class name requires
dereferencing the pointer, so only don't do it if it is NULL.
2015-07-17 19:55:04 -04:00
Matthias Clasen
6ea7c290a3 GtkWindow: Fix a use-after-free
We were printing a string in a warning after freeing it.
Also, fix an x/y typo that might cause popovers to be
mispositioned.
2015-07-17 19:24:02 -04:00
Matthias Clasen
0993cdf79f file chooser: remove an unused GError variable
Pointed out by coverity
2015-07-17 19:23:43 -04:00
Matthias Clasen
32c81cfd65 inspector: Remove some dead code
Not sure what I was thinking here. Coverity pointed this out.
2015-07-17 19:22:24 -04:00
Matthias Clasen
575f334ce5 inspector: Avoid a NULL deref 2015-07-17 19:22:13 -04:00
Matthias Clasen
48fba6911a treeview: Add an explicit return for clarity
I believe that first_column can only ever be NULL here if
last_column is NULL too, in which case we'd exited already.
But coverity doesn't see that, so add an explicit exit.
2015-07-17 19:22:05 -04:00
Matthias Clasen
d833c05f6e tooltip: Remove unnecessary checks
Coverity uses these as clues to complain.
2015-07-17 19:21:55 -04:00
Matthias Clasen
66f9dcd93b list box: Remove unnecessary checks
Again, coverity takes these as clues to complain.
2015-07-17 19:21:48 -04:00
Matthias Clasen
236d2d3cf1 GtkLabel: Remove an unnecessary check
Coverity has the annoying habit of guessing backwards that
if we check the value here, it might be NULL earlier.
2015-07-17 19:21:36 -04:00
Matthias Clasen
ff9349bfdd GtkActionHelper: Avoid null deref in debug code 2015-07-17 19:21:24 -04:00
Matthias Clasen
2f817322fd GtkGrid: Add a few NULL checks
Coverity complained about these.
2015-07-17 19:21:12 -04:00
Matthias Clasen
5557dd8fce gdk: Add some parameter checking
This may help coverity recognize that we're not called with
invalid combinations.
2015-07-17 19:21:03 -04:00
Matthias Clasen
ff7d67b33c testdialog: Error out if templates are missing
Coverity complained about us ignoring the return value
here, and it is nicer to get an error message about this.
2015-07-17 16:10:30 -04:00
Matthias Clasen
3460a4d507 cups: Annotate a call whose return value we don't care about
We're closing this fd, but we're not going to do anything else
if that fails. Annotate to let coverity see this.
2015-07-17 16:09:47 -04:00
Matthias Clasen
5bbf0baa7f inspector: Check a return value
We don't care about the error here, but we were relying on
g_resources_get_info to zero the size even in case of error.
No need to do that, we can just check the return value. Plus,
it makes coverity happy.
2015-07-17 16:09:39 -04:00
Matthias Clasen
2c7974a69d inspector: Annotate a call whose return value we don't need
The way this code is written, we know that there is an item in
the hash table and the iter_next call will give it to us, so
no need to check the return value. Annotate the call to tell
coverity.
2015-07-17 16:09:32 -04:00
Matthias Clasen
64affb0406 gtkicontheme: Check a return value
We were already looking at the error anyway, but rewriting things
this way lets coverity see the light.
2015-07-17 16:09:23 -04:00
Matthias Clasen
0558b0c439 gtkbuilderparser: Add some assertions
Add some assertions that things are non-NULL when we know they
are, so that coverity gets it.
2015-07-17 16:09:11 -04:00
Matthias Clasen
7566066000 gtk-demo: Check a return value
Found by coverity.
2015-07-17 16:08:54 -04:00
Balázs Úr
683ccd28e8 Updated Hungarian translation 2015-07-17 14:14:46 +00:00
Carlos Garnacho
7c35d52f3c Revert "x11: Query pointer devices' scroll valuators on toplevel enter events"
This reverts commit 3d9cce79cf.

The commit broke more scenarios than fixed, better to go back to square one.
2015-07-15 23:45:49 +02:00
Owen W. Taylor
1a8e9dbb8f GdkDisplayX11: Properly translate server timestamps from _NET_WM_FRAME_* messages
When using frame times from _NET_WM_FRAME_DRAWN and _NET_WM_FRAME_TIMINGS, we
were treating them as local monotonic times, but they are actually extended-precision
versions of the server time, and need to be translated to monotonic times in the
case where the X server and client aren't running on the same system.

This fixes rendering stalls when using X over a remote ssh connection.
https://bugzilla.gnome.org/show_bug.cgi?id=741800
2015-07-15 12:47:55 -04:00
Aurimas Černius
bb1750c05f Updated Lithuanian translation 2015-07-10 00:08:44 +03:00
Matej Urbančič
afa82a63a9 Updated Slovenian translation 2015-07-08 15:39:00 +02:00
Piotr Drąg
657d0d79b3 Updated Polish translation 2015-07-07 20:26:24 +02:00
Tom Schoonjans
1539cdd783 gdkwindow-quartz: partial aspect ratio support
Support was added for GDK_HINT_ASPECT in
gdk_quartz_window_set_geometry_hints though with one restriction:
min_aspect and max_aspect have to be equal, which I believe corresponds
to the most common usage. A warning will be printed if this condition is
not met but min_aspect will be used anyway.
2015-07-07 10:22:11 -07:00
Matthias Clasen
85ff269adf 3.16.5 3.16.5 2015-07-07 11:23:39 -04:00
Cosimo Cecchi
92933fd3ad reftests: fix style class syntax in CSS file
Fixes reftests.

https://bugzilla.gnome.org/show_bug.cgi?id=750605
2015-07-07 11:23:39 -04:00
Jasper St. Pierre
28e7721075 gdkdisplay-x11: The leader window should be an input-only window
This prevents it from creating a _NET_WM_USER_TIME_WINDOW, which can
confuse mutter / other window managers, and also me, when debugging.
2015-07-07 10:31:13 -04:00