Commit Graph

47332 Commits

Author SHA1 Message Date
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
Ray Strode
30e5ddfb63 wayland: fix error handling for memfd_create
We currently use syscall() directly to invoke memfd_create,
since the function isn't available in libc headers yet.

The code, though, mishandles how errors are passed from syscall().
It assumes syscall returns the error code directly (but negative),
when in fact, syscall() uses errno.

Also, the code fails to retry on EINTR.

This commit moves the handling of memfd create to a helper function,
and changes the code to use errno and handle EINTR.

https://bugzilla.gnome.org/show_bug.cgi?id=766341
2016-08-04 10:34:05 -04:00
Matthias Clasen
5f80715ffb Update GtkLabel::angle docs
We can have wrapped or ellipsized labels at an angle nowadays.
Still no selections though.
2016-08-04 10:34:04 -04:00
Matthias Clasen
8d34a176c7 scale, spinbutton: Avoid -0.0
This is a very longstanding bug; time to finally put it to rest.

https://bugzilla.gnome.org/show_bug.cgi?id=118959
2016-08-04 10:34:04 -04:00
Carlos Garnacho
310cd19dc8 searchenginetracker: Fix prefix searches
With the FTS5 query syntax, when using quotes to delimit the search phrase
the '*' token must happen after the quote, or will otherwise be considered
a character to match, go through the tokenizer, and end up ignored in
result.
2016-08-04 10:34:04 -04:00
Matthias Clasen
3b6eb70539 treeview: fix an off-by-one error
gtk_tree_view_get_path_at_pos() mistakenly identifies the first
pixel of all but the first column in a tree view as belonging to
the previous column.

https://bugzilla.gnome.org/show_bug.cgi?id=708148
2016-08-04 10:34:04 -04:00
Matthias Clasen
b89ba25631 Make gtk_tooltip_trigger_tooltip_query work again
This was broken ever since we started looking at the
source device of the event.

https://bugzilla.gnome.org/show_bug.cgi?id=674215
2016-08-04 10:34:04 -04:00
Matthias Clasen
6ca325f6ef inspector: Ellipsize accessible description.
This string can be long, and we don't want to break the ui
2016-08-04 09:45:42 -04:00
Matthias Clasen
1790e7af77 viewport: Free gadgets in finalize
This is the right place for this.
2016-08-04 09:45:35 -04:00
Matthias Clasen
9de63a147c scrolled window: Free gestures and gadgets in finalize
This is the right place for this.
2016-08-04 09:45:28 -04:00
Matthias Clasen
88cd815efc range: Free gadgets in finalize
This is the right place for this.
2016-08-04 09:45:20 -04:00
Matthias Clasen
1a6129d815 notebook: Free gadgets in finalize
This is the right place for this.
2016-08-04 09:45:13 -04:00
Matthias Clasen
76f7e57fb6 menu: Free gadgets in finalize
This is the right place to do this.
2016-08-04 09:45:07 -04:00
Matthias Clasen
4763524052 button: Free gadgets and gestures in finalize
This is the right place to free them.
2016-08-04 09:45:01 -04:00
Timm Bäder
c63dad2c53 entry: Fix undershoot position wrt entry icons
Draw them inside of the icons, which is where the text scrolls.
2016-08-04 09:43:37 -04:00
Matthias Clasen
bf2e267526 Teach gtk-builder-tool to leave GtkDialog::border-width alone
This is one of the properties that need to be explicitly set.
2016-08-04 09:40:08 -04:00
Руслан Ижбулатов
9397158fbc GtkFileChooser: don't override already opened folder
When filechooer is re-used (instead of being created and destroyed
every time it's needed), it might happen that the directory the
application wishes to initially show is the same directory that
was shown last time the filechooser was used. In that case, make sure
filechooser knows that it does not need to do its default "select $pwd
or $home" routine.

https://bugzilla.gnome.org/show_bug.cgi?id=766122
2016-08-04 09:39:57 -04:00
Matthias Clasen
f7e57b5eeb Update migration guide a bit
Resize grips are no more.
2016-08-04 09:39:43 -04:00
Matthias Clasen
98c74b6e5c Fix a duplicate word in the docs 2016-08-04 09:39:32 -04:00
Benjamin Otte
c51e97c15e window: Unfreeze window on unmap
Make sure to keep parity with the number of times we froze the window
when we unmap it.
Otherwise it will permanently stay frozen after being remapped.

https://bugzilla.gnome.org/show_bug.cgi?id=766643
https://bugzilla.mozilla.org/show_bug.cgi?id=1225044
2016-08-04 09:39:22 -04:00
Bastian Ilsø
86b8c796cf gtktextview: document how to get line space
adds a paragraph to gtk_text_view_get_pixels_below_lines(),
describing how it can be used together with
gtk_text_view_get_pixels_above_lines() to get the total
amount of line spacing between two paragraphs.

https://bugzilla.gnome.org/show_bug.cgi?id=747206
2016-08-04 09:39:15 -04:00
Matthias Clasen
2669c207bd Add a deprecation note
Mark GtkWidget:style property as deprecated in the docs.
2016-08-04 09:38:01 -04:00
Emmanuele Bassi
6b2a984892 gdk: Provide safe fallback for creating GL contexts
If the backend does not override GdkWindowClass.create_gl_context()
then we should provide a fallback that gives an error, instead of
crashing.

https://bugzilla.gnome.org/show_bug.cgi?id=766782
2016-08-04 09:37:43 -04:00