Commit Graph

40612 Commits

Author SHA1 Message Date
Pedro Albuquerque
271f171678 Updated Portuguese translation 2015-11-01 09:28:18 +00:00
Pedro Albuquerque
2e6903cee8 Updated Portuguese translation 2015-11-01 09:24:29 +00:00
Felipe Braga
60f4256bba Updated Brazilian Portuguese translation 2015-09-19 21:22:51 +00:00
Felipe Braga
f1708c17ea Updated Brazilian Portuguese translation 2015-09-19 12:26:54 +00:00
Arash Mousavi
434ea2747b Revert "Update Persian translation"
This reverts commit 12031d9f85.
2015-09-15 21:08:10 +04:30
Arash Mousavi
12031d9f85 Update Persian translation 2015-09-15 21:07:20 +04:30
Carlos Soriano
2db7e3eaa8 gtkplacessidebar: protect for checking a null event
We are using the current gtk event position to check if
the user clicked in the eject button of a row.
However, we are calling this in row-activated signal, which
can happens when the gtk+ mainloop already removed the "current"
event, and therefore we were trying to access a null event position
which crashes the sidebar.

To fix it check if we have as current event, and if not,
we will not check for the position. But it's better than crashing,
and shouldn't happen too much.

https://bugzilla.gnome.org/show_bug.cgi?id=754995
2015-09-14 15:20:15 +02:00
Anders Jonsson
deba22dbb7 Updated Swedish translation 2015-08-16 19:24:35 +00:00
Andika Triwidada
f34f1973fb Updated Indonesian translation 2015-08-02 04:58:20 +00:00
Matthias Clasen
34e6e1a599 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:05:46 -04:00
Matthias Clasen
8c9e611b26 3.14.15 3.14.15 2015-07-21 10:31:01 -04:00
Matthias Clasen
a86d61e42d 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 10:26:01 -04:00
Ryan Lortie
116af608a2 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 10:24:52 -04:00
Carlos Garnacho
ad6a66ba07 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 10:24:34 -04:00
Marek Černocký
57628268c1 Updated Czech translation 2015-07-18 09:41:24 +02:00
Matthias Clasen
9eef97fe1c GtkMenuSectionBox: Add a clarifying assertion
This assertion helps coverity see what is clear to us.
2015-07-17 20:15:24 -04:00
Matthias Clasen
963c6042a7 GtkSwitch: Avoid accessing uninitialized memory
The allocation is only set in the if branch, but used outside.
Pointed out by coverity.
2015-07-17 20:00:15 -04:00
Matthias Clasen
7052acf3c7 testgtk: Remove pointless code
The display is getting overwritten immediately. Pointed out by
coverity.
2015-07-17 19:56:38 -04:00
Matthias Clasen
6ea83871a4 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:56:14 -04:00
Matthias Clasen
05d667918d 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:29:57 -04:00
Matthias Clasen
d4d40d5e2b file chooser: remove an unused GError variable
Pointed out by coverity
2015-07-17 19:29:48 -04:00
Matthias Clasen
f7e20e917f inspector: Remove some dead code
Not sure what I was thinking here. Coverity pointed this out.
2015-07-17 19:29:25 -04:00
Matthias Clasen
ea5d79d1fd inspector: Avoid a NULL deref 2015-07-17 19:28:34 -04:00
Matthias Clasen
ec4bb71596 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:28:22 -04:00
Matthias Clasen
d6983d77d8 tooltip: Remove unnecessary checks
Coverity uses these as clues to complain.
2015-07-17 19:28:14 -04:00
Matthias Clasen
ab5ca5225a list box: Remove unnecessary checks
Again, coverity takes these as clues to complain.
2015-07-17 19:27:58 -04:00
Matthias Clasen
09ff569b04 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:27:52 -04:00
Matthias Clasen
8376acd4dd GtkActionHelper: Avoid null deref in debug code 2015-07-17 19:27:38 -04:00
Matthias Clasen
d184027a98 GtkGrid: Add a few NULL checks
Coverity complained about these.
2015-07-17 19:27:30 -04:00
Matthias Clasen
49b2d84644 gdk: Add some parameter checking
This may help coverity recognize that we're not called with
invalid combinations.
2015-07-17 19:27:23 -04:00
Matthias Clasen
f333df9394 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:17:02 -04:00
Matthias Clasen
90dde24d6a 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:16:54 -04:00
Matthias Clasen
0df57451ea 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:16:31 -04:00
Matthias Clasen
8bcac7a86f 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:14:59 -04:00
Matthias Clasen
3709475e8d 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:14:01 -04:00
Matthias Clasen
9fb727d989 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:13:51 -04:00
Matthias Clasen
33b19a291a gtk-demo: Check a return value
Found by coverity.
2015-07-17 16:13:35 -04:00
Balázs Úr
4515d4b8d9 Updated Hungarian translation 2015-07-17 14:11:44 +00:00
Matthias Clasen
ee7083931f Revert "x11: Query pointer devices' scroll valuators on toplevel enter events"
This reverts commit 33e6b73145.

This commit broke more scenarios than it fixes, not suitable for stable branches.
2015-07-15 16:31:42 -04:00
Owen W. Taylor
2ef204e607 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:49:07 -04:00
Aurimas Černius
62e304257b Updated Lithuanian translation 2015-07-10 00:05:16 +03:00
Matej Urbančič
e5a79b3504 Updated Slovenian translation 2015-07-08 15:38:27 +02:00
Piotr Drąg
7563c68c62 Updated Polish translation 2015-07-07 20:23:49 +02:00
Matthias Clasen
9f4c99ace0 3.14.14 3.14.14 2015-07-07 13:05:20 -04:00
Jasper St. Pierre
fe44d52830 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 12:56:09 -04:00
Emmanuele Bassi
8eb59d1cd1 docs: Drop deprecated symbolic icon names
Do not suggest using icons that do not exist.
2015-07-07 12:56:01 -04:00
Emmanuele Bassi
98b5304fad container: Update the add() warning
Now that gtk_widget_reparent() has been deprecated, we should not
suggest it.
2015-07-07 12:55:55 -04:00
Matthias Clasen
051bd1a06b GtkSwitch: fix a reentry issue
The introduction of state broke some users which relied on
being able to set active in a notify::active handler.

https://bugzilla.gnome.org/show_bug.cgi?id=751754
2015-07-07 12:55:32 -04:00
Carlos Garnacho
33e6b73145 x11: Query pointer devices' scroll valuators on toplevel enter events
We used to "invalidate" scroll valuators, so the next scroll event could
be used as the base for the next scroll deltas. This has the inconvenience
that it invariably consumes the first event received after enter and,
due to interactions with WM overeager passive button grabs, there's a
possibility we don't scroll at all if we receive interleaved "smooth
scroll" XI_Motion events and XI_Enter events (Normally triggered by regular
scroll wheels in mice).

In order to fix this, and at the expense of some sync-call overhead on
XI_Enter events (one XIQueryDevice call per slave device), query the
current scroll valuator state for all the slaves of the entered pointer,
so we do know beforehand the right base values. If new devices are plugged
while the pointer is on top of the client, the initialized scroll values
will match the valuators'.

https://bugzilla.gnome.org/show_bug.cgi?id=750994
https://bugzilla.gnome.org/show_bug.cgi?id=750870
2015-07-07 12:55:26 -04:00
Carlos Garnacho
602d1dd9f6 x11: Avoid X error traps within server grabs
gdk_x11_device_xi2_window_at_position() may attempt to push/pop
a few error trap pairs while traversing the window tree. Move it
outside the server grab, and around the multiple XIQueryPointer
calls we may do here.

https://bugzilla.gnome.org/show_bug.cgi?id=751739
2015-07-07 12:55:20 -04:00