Commit Graph

44209 Commits

Author SHA1 Message Date
GNOME Translation Robot
d80a44eb3b Updated Scottish Gaelic translation 2016-02-18 13:38:54 +00:00
Frederic Crozat
5d218939a3 Revert "Translate GDK_KEY_KP_Decimal according to locale"
This reverts commit bfedc3bafe.

Too much controversy for this minor improvement.
See https://bugzilla.gnome.org/show_bug.cgi?id=756751
2016-02-16 17:20:28 +01:00
Colomban Wendling
322c4e1698 treeview: Make sure the editing widget's top left is always visible
https://bugzilla.gnome.org/show_bug.cgi?id=761838
2016-02-14 15:01:06 +01:00
John Ralls
53ee00f790 Fix Quartz clipboard image retrieval.
It does no good to iterate through a series of mime types to call a
function when the eventually-called function,
_gtk_quartz_get_selection_data_from_pasteboard() in this case, gives the
wrong answer and stops the iteration on all but one especially if that
one isn't first.

The one is "image/tiff" and the quartz pasteboard function will return
any image type Quartz knows about for it, so lose the iteration and use
only "image/tiff".
2016-02-11 14:09:15 -08:00
Chun-wei Fan
5d5651a51f Visual Studio builds: Drop gtk-query-settings project
The gtk-query-settings tool was only added in 3.19.x, so we ought not try
to build it here.  Oops :|, ought to check closer before trying to cherry-pick.

Issue reported by Ignacio Casal Quinteiro.
2016-02-03 01:31:14 +08:00
Alexandre Franke
85fb4c1c0a Updated French translation 2016-02-02 16:32:30 +00:00
Matthias Clasen
78b8192408 3.18.7 3.18.7 2016-01-27 23:25:10 -05:00
Matthias Clasen
b700ce0429 Update expected output of the a11y tests
This is the result of the message dialog title change.
2016-01-27 23:25:10 -05:00
Matthias Clasen
6aec92607f Update README.glade
Update the README.glade file to use current .ui file
names and locations as example.
2016-01-27 22:17:30 -05:00
Olav Vitters
9ba7278e7c Add an XSetting for primary button warps slider
This will be used by xsettings-kde to ensure GTK+3.x programs behave
consistently.

https://bugzilla.gnome.org/show_bug.cgi?id=688524
2016-01-27 22:17:30 -05:00
Ray Strode
c3696f7adb wayland: __NR_memfd_create instead of SYS_memfd_create
It looks like the gnome-continuous headers haven't quite
caught up yet, so try __NR_memfd_create instead.

If that doesn't work, i'll likely just add in a fallback
code path.
2016-01-27 22:17:30 -05:00
Ray Strode
12d5e7d1f2 wayland: use memfd_create instead of open in tmpdir
The tmpdir is used for a wide assortment of things, and
can easily fill up. If it fills then desktop will start
crashing with SIGBUS errors.

This commit changes the shm pool allocation code, to use
memfd_create, instead, so the shared memory files will
be anonymous and not associated with /tmp

https://bugzilla.gnome.org/show_bug.cgi?id=761095
2016-01-27 22:17:30 -05:00
Matthias Clasen
b3506ede35 path bar: Don't hide arrows
Changing the visibility of child widgets in size-allocate does
not work well with out current allocation and layout machinery.
To avoid the visual fallout, just keep the arrow buttons visible
and only change their sensitivity.

https://bugzilla.gnome.org/show_bug.cgi?id=754868
2016-01-27 22:17:30 -05:00
Sebastien Lafargue
b8b61514a0 GtkColorChooser: make set_rgba work in editor mode
When using the color chooser in editor mode,
gtk_color_chooser_set_rgba need to be propaged
to the editor

https://bugzilla.gnome.org/show_bug.cgi?id=761005
2016-01-27 22:17:30 -05:00
Carlos Garnacho
8f3d613f79 GtkTreeView: Update prelight row after revalidating rows
It might have changed (eg. after a row being expanded, and the child
rows revalidated), so just update it here based on the last pointer
position.

Based on a patch by Maxim Reznik <reznikmm@gmail.com>

https://bugzilla.gnome.org/show_bug.cgi?id=760891
2016-01-27 22:17:30 -05:00
Matthias Clasen
444fcaffc0 wayland: Don't hardcode /tmp
As pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=760964,
we should use the GLib facilities for determining the preferred
location for temporary files.
2016-01-27 22:17:29 -05:00
Ray Strode
0443756f0f wayland: don't pass in width and height to create_shm_pool
create_shm_pool doesn't need the width or height, it just needs
the total size.  By passing it in, we're requiring it to redo
stride calculation unnecessarily.

