Commit Graph

42397 Commits

Author SHA1 Message Date
Christian Kirbach
52b88b29fb Updated German translation 2015-11-11 18:16:53 +00:00
Dominique Leuenberger
d90e9e4058 placessidebar: do not crash if uris is NULL
On Drag'n'Drop actions across system boundaries (VM host to guest), the
happen to be null.

https://bugzilla.gnome.org/show_bug.cgi?id=757298
2015-10-29 17:33:34 +01:00
Carlos Garnacho
a4b2626ecb GtkMenuButton: explicitly protect against recursion
The visibility toggling happening on ::click() relied implicitly
on the popover animation, but breaks on disabled animations. The
recursion happening within gtk_toggle_button_set_active() (which
triggers ::clicked when changing state) makes this vfunc to run
again, inverting the visibility of the popover in result.

Fix this by explicitly checking about recursion, we want the
button to be toggled to the right state, but we don't want the
callback running again.

https://bugzilla.gnome.org/show_bug.cgi?id=752577
2015-10-23 19:54:58 +02:00
Kjartan Maraas
9092cc8851 Updated Norwegian bokmål translation. 2015-10-17 11:50:41 +02:00
Kjartan Maraas
76d4d1cfbb Updated Norwegian bokmål translation with fixes from Einar Ulvsløkk. 2015-10-17 11:19:14 +02:00
Jiri Grönroos
185a00b512 Updated Finnish translation 2015-10-05 16:48:22 +00:00
Hannie Dumoleyn
57858976c7 Updated Dutch translation properties 3.16 2015-10-05 11:55:25 +02:00
Hannie Dumoleyn
5cdffae939 Updated Dutch translation 3.16 2015-10-05 10:44:36 +02:00
Carlos Garnacho
c2589026ae widget: Make sure we only run controllers on realized widgets
The default event bubbling paths are prone to just running event controllers
even after the widget was potentially unrealized/destroyed in an event
handler callback, so bail out early if that's the case.

https://bugzilla.gnome.org/show_bug.cgi?id=755352
2015-09-21 16:45:28 +02:00
Carlos Garnacho
35a4fd0996 gesture: strengthen against destroyed windows
Bail out when we receive an event with an already destroyed window,
we'll hopefully get reset/cancelled afterwards on grab broken events.

https://bugzilla.gnome.org/show_bug.cgi?id=755352
2015-09-21 16:45:28 +02:00
Hajime Taira
930addf5a6 Updated Japanese translation 2015-09-20 17:44:05 +09:00
Matthias Clasen
4191592856 3.16.7 3.16.7 2015-09-17 20:45:22 -04:00
Matthias Clasen
f30322bd98 Plug another memory leak 2015-09-17 20:25:22 -04:00
Matthias Clasen
369ae4d9b1 Plug a memory leak 2015-09-17 20:25:13 -04:00
Matthias Clasen
67c49a5d46 Update the gtk3-demo man page
We have options now !
2015-09-17 20:16:08 -04:00
Matthias Clasen
b7d9cd8f4e gtk-demo:Add a --list option
This just shows the available examples and then exists.
2015-09-17 20:16:01 -04:00
Matthias Clasen
0676846783 gtk-demo: Make --autoquit a simple option
No real need to specify the amount of delay, just make this
a plain boolean.
2015-09-17 20:15:54 -04:00
Matthias Clasen
99f3d861d9 gtk-demo: Add a way to launch individual demos
Add a --run option which takes the name of an example and
launches it. Also add a --autoquit option which can be used
to quit after a given number of seconds.
2015-09-17 20:15:10 -04:00
Matthias Clasen
c733be4913 text view: Drop an unused variable 2015-09-17 20:14:01 -04:00
Matthias Clasen
6b9edc43af text view: Improve cursor hiding logic
Same as we did for the entry in the previous commit.

Previously, we just hid the cursor if a key event was adding text,
but not when you used backspace, or Ctrl-V. Rearrange things so that
we obscure the cursor whenever the buffer contents change while we
are handling key events.

https://bugzilla.gnome.org/show_bug.cgi?id=754535
2015-09-17 20:13:38 -04:00
Matthias Clasen
bf7fc2fc59 entry: Improve cursor hiding logic
Previously, we just hid the cursor if a key event was adding text,
but not when you used backspace, or Ctrl-V. Rearrange things so that
we obscure the cursor whenever the buffer contents change while we
are handling key events.

https://bugzilla.gnome.org/show_bug.cgi?id=754535
2015-09-17 20:13:31 -04:00
Matthias Clasen
52f896e373 Avoid some duplicate test names
GLib considers these an bug now.
2015-09-17 20:12:42 -04:00
Benjamin Otte
ae0469987d gtk-demo: Update listbox example with longer list
Add all 388 tweets of the @GTKtoolkit account. This shows the
performance behavior of the listbox (not good with that many rows) and
allows us to quickly notice when things get worse (or better).

And just so I have a place where I can dump how I generated this file:

