Commit Graph

44151 Commits

Author SHA1 Message Date
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
Руслан Ижбулатов
3c0d60702e GDK W32: Refactor restacking functions a bit 2015-12-04 21:09:20 -05:00
Jonas Ådahl
db3c824c5c wayland: Set a null cursor surface when cursor buffer is null
If the buffer of a cursor is NULL, for example if its an empty cursor,
just set the cursor surface to NULL as well. Not doing this we'll use
uninitialized hotspot coordinates, dimensions and scales.

https://bugzilla.gnome.org/show_bug.cgi?id=758025
2015-12-04 21:09:20 -05:00
Matthias Clasen
14119f985d Work around g_test_dbus annoyance
Without iterating a mainloop for a bit, g_test_dbus_down() will
give us an error.
2015-12-04 21:09:20 -05:00
Phillip Wood
863abe697e Fix character entities
These are not supposed to be supported by gtk-doc¹

¹https://bugzilla.gnome.org/show_bug.cgi?id=758137

https://bugzilla.gnome.org/show_bug.cgi?id=758175
2015-12-04 21:09:20 -05:00
Emmanuele Bassi
53e734f2b3 Do not use the GPL v3 blurb for LGPL v2.1 files
GTK+ is licensed under the terms of the GNU LGPL v2.1+.
2015-12-04 21:09:20 -05:00
Emmanuele Bassi
c8153e7f83 Do not use the LGPL v3 blurb for LGPL v2.1 files
GTK+ is released under the terms of the GNU LGPL v2.1+.
2015-12-04 21:09:20 -05:00
Emmanuele Bassi
43f8719a53 Fix the license version in GtkTrashMonitor
There is no GNU Lesser General Public License version 2; it's either GNU
Library General Public License version 2, or GNU Lesser General Public
License version 2.1.
2015-12-04 21:09:20 -05:00
Emmanuele Bassi
10729e4589 Fix license version for GtkFileChooserWidget private header
Since it's using Lesser GPL, use version 2.1; there is no Lesser GPL v2,
as it was called 'Library GPL' prior to v2.1.
2015-12-04 21:09:20 -05:00
Emmanuele Bassi
9cdb0bb8b1 Fix the licensing blurb of GtkBookmarksManager
Copy-pasta from GPL instead of LGPL.

Also, there is no GNU Lesser General Public License version 2; either
it's the GNU Library General Public License version 2, or it's the GNU
Lesser General Public License version 2.1.
2015-12-04 21:09:20 -05:00
Emmanuele Bassi
d368b396d4 Fix the licensing blurb in GtkPlacesSidebar
The code is released under the terms of the LGPL v2.1+, as is the rest
of the GTK+ code.
2015-12-04 21:09:20 -05:00
Matthias Clasen
438f2f1ba5 Fix license header
I didn't meant to make this different from any other file
in GTK+ when I added it.
2015-12-04 21:09:20 -05:00
Matthias Clasen
f8b24884b5 Document GDK_TOUCHPAD_GESTURE_MASK 2015-12-04 21:09:20 -05:00
Matthias Clasen
049eb3f769 popover: Avoid a crash when no relative-to widget is set
This was showing up in glade, which creates freestanding
popovers.
2015-12-04 21:09:20 -05:00
Rui Matos
8de0d15d8a wayland: Translate virtual modifiers too
Wayland allows us to receive virtual modifiers too so we can just use
them directly if the compositor does send them.

https://bugzilla.gnome.org/show_bug.cgi?id=748904
2015-12-04 21:09:20 -05:00
Carlos Garnacho
a0c2ae4709 wayland: Invert drop_finished/button release call order
If we "release" the button first, the drag will be eventually cancelled,
we must first signal GDK_DROP_FINISHED, and then release the button so
the success status prevails.
2015-12-03 12:37:27 +01:00
Carlos Garnacho
c52c4f94d5 wayland: Store requested target on GdkWaylandSelection
It doesn't make a lot of sense to have this stored as data offer data,
rather together with the source_targets array, which is what we're
poking here in the end.

https://bugzilla.gnome.org/show_bug.cgi?id=758713
2015-12-03 12:37:27 +01:00
Carlos Garnacho
9db511f677 wayland: Refactor selection ownership
Dissociate ownership from our maintenance of wl_data_source objects.
The only place where ownership must be updated together is
data_source.cancelled, for the other places GDK should take care of
setting up the right ownership, even if at a different order than
we'd expect here.

This fixes GTK+ apps on wayland being locally confused about the
current selection ownership. Because gtk_selection_add_targets()
results in a wl_data_source being created, and ownership being
updated right away, early callers of this will change the ownership
even if the widget it's being called on didn't explicitly request
the selection ownership yet.

https://bugzilla.gnome.org/show_bug.cgi?id=758660
2015-11-30 20:39:07 +01:00
Piotr Drąg
21b0a3c8fe Updated Polish translation 2015-11-27 23:30:07 +01:00
Carlos Garnacho
8662985ebb GtkWindow: Reset gestures after triggering right click titlebar action
Just like it happens for window dragging, we're likely to not see the
matching button release for this event, so we must reset the controller
manually here.

https://bugzilla.gnome.org/show_bug.cgi?id=758661
2015-11-25 22:01:27 +01:00