This commit drops the width and height parameters and makes the
function just take the total size directly.

https://bugzilla.gnome.org/show_bug.cgi?id=760897
2016-01-27 22:17:29 -05:00
Ray Strode
6c192a8856 wayland: clean up stride calculation when creating shm surface
Right now, we assume the stride for the image surface needs to
be 4 byte aligned.  This is, in fact, true, but it's better to
ask cairo for the alignment requirement directly rather than
assume we know the alignment rules.

This commit changes the code to use cairo_format_stride_for_width
to calculate a suitable rowstride for pixman.

https://bugzilla.gnome.org/show_bug.cgi?id=760897
2016-01-27 22:17:29 -05:00
Ray Strode
385b7ae0c8 wayland: unlink shm file earlier in create function
create_shm_pool unlinks the temporary file a little,
too late. It should be unlinked before ftruncate()
is called for two reasons:

1) if ftruncate fails, the file is currently not
getting cleaned up at all
2) in theory, if the file is public some other process
could muck with it

This commit just moves the unlink call a little higher
up.

https://bugzilla.gnome.org/show_bug.cgi?id=760897
2016-01-27 22:17:29 -05:00
Matthias Clasen
39ea2982fc application: Protect against double shutdown
It is not something that can happen normally.
But if it does, we shouldn't crash.

https://bugzilla.gnome.org/show_bug.cgi?id=760680
2016-01-27 22:17:29 -05:00
Matt Watson
4accef4d14 widget: remove queue_resize in set_sensitive
Calling gtk_widget_propagate_state is enough to queue a resize if
needed

See da7a4089fe
2016-01-27 22:17:29 -05:00
Matthias Clasen
f83878c904 message dialog: Prevent empty title from being shown
We don't want to grow the titlebar by showing an empty label.
2016-01-27 22:17:29 -05:00
Dominique Leuenberger
964adb2a68 QEMU USB Tablet is not really a tablet - it's a trick
Unfortunately, Qemu gives us this confusing device to work with,
and the best we can do is filter it out based on its name.

https://bugzilla.gnome.org/show_bug.cgi?id=760445
2016-01-27 22:17:29 -05:00
Ting-Wei Lan
eb0f600785 broadway: Call setlocale in main function of broadwayd
It is required to correctly show translated messages on some locales.

https://bugzilla.gnome.org/show_bug.cgi?id=760416
2016-01-27 22:17:29 -05:00
Matthias Clasen
d4032f80ce Fix corner manipulation when growing rounded rects
This addresses problems with uneven border radius',
pointed out by Lapo.
2016-01-27 22:17:29 -05:00
Matthias Clasen
cc3bc75402 Fix rendering of unsymmetric borders
There was an errant path that threw off our clipping for
the top section of the border.

https://bugzilla.gnome.org/show_bug.cgi?id=722937
2016-01-27 22:17:29 -05:00
Matthias Clasen
f7b0b523ac Avoid division by 0 in the border rendering code
We skip sides with 0 border width in render_border, but when
we collect sides with the same style, we may pass the 0 width
down to render_frame_stroke anyway. So skip width 0 sides
there as well.
2016-01-27 22:17:29 -05:00
Matthias Clasen
427287bea4 Fix dobule border rendering
This is the same fix that was applied for ridge and groove
style in 9f27ee7f5a.
2016-01-27 22:17:29 -05:00
Timm Bäder
d7c628124c GtkListBox: Optimize _get_row_at_y a bit
Use g_sequence_lookup for a binary search over the rows.
2016-01-27 22:17:28 -05:00
Timm Bäder
4bf28f8a3b GtkListBox: get_row_at_y can return NULL 2016-01-27 22:17:28 -05:00
Felipe Borges
8c6222e54d printing: always propagate Collate value
https://bugzilla.gnome.org/show_bug.cgi?id=728344
2016-01-27 22:17:28 -05:00
Matt Watson
b0d34de0c0 flowbox: remove unused prelight code
It was causing needless redraws