First, I got Timm Bäder to download me the json for the twitter feed
into a file gtk.json, then I ran the jq tool on it like this:

jq ".[] | if .retweeted_status then .retweeted_status.user.name + \"|\"
+ .retweeted_status.user.screen_name else .user.name + \"|\" +
.user.screen_name end + \"|\" + .text" gtk.json | cat -n | sed
"s/\\s*\([0-9]*\)\t\"\(.*\)\"/\\1|\\2/" > messages.start

jq ".[] | .created_at" gtk.json | sed "s/\"\(.*\)\"/\1/" | while read
in; do date +%s -d "$in"; done > dates

jq ".[] | \"0|\" + if .retweeted_status then .user.screen_name else \"\"
end + \"|\" + (.favorite_count | tostring) + \"|\" + (.retweet_count |
tostring)" gtk.json | sed "s/\"\(.*\)\"/\\1/" > messages.end

paste -d\| messages.start dates messages.end > messages.txt

This whole machinery of going through 3 intermediate files was only
necessary to onvert the dates from ISO format to unix timestamps,
otherwise this could have been a single line.
2015-09-17 20:08:35 -04:00
Benjamin Otte
7fc170a879 gtk-demo: Order tweets newest first in listbox example 2015-09-17 20:08:28 -04:00
Christian Hergert
119fc5242e treeview: check for pixel cache before setting property
Code exists in the wild that calls this function after the widget has
been destroyed (and the pixel cache released). Simply check that the
pixel cache exists to preserve the existing state.
2015-09-17 20:07:25 -04:00
Matthias Clasen
cf2a41cb52 multipress: Only emit preedit signals if needed
When clearing the compose buffer, don't emit preedit-changed
unconditionally. This triggers a recursion which leads to
a crash.

https://bugzilla.gnome.org/show_bug.cgi?id=753644
2015-09-17 20:06:25 -04:00
Paolo Borelli
47964f360f print operation: let subclasses use a custom paginate
GtkPrintOperation was emitting paginate only if a signal was
connected, this meant that subclassing and overriding the
paginate vfunc lead to the unexpected result that paginate did
not run.
Instead we always emit the signal and use a custom accumulator:
if there is a signal we just run that and avoid the default
handler, otherwise we run the default handler which can be the
one by the subclass or the default handler that just skips
pagination.

Patch by Yevgen Muntyan, fixes #345345
2015-09-17 20:06:15 -04:00
Matthias Clasen
7b80655821 Add a note to gdk_screen_get_width/height_mm
The values returned by these functions are not very well defined,
recommend to use the monitor dimensions instead.
2015-09-17 20:05:17 -04:00
Carlos Garnacho
30a62f1929 wayland: calculate screen physical size
A simple calculation is done so far (assuming monitor areas never overlap)
so gdk_screen_get_width/height_mm return meaningful values.

https://bugzilla.gnome.org/show_bug.cgi?id=753621
2015-09-17 20:05:09 -04:00
Christian Dywan
0fb13e3650 entry completion: Clarify index in documentation
https://bugzilla.gnome.org/show_bug.cgi?id=579466
2015-09-17 20:01:50 -04:00
Michael Weghorn
6db121da89 Improve printer distinction for option retrieval
In order to retrieve the user options for a printer, the respective
printer name is used.
This fixes the comparison of printer names to avoid that the options of
another printer are accidently read whose name starts with the same
letters, but is longer (e.g. "myprinterlongername" instead of
"myprinter").

This fixes Bug 753628.
2015-09-11 15:21:44 +02:00
Lapo Calamandrei
ff9ee56ec0 Adwaita: fix documents and the like rubberband 2015-09-09 18:17:03 +02:00
Lapo Calamandrei
40622c6924 Adwaita: set -GtkRange-trough-border: 0 for scrollbars
which fixes firefox scrollbar not being fittsy when maximixed.
2015-09-08 22:21:18 +02:00
Christian Kirbach
b41e24b330 Updated German translation 2015-09-02 21:04:40 +00:00
Balázs Úr
64fb8deb1f Updated Hungarian translation 2015-08-31 17:00:10 +00:00
Christian Kirbach
9898e81d43 Updated German translation 2015-08-27 21:59:45 +00:00
Anders Jonsson
669699e4cf Updated Swedish translation 2015-08-16 19:16:42 +00:00
Andika Triwidada
50eb8d9b42 Updated Indonesian translation 2015-08-03 05:35:15 +00:00
Andika Triwidada
72f35cc361 Updated Indonesian translation 2015-08-03 05:13:47 +00:00
Aurimas Černius
ed78fc391a Updated Lithuanian properties 2015-08-02 17:53:12 +03:00
Pedro Albuquerque
1c66c4b385 Updated Portuguese translation 2015-07-28 08:10:45 +00:00
Pedro Albuquerque
6e95d4cb17 Updated Portuguese translation 2015-07-28 08:07:36 +00:00
Pedro Albuquerque
1b67f3e399 Updated Portuguese translation 2015-07-28 07:15:17 +00:00
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