Commit Graph

44170 Commits

Author SHA1 Message Date
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
Lapo Calamandrei
60d155ddcb Adwaita: dim insensitive GtkColorButton GtkColorSwatch
see https://bugzilla.gnome.org/show_bug.cgi?id=760169
2016-01-07 19:07:07 +01:00
Matthias Clasen
81a287478a wayland: Only do cursor name fallback for standard names
Always returning a left_ptr if we can't find anything better
broke firefox application-specific fallback for missing cursors.
Keep that working by only doing the fallback for the CSS cursor
names, not for things like hashes.

https://bugzilla.gnome.org/show_bug.cgi?id=760141
2016-01-06 22:26:48 -05:00
Matthias Clasen
affd6e7073 x11: Only do cursor name fallback for standard names
Always returning a left_ptr if we can't find anything better
broke firefox application-specific fallback for missing cursors.
Keep that working by only doing the fallback for the CSS cursor
names, not for things like hashes.

https://bugzilla.gnome.org/show_bug.cgi?id=760141
2016-01-06 22:26:39 -05:00
Matthias Clasen
0395cf917b Add context-menu to the list of standard cursor names
Adwaita doesn't have this one, but we are falling to the
default cursor anyway.
2016-01-06 22:26:31 -05:00
Andika Triwidada
45b3c553a9 Updated Indonesian translation 2016-01-02 12:27:16 +00:00
Andika Triwidada
1aa5f92784 Updated Indonesian translation 2016-01-02 12:22:34 +00:00
Rafael Fontenelle
e96c689aa1 Updated Brazilian Portuguese translation 2016-01-02 06:48:23 +00:00
Marek Černocký
75bd5a313e Updated Czech translation 2015-12-25 10:50:10 +01:00
Paolo Borelli
f74c55fb51 Win32: call dnd exit when finalizing the display
Since we init dnd when opening the display, call the corresponding
exit function (which is unused at the moment) when finalizing the
display.
2015-12-17 17:19:14 +01:00
Paolo Borelli
c9f370a13f Win32: move CoInitialize to dnd init
Functions requiring CoInitialize are called just in two places:
 - the filechooser thread which calls its own CoInitializeEx
 - the dnd code

Moving CoInitialize in the dnd specific init is cleaner and
we can pair it with the corresponding CoUninitialize since
CoUninitialize should be called as many times as CoInitialize.
Note that it is ok to call this function multiple times, so it
will not break if another codepath will need it in the future.

The patch also replaces the deprecated CoInitialize with the
equivalent call to CoInitializeEx (already used in the filechooser).
2015-12-17 17:19:04 +01:00
Lars Uebernickel
2cbc2972ea gdk_pixbuf_get_from_surface: restore old behavior
A previous commit changed this function to return a pixbuf that is
larger than the passed (width, height) when the surface has a device
scale > 1. It's easy enough to take care of a scaled surface before
calling this function.

Revert to the old behaviour, but change gdk_pixbuf_get_from_window() to
return a scaled version when the underlying surface is scaled. We need
this because there's no other way to get to the unscaled window
contents.

https://bugzilla.gnome.org/show_bug.cgi?id=757147
2015-12-16 13:04:07 +01:00
Chun-wei Fan
abac82a83c MSVC builds: Build more tools in gtk/
Build the gtk-update-icon-cache, gtk-builder-tool and gtk-query-settings
tools and run gtk-update-icon-cache as part of the post-build
"installation" process.

Pointed out (and reminded) by Paolo Borelli in bug 759436 that we should
build, "install" and run gtk-update-icon-cache in the MSVC builds as well.
2015-12-15 15:45:01 +08:00
Aurimas Černius
9e7e9817c9 Updated Lithuanian translation 2015-12-13 21:31:52 +02:00
Lapo Calamandrei
66772d30d1 Adwaita: revert menu color change on the light variant
...and make the change more subtle on the dark one.
2015-12-11 20:19:27 +01:00
Anders Jonsson
ef1c911306 Updated Swedish translation 2015-12-09 21:51:22 +00:00
Lapo Calamandrei
6c17438492 Adwaita: make menu background color the same as popovers
fixes https://bugzilla.gnome.org/show_bug.cgi?id=759260
2015-12-09 19:03:22 +01:00
Khaled Hosny
df4472f64a Update Arabic translation 2015-12-08 10:37:51 +04:00
Adam Reichold
09727d7a62 Fix method to update menu sensitivity of combo box
After removal of the selectable header and separator from the combo box,
the method to update the menu sensitivity must be changed as it assumes
at least two items within each sub menu and contains special handling
for the separator. Removing this fixes bug #759079.
2015-12-07 15:08:50 -05:00
Carlos Garnacho
7859628b22 GtkNotebook: Use gdouble in coordinate calculations
Otherwise rounding errors fool the "tab under coordinates" checks on
crossing events, which will be triggered close enough to the window
rectangle if the pointer moves slowly enough.

With this, the tab_prelight() function correctly figures out we've
moved the pointer outside the tab area when called in
gtk_notebook_leave_notify().

https://bugzilla.gnome.org/show_bug.cgi?id=759091
2015-12-07 17:42:27 +01:00
Piotr Drąg
77149833e9 Updated Polish translation 2015-12-05 15:28:17 +01:00
Wolfgang Stöggl
3fb435666e Updated German translation 2015-12-05 08:43:12 +00:00
Pedro Albuquerque
3971b14779 Updated Portuguese translation 2015-12-05 07:11:29 +00:00
Matthias Clasen
b79b4e95a7 3.18.6 3.18.6 2015-12-04 21:09:20 -05:00
Christian Hergert
eefbb8aee4 filechooserbutton: add some spacing between icon and text
These were a bit crammed, which doesn't match well with spacing used in
various other parts of gtk.
2015-12-04 21:09:20 -05:00
Timm Bäder
bdfa6ebc2b Add some more missing nullable annotations 2015-12-04 21:09:20 -05:00
Timm Bäder
895c8db5da GtkWidget: Add some missing nullable annotations 2015-12-04 21:09:20 -05:00
Matthias Clasen
8b261439d4 testentryicons: Use an existing icon name
dialog-info is not an existing icon.
2015-12-04 21:09:20 -05:00
Sébastien Wilmet
b325d0a98a textiter: fix bug in case insensitive backward search
'win.lines' contains the same content as the GtkTextBuffer, so to find
@match_start, forward_chars_with_skipping() is called with
skip_decomp=FALSE (the last parameter). So far so good.

On the other hand, the content 'lines' (the needle split in lines) is
casefolded and normalized for a case insensitive search. So,
forward_chars_with_skipping(..., skip_decomp=TRUE) must be called only
for the portion of text containing the needle.

Since 'start_tmp' contains the location at the start of the match, we
can simply begin at that location to find the end of the match.

Unit tests are added.

https://bugzilla.gnome.org/show_bug.cgi?id=758698
2015-12-04 21:09:20 -05:00
Timm Bäder
0682094e81 icon-browser: Stop using GtkMisc properties
Instead of xpad/ypad of 4 for every widget, just increase the
row-spacing and column-spacing by 8.

https://bugzilla.gnome.org/show_bug.cgi?id=758790
2015-12-04 21:09:20 -05:00
Timm Bäder
462240b9fc icon-browser: Use proper "times" character
https://bugzilla.gnome.org/show_bug.cgi?id=758790
2015-12-04 21:09:20 -05:00
Timm Bäder
6790837f47 icon-browser: baseline-align the icon size labels
https://bugzilla.gnome.org/show_bug.cgi?id=758790
2015-12-04 21:09:20 -05:00
Emmanuele Bassi
55f9dd9907 scalebutton: Annotate the return type
Instead of just listing the return type of get_plus_button() and
get_minus_button() in the documentation, we can use the (type)
annotation to ensure that the introspection data reflects the actual
type of the returned widget.
2015-12-04 21:09:20 -05:00
Timm Bäder
c8c2e4e110 GtkScaleButton: _get_(plus|minus)_button returns a GtkButton
https://bugzilla.gnome.org/show_bug.cgi?id=539944
2015-12-04 21:09:20 -05:00
Руслан Ижбулатов
448e72d9ff GDK W32: Add a comment for clarity
This is a copy of a similar comment in another place, which explains
why WS_EX_TRANSPARENT windows get a special treatment.

https://bugzilla.gnome.org/show_bug.cgi?id=758484
2015-12-04 21:09:20 -05:00
Руслан Ижбулатов
19c39742c7 GDK W32: Clarify the use of the second argument to SetWindowPos()
https://bugzilla.gnome.org/show_bug.cgi?id=758484
2015-12-04 21:09:20 -05:00
Руслан Ижбулатов
0b5d6138c7 GDK W32: Don't use SetWindowLong() to set/unset WS_EX_TOPMOST
While searching for the cause of bug 746745 it was discovered that one could
not set WS_EX_TOPMOST extended window style with SetWindowLong(),
but must use SetWindowPos() for that purpose.

This was never a problem most likely because it is highly unlikely for windows
to acquire/lose WS_EX_TOPMOST after they are created, by means other
than SetWindowPos() (which GTK does use to raise/lower windows and
set/remove keep_above), and because trying to set/unset WS_EX_TOPMOST with
SetWindowLong() results in WS_EX_TOPMOST merely not being set/unset (that is,
other styles are still set/unset within the same call and no error is
signalled).

https://bugzilla.gnome.org/show_bug.cgi?id=758483
2015-12-04 21:09:20 -05:00
Matthias Clasen
74228e0ead places view: Fix up docs 2015-12-04 21:09:20 -05:00
Matthias Clasen
cad27e76dd Tweak the gtk-font-name setting docs
Clarify that only parts of the font name are used.

https://bugzilla.gnome.org/show_bug.cgi?id=758367
2015-12-04 21:09:20 -05:00
Руслан Ижбулатов
e981730fc0 GDK W32: Only restack windows with matching always-on-top status
This prevents normal application windows (and other kinds of windows)
from being moved up in Z-order to be above windows that have the
always-on-top bit set. Doing so would make the previously-normal windows
in question also always-on-top implicitly.
Windows that are already always-on-top will be restacked on top of other
always-on-top windows too.

https://bugzilla.gnome.org/show_bug.cgi?id=746745
2015-12-04 21:09:20 -05:00