Commit Graph

47354 Commits

Author SHA1 Message Date
Carlos Soriano
24c25d44a5 gtkplacessidebar: fix signal marshal
We were using __VOID for the SHOW_OTHER_LOCATION signal that
uses flags named SHOR_OTHER_LOCATION_WITH_FLAGS.
However, if a signal uses flags the marshal needs to use __FLAGS.

This patch addresses this using VOID__FLAGS as the marshaler parameter.

Thanks to Jan Steffens for pointing this out.

https://bugzilla.gnome.org/show_bug.cgi?id=770550
2016-08-29 15:39:20 +02:00
Lapo Calamandrei
43da663c9e Adwaita: increase border radius on button.circular...
...to allow huge circular buttons.
See https://bugzilla.gnome.org/show_bug.cgi?id=770166
2016-08-22 14:19:09 +02:00
Rafael Fontenelle
e2453dc7cd Updated Brazilian Portuguese translation 2016-08-22 04:09:13 +00:00
Мирослав Николић
9ce672a289 Updated Serbian translation 2016-08-20 20:43:20 +02:00
Мирослав Николић
b8aa684337 Updated Serbian translation 2016-08-20 20:43:00 +02:00
Matthias Clasen
53e92dcab2 3.20.9 3.20.9 2016-08-17 11:06:13 -04:00
Matthias Clasen
c8ef3b1a60 Really fix underlinkage for shm_open
Reported in https://bugzilla.gnome.org/show_bug.cgi?id=769603
2016-08-17 09:57:00 -04:00
Andika Triwidada
88c463a58f Updated Indonesian translation 2016-08-15 06:40:21 +00:00
Andika Triwidada
a5b3a3ec0c Updated Indonesian translation 2016-08-15 06:24:48 +00:00
Aurimas Černius
666e604949 Updated Lithuanian translation 2016-08-14 21:07:12 +03:00
Anders Jonsson
113684bf8e Updated Swedish translation 2016-08-13 10:24:30 +00:00
Anders Jonsson
4981f9d04b Updated Swedish translation 2016-08-13 10:21:43 +00:00
Ignacio Casal Quinteiro
67b294ef5d Use g_snprintf instead of snprintf.
snprintf is not compatible with msvc.
2016-08-10 12:29:01 +02:00
Marek Černocký
5922bf061a Updated Czech translation 2016-08-09 11:59:39 +02:00
Marek Černocký
96cf4afed1 Updated Czech translation 2016-08-09 11:56:51 +02:00
Matthias Clasen
92f2fd069d wayland: Link against librt
This is required for shm_open.

https://bugzilla.gnome.org/show_bug.cgi?id=769603
2016-08-07 16:13:54 -04:00
Matthias Clasen
9834ddfb2e headerbar: Fix size allocation
The GtkHeaderBar gadget implementation was subtly broken: it called
gtk_widget_set_allocation both in gtk_header_bar_size_allocate (with
the actual allocation) and in gtk_header_bar_allocate_contents (with
the content allocation of the main gadget). Dropping the second call
fixes the render node conversion for GtkHeaderBar.
2016-08-07 16:13:28 -04:00
Rafael Fontenelle
d69ab7f70a Updated Brazilian Portuguese translation 2016-08-07 13:12:46 +00:00
Tiago Santos
5c44df5ec8 Updated Portuguese translation 2016-08-05 10:58:25 +00:00
Tiago Santos
42b8879e6b Updated Portuguese translation 2016-08-05 10:56:27 +00:00
Colomban Wendling
10c3a24836 GtkMenuButton: use :toggled instead of :clicked
:toggled is triggered on :clicked, so using :toggled lead to the menu
to be popped up at the same time, while allowing to use the toggle state
and avoiding any need to a hack to prevent recursion, which somehow
wasn't enough for double emission of GtkMenuToolButton:show-popup.

