Commit Graph

40589 Commits

Author SHA1 Message Date
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
Krzesimir Nowak
6cad13c75a broadway: Fix memleak in error case
https://bugzilla.gnome.org/show_bug.cgi?id=751752
2015-07-07 12:55:13 -04:00
Jasper St. Pierre
253ce543df window: Don't send startup notifications for offscreen / popup windows
The WM isn't aware of O-R (popup) or offscreen windows. If somebody
maps an offscreen or a popup GTK+ window before the main window, we'll
complete the sequence before a "real" window is mapped. Make sure to
ignore these for startup notifies.
2015-07-07 12:55:06 -04:00
Alexander Larsson
64770685a9 broadway: Handle shm_open failing by falling back on tmp files
This is required if /dev/shm is not mounted on your system, which can
happen for instance in certain container configurations.
2015-07-07 12:55:00 -04:00
cedlemo
fce7f71772 GtkImage: Make resource property work properly
gtk_image_set_from_resource was setting the resource_path,
only to have it overwritten again before returning. That
is not as it should be, so change things to set the resource
path late.

https://bugzilla.gnome.org/show_bug.cgi?id=751443
2015-07-07 12:54:53 -04:00
Matthias Clasen
ced54098af GtkRange: Make drag gesture less agressive
Moving the mouse while pressing one of the steppers was making
the slider jump to the end, unexpectedly. This was caused by the
drag gesture kicking in when it shouldn't. Fix this by making
all drag gesture signal handlers only do something if we are in
a drag thats started on the slider.

https://bugzilla.gnome.org/show_bug.cgi?id=751050
2015-07-07 12:53:06 -04:00
Caolán McNamara
8de3a2cd23 file chooser: Avoid tall combos
The filter combo box in the file chooser was stretching to match
the height of the extra widgets next to it. Since, stretched combo
boxes are not a pretty sight, make it stick to the top instead.

Patch by Caolán McNamara,

https://bugzilla.gnome.org/show_bug.cgi?id=751227
2015-07-07 12:52:58 -04:00
Alexander Larsson
796eaa5d18 configure: test have_docbook_style != yes, not have_docbook_dtd 2015-07-07 12:52:50 -04:00
Matthias Clasen
2d1ea4c1a0 color editor: make popups toggleable
The popups on the color editor are somewhat hard to get rid of.
Arrange things so that clicking the same control again dismisses
the current popup.
2015-07-07 12:48:41 -04:00
Matthias Clasen
cf6851bd8d Don't show a menu on the color editor swatch
There's nothing to customize here, so no need to show a menu.
2015-07-07 12:48:33 -04:00
Matthias Clasen
01fec30f5a Add a way to avoid menu on color swatches 2015-07-07 12:48:27 -04:00
Cosimo Cecchi
85aeb2e43b testsuite: add a test for non-square symbolic icons
To verify the previous fix.

https://bugzilla.gnome.org/show_bug.cgi?id=750605
2015-07-07 12:48:01 -04:00
Cosimo Cecchi
ee555c02a6 icontheme: don't modify symbolic SVG dimensions when recoloring
When recoloring symbolic SVG, do not modify the original width and
height of the passed-in file; the function later will scale the image
through gdk_pixbuf_new_from_stream_at_scale(), but we should still
use the original size to create the proxy SVG, or the image will
possibly be doubly-resized or blurry.

https://bugzilla.gnome.org/show_bug.cgi?id=750605
2015-07-07 12:47:54 -04:00
Matthias Clasen
626a2cf0af recent chooser: Make it expand
It is expected that the list fills the available space.

https://bugzilla.gnome.org/show_bug.cgi?id=750690
2015-07-07 12:47:47 -04:00
Benjamin Otte
d8e880f7f1 fontchooser: Don't cause "row-changed" signal in cell data func
The font chooser delays creating the font description from the font face
as long as possible (it's slow). Because we use fixed height mode, we
only have to create font descriptions for rows we are actually going to
show.

This was achieved by looking at the font description column and if it
was NULL, we created a font description and gtk_list_stiore_set() it.
Unfortunately this caused a "row-changed" signal to be emitted and this
emission could happen during the cell data func.
And that caused infinite loops with accessibility when you were unlucky.

This change replaces the NULL font description with an empty one and
instead of setting the correct font description, we
pango_font_description_merge() it in. This way, the list store doesn't
change and no signals are emitted.

https://bugzilla.redhat.com/show_bug.cgi?id=1197267
2015-06-12 16:51:38 -04:00
John Ralls
4983d437e3 Bug 745957 - GTK+/Quartz >= 3.14.8: Symbol not found: _gtk_drag_cancel
Implement gtk_drag_cancel, made public in c160ba069 and 62616a71, in
gtkdnd-quartz.c.
2015-05-31 11:59:02 -07:00
Cédric Valmary
74b5e315ce Updated Occitan translation 2015-05-29 20:38:37 +00:00
Jakub Steiner
e4e60b251e set background for menubar
- only an issue in 3.14

https://bugzilla.gnome.org/show_bug.cgi?id=750011
2015-05-29 15:43:46 +02:00
Matthias Clasen
7d5fe40f2e GtkMenuButton: Submit to action
As an actionable (inherited from GtkButton), a GtkMenuButton
should not set its own sensitivity when it has an action-name
set, but just follow the enabled state of the associated
action.

https://bugzilla.gnome.org/show_bug.cgi?id=738083
2015-05-20 16:28:53 +02:00
Marek Kasik
24a399252e printing: Check connection to remote CUPS server on correct port
Add parameter for specification of port to gtk_cups_connection_cups_new().
Use default port returned by ippPort() if the given port is lower than 0.

https://bugzilla.gnome.org/show_bug.cgi?id=693738
2015-05-13 12:31:56 +02:00
Руслан Ижбулатов
69aeaacedd Use GDK_KEY_KP_Decimal instead of GDK_KP_Decimal
Fixes the FTBFS introduced in 578043f97e
2015-05-04 17:03:22 +00:00
Cédric Valmary
46411546e8 Updated Occitan translation 2015-05-02 15:29:15 +00:00
Matthias Clasen
ca3f730960 win32: Support the decimal point on the keypad
Based on a patch by John Emmas.
2015-05-01 07:34:30 -04:00
Sveinn í Felli
f8ff25e554 Updated Icelandic translation 2015-04-28 15:10:23 +00:00