https://bugzilla.gnome.org/show_bug.cgi?id=759757
2016-01-27 22:17:28 -05:00
Matthias Clasen
d9405627f1 Fix parsing of font-weight
The parser was turning a 400 into a 200 and a 700 into a 500.
2016-01-27 22:17:28 -05:00
Lionel Landwerlin
67630cb374 inspector: Ensure clip is always shown 2016-01-27 22:17:28 -05:00
Lucas Baudin
7988bd8aea wayland: recursively search for the settings schema.
On some systems, the gtk settings are not used properly for wayland.
Indeed, g_settings_schema_source_get_default is used, and as the docs says it,
"all lookups performed against the default source should probably be done
recursively.".

https://bugzilla.gnome.org/show_bug.cgi?id=759409
2016-01-27 22:17:28 -05:00
Timm Bäder
809c27e5d8 Gestures: Add some nullable annotations 2016-01-27 22:17:28 -05:00
Timm Bäder
2b734bbbb5 GtkFlowBox: Add missing nullable annotation 2016-01-27 22:17:28 -05:00
Timm Bäder
9790fc0bce GtkFlowBox: Fix copy/paste mistake in docs 2016-01-27 22:17:28 -05:00
Matthias Clasen
2558ed9022 file chooser: Also apply the settings
I forgot that the settings object we're dealing with here
is in delay mode, so settings won't apply immediately.
2016-01-27 21:50:57 -05:00
Matthias Clasen
01238dd8ae file chooser: Store size more frequently
We were only storing the dialog size on unmap, but resetting to the
stored default value more often, e.g. on focus-out. This was causing
the dialog to 'jump back' to its remembered size after the user
manually resized it, leading to frustration and bug reports.

Instead, save the dialog size on every ::size-allocate of the toplevel.
To avoid needlessly spamming dconf, only write the new value if it
changed.
2016-01-27 21:50:46 -05:00
Erika
a311eb6468 Correct annotations for gtk_cell_layout_get_area
The function can return NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=759081
2016-01-27 21:50:10 -05:00
Kalev Lember
e3fb59f88c headerbar: Don't leak internal widgets
Make sure to clean up internal widgets in destroy, as these aren't
cleaned up when GtkContainer walks the childrens list in
gtk_container_destroy().

This also fixes a gedit crash as reported in
https://bugzilla.redhat.com/show_bug.cgi?id=1288669

https://bugzilla.gnome.org/show_bug.cgi?id=759132
2016-01-27 21:49:49 -05:00
Matthias Clasen
5c9c3ccbd0 entry completion: Reduce the timeout
Pop up the completion window after 100ms. The previous timeout
of 300ms was making completions feel slow.

https://bugzilla.gnome.org/show_bug.cgi?id=758929
2016-01-27 21:34:56 -05:00
Timm Bäder
ec1f393545 GtkEntry: nullable annotations 2016-01-27 21:29:51 -05:00
Timm Bäder
e0d74c64ef GtkTreeModel: Remove erroneous transfer annotation 2016-01-27 21:28:31 -05:00
Sebastien Bacher
ab3cec3701 GtkAppChooserWidget: wrap the label, use a standard icon
Let the label wrap if needed, that's required in some locales, use an
icon which is available in the theme

https://bugzilla.gnome.org/show_bug.cgi?id=758908
2016-01-27 21:26:58 -05:00
Balázs Meskó
7d6bdb325c Updated Hungarian translation 2016-01-26 15:08:13 +00:00
Ondrej Holy
d5aa2e9e39 file chooser: Allow saving even if executable attribute is not set
Commit 8e975b2 (Bug 753969) introduced check of parent accessibility.
Consequently it is not possible to save file if executable attribute
is not set, which might happen for some gvfs backends. Let's assume
that the folder is accessible even if the attribute is not set.

https://bugzilla.gnome.org/show_bug.cgi?id=760881
2016-01-20 12:02:04 +01:00
Руслан Ижбулатов
62b9c4f817 Ensure that the fstat fix is not applied on x86_64 2016-01-14 12:51:26 +00:00
Руслан Ижбулатов
5f2f4b14b5 W32: Ensure that correct statting function is used by iconcache
With Mingw-w64 fstat() can be an inline function that
calls _fstat32() or _fstat64(), depending on some macros.
And if LFS is enabled, fstat() is defined to turn into
_fstat32i64() or _fstat64(). And some/all of the above
might also be macros as well. Side-step all that mess
and excplicitly re-define fstat as _fstat32, which is
guaranteed to use a version of "stat" struct that
has 32-bit size and time fields, which is what we want.

https://bugzilla.gnome.org/show_bug.cgi?id=760615
2016-01-14 10:01:17 +00:00