https://bugzilla.gnome.org/show_bug.cgi?id=769287
2016-08-04 23:43:45 +02:00
Balázs Úr
13a0402e42 Updated Hungarian translation 2016-08-04 21:05:52 +00:00
Balázs Úr
92ade378fb Updated Hungarian translation 2016-08-04 21:02:56 +00:00
Piotr Drąg
df2882ebbf Updated Polish translation 2016-08-04 21:09:45 +02:00
Bernd Homuth
070c4f7486 Updated German translation 2016-08-04 18:38:09 +00:00
Bernd Homuth
d41543c51f Updated German translation 2016-08-04 18:35:14 +00:00
Matthias Clasen
6cc9f1dba1 3.20.8 3.20.8 2016-08-04 12:52:15 -04:00
Matthias Clasen
de9ba70e58 Revert "Improve external drives detection"
This reverts commit a01ee5a7b0.

I didn't mean to bump the GLib requirement in the stable branch.
2016-08-04 12:49:28 -04:00
Matthias Clasen
84eff45a17 3.20.7 3.20.7 2016-08-04 10:34:08 -04:00
Emmanuele Bassi
9ff9c4932f Update the docs for gtk_window_get_position()
Drop mentions of GnomeClient, and add mentions of different windowing
systems instead of just assuming that we're using X11.
2016-08-04 10:34:08 -04:00
Sébastien Wilmet
b137afe6ba docs: GtkWidget::style-updated vs GtkStyleContext::changed
Explain the difference between those two signals.

Add "Since: 3.0" for GtkStyleContext::changed, since that signal has
been added in commit 9f84e101bf, present
since 2.91.6.

https://bugzilla.gnome.org/show_bug.cgi?id=769047
2016-08-04 10:34:08 -04:00
Sébastien Wilmet
5505bb2f2f docs: add missing info for gtk_widget_get_style_context()
It is important to know whether the returned object can or cannot
change, for a certain widget. For example to connect to the
GtkStyleContext::changed signal.

https://bugzilla.gnome.org/show_bug.cgi?id=769047
2016-08-04 10:34:08 -04:00
Cosimo Cecchi
e43801d295 reftests: override GSETTINGS_SCHEMA_DIR when running tests
The reftest depends on a schema we install ourselves. Instruct GIO to
look in the build directory to avoid a cyclic dep.

https://bugzilla.gnome.org/show_bug.cgi?id=768930
2016-08-04 10:34:08 -04:00
Matthias Clasen
d92d9171e2 Remove a few mentions of GtkVBox in the docs
We only have GtkBox nowadays.
2016-08-04 10:34:07 -04:00
Emmanuele Bassi
6afe00fb46 docs: Attempt a better explanation for gtk_widget_destroy()
Clarify the nature of this function, and the expectations after it's
been called.
2016-08-04 10:34:07 -04:00
Razvan Chitu
1957e71374 placesview: fix open action for locations without a mount or volume
In the "Other Locations" view, locations can be opened from the context menu
based on their mount or volume. However, some locations, like "Computer", do not
have either of those so they cannot be opened from the context menu. In order to
fix this, the file associated with the location can be used as well.

https://bugzilla.gnome.org/show_bug.cgi?id=768657
2016-08-04 10:34:07 -04:00
Emmanuele Bassi
ae5fe1aa21 docs: Improve gdk_window_create_similar_image_surface()
The sizes passed are in device pixels and do not take into account the
scaling factor of the window itself. We cannot change the semantics of
the function, so let's at least add a warning for this trap door.
2016-08-04 10:34:07 -04:00
Matthias Clasen
6304913795 css parser: Improve an error message
Say what property we are dealing with when we complain about the
value.
2016-08-04 10:34:07 -04:00
Matthias Clasen
3fde17b0b6 Fix example Makefiles
Put OBJS before LIBS on the commandline to make things
work better.

https://bugzilla.gnome.org/show_bug.cgi?id=768142
2016-08-04 10:34:07 -04:00
Matthias Clasen
c6f9c45033 print dialog: Apply initial capabilities
I was struggling to understand why calling
gtk_print_unix_dialog_set_manual_capabilities (...,0)
was not having the expected effect of hiding the preview
button. The initial capabilities were not applied at all.
2016-08-04 10:34:06 -04:00
Carlos Garnacho
974b755b4d wayland: Separate selection buffers and other per-selection atom data
This has most notably impact in selection buffers, because those were
shared across all selection atoms. This turned out wrong on 2 situations:
- Because the selection atom was set at SelectionBuffer creation time, the
  GDK_SELECTION_NOTIFY events generated will have unexpected info if the
  buffer is attempted to be reused for another selection.
- Anytime different selections imply different stored content for the same
  target.

This is better separated into per-selection buffers, so it's not possible
to get collisions if a same target is used across different selections.

https://bugzilla.gnome.org/show_bug.cgi?id=768177
2016-08-04 10:34:06 -04:00
Carlos Garnacho
694c1661b8 wayland: Implement gdk_utf8_to_string_target
The sanitize_utf8() function has been copied from X11 so both
backends behave the same. This allows interaction with older clients
(mainly through Xwayland, and the STRING selection target) that
request non-utf8 text.

https://bugzilla.gnome.org/show_bug.cgi?id=768082
2016-08-04 10:34:06 -04:00
Ray Strode
02a5fe87da headerbar: don't allocate both label and custom title
It's only possible to have a label or a custom title, not both.
The size allocate code confusingly treats them as independent.

That is confusing, because, as the code is written, it makes it
look like the space for the custom title isn't getting accounted
for.

This commit else-ifies some parts of the size allocate code for
clarity.
2016-08-04 10:34:06 -04:00
Carlos Garnacho
ba30d1e458 GtkPopover: Honor widget margins when calculating tail position
If there are widget margins set, the whole popover will be displaced.
However the calculation of the tail position doesn't have this into
account, ending up with the tail being detached from the popover if
the margin grew too big.

We should not render the arrows invariably next to the GdkWindow edge,
but optionally displaced inside it depending on the widget margins.
Fixes the gtk3-demo "Popovers" demo case, whose GtkEntry popovers set
widget margins for some reason.

https://bugzilla.gnome.org/show_bug.cgi?id=767851
2016-08-04 10:34:06 -04:00
Christian Hergert
74a8099261 listbox: short-circuit if no sort function is set
do_sort will crash if sort_func is not defined. Instead of adding a check
there in the hot path, just check for sort_func before invalidating the
sort of the underlying GSequence.
2016-08-04 10:34:06 -04:00
Olivier Fourdan
c906dbc9f1 wayland: do not set PRIMARY selection if focus is lost
If keyboard focus is (already) lost, do not advertise PRIMARY selection.

https://bugzilla.gnome.org/show_bug.cgi?id=767848
2016-08-04 10:34:05 -04:00
Carlos Garnacho
86ece29797 treeview: Ensure the treeview has the implicit grab before grabbing focus
The cellrenderer signals might be taking the grab somewhere else, at which
point it's dubious we should attempt to take the keyboard focus into the
treeview.

This concretely breaks popovers triggered from cellrenderer signals on
button press, because the treeview will attempt to grab focus
inconditionally then.

https://bugzilla.gnome.org/show_bug.cgi?id=767468
2016-08-04 10:34:05 -04:00
Matthew Leeds
90d3c9b31a GtkActionHelper: Change a message to a warning
It's almost certainly a programmer error if an action isn't
activatable because its target and parameter type don't match.
This commit changes the existing g_message to a g_warning.

https://bugzilla.gnome.org/show_bug.cgi?id=767705
2016-08-04 10:34:05 -04:00
Matthias Clasen
8fd61c4f5a shortcuts window: Fix handling of significant xml chars
We are using markup in the labels, so we need to escape things
like < and >.

https://bugzilla.gnome.org/show_bug.cgi?id=767795
2016-08-04 10:34:05 -04:00
Ray Strode
0969dc59ef wayland: fall back to shm_open if memfd unavailable
Debian stable currently ships with a 3.16 kernel, so
it doesn't have memfd available.

This commit adds shm_open fall back code for that case
(for now).

https://bugzilla.gnome.org/show_bug.cgi?id=766341
2016-08-04 10:34:05 -04:00