Timm Bäder [Sat, 17 Mar 2018 12:14:25 +0000 (13:14 +0100)]
widget: Only print allocation warnings with --enable-debug
i.e. if G_ENABLE_CONSISTENCY_CHECKS is defined. This makes sense,
considering that this warning is about consistency of internal widget
state.
Daniel Boles [Fri, 16 Mar 2018 22:11:58 +0000 (22:11 +0000)]
Notebook: Don’t show raw underline/markup in popup
If @menu_label == NULL, we create a default page->menu_label. This took
@tab_label.get_label() and passed that to page->menu_label.set_text().
This is wrong because we set the plain text of the menu_label from the
rich text of @tab_label. So, if @tab_label used mnemonics or markup, our
menu_label got the raw underline or markup tags shown in it as raw text.
As we call set_text() on the menu Label, the fix is to be symmetric: use
@tab_label’s get_text() as source, as that strips underlines and markup.
It’s not worth making the default Label ‘inherit’ :use-underline/markup;
that’s a slippery slope, and users wanting such things can just create a
fully fledged GtkLabel to pass as @menu_label to suppress the default.
https://bugzilla.gnome.org/show_bug.cgi?id=705509
Timm Bäder [Thu, 15 Mar 2018 20:04:45 +0000 (21:04 +0100)]
demo: Add widgetbowl demo
Backported from gtk4.
Matthias Clasen [Thu, 15 Mar 2018 17:47:15 +0000 (17:47 +0000)]
Merge branch 'wip/filechooser-non-default-display-gtk3' into 'gtk-3-22'
Fix filechooser dialog using non default display (gtk3)
See merge request GNOME/gtk!59
Kukuh Syafaat [Thu, 15 Mar 2018 14:08:17 +0000 (14:08 +0000)]
Update Indonesian translation
Balázs Úr [Thu, 15 Mar 2018 13:39:01 +0000 (13:39 +0000)]
Update Hungarian translation
Daniel Boles [Wed, 14 Mar 2018 22:56:01 +0000 (22:56 +0000)]
SpinButton: Redraw +/- buttons after :wrap changes
Otherwise, the + or - button might change sensitivity based on whether
it can be used to wrap, but without ensuring we update its state, the
ability to :wrap isn't reflected until something else triggers a draw.
https://gitlab.gnome.org/GNOME/gtk/issues/88
Daniel Boles [Wed, 14 Mar 2018 22:39:19 +0000 (22:39 +0000)]
testspinbutton: Add button to toggle wrap on Spins
I found myself wanting to test this for something else, so let's test
it. It revealed a bug immediately!
https://gitlab.gnome.org/GNOME/gtk/issues/88
Daniel Boles [Wed, 14 Mar 2018 22:37:34 +0000 (22:37 +0000)]
testspinbutton: Orient box orthogonally to Spins
This makes better use of space.
Emin Tufan Çetin [Wed, 14 Mar 2018 19:57:40 +0000 (19:57 +0000)]
Update Turkish translation
Jonas Ådahl [Wed, 14 Mar 2018 03:54:02 +0000 (11:54 +0800)]
entrycompletion: Realize popup after setting screen
Realization is done as a side effect of calling
_gtk_entry_completion_resize_popup(), but if this is done before the
GdkScreen of the GtkWindow is set up correctly, it may result in the
widget being unrealized when the screen is updated. This may happen
when the file dialog parent window is not using the default GdkDisplay.
To avoid this issue, realize the popup after the screen has been
properly set up.
Fixes #83 in gtk3
Christoph Reiter [Tue, 13 Mar 2018 20:31:30 +0000 (20:31 +0000)]
Merge branch 'gtk-3-22' into 'gtk-3-22'
Add proper annotation for gdk_frame_clock_get_refresh_info
See merge request GNOME/gtk!54
Christoph Reiter [Tue, 13 Mar 2018 20:19:30 +0000 (21:19 +0100)]
run-docker.sh: Disable SELinux for the container
On Fedora and similar SELinux by default prevents containers accessing
mounted host directories. This script is just used for testing,
so disable it.
Nathan Follens [Tue, 13 Mar 2018 19:29:02 +0000 (19:29 +0000)]
Update Dutch translation
Emin Tufan Çetin [Tue, 13 Mar 2018 17:17:01 +0000 (17:17 +0000)]
Update Turkish translation
Tim Sabsch [Tue, 13 Mar 2018 15:03:39 +0000 (15:03 +0000)]
Update German translation
Rafael Fontenelle [Tue, 13 Mar 2018 10:37:16 +0000 (10:37 +0000)]
Update Brazilian Portuguese translation
Matthias Clasen [Mon, 12 Mar 2018 21:34:03 +0000 (21:34 +0000)]
3.22.29
Daniel Boles [Tue, 13 Mar 2018 00:19:51 +0000 (00:19 +0000)]
FileChooserWidget: Fix leaks in .get_subtitle()
Now that subtitle's default value "Searching" for OPERATION_MODE_SEARCH
is duplicated as it should be, we cannot reassign other strings to it
anymore, as that resulted in the original dupe of "Searching" leaking.
Fix this by only assigning the dup'd "Searching" after trying to get
more specific values, not before. We therefore need to set it to NULL
during its declaration, and that means we needn't in the final else.
Daniel Boles [Mon, 12 Mar 2018 22:44:37 +0000 (22:44 +0000)]
FileChooserWidget: Avoid crash freeing static str
Having a FileChooserDialog in location-entry mode then pressing
<primary>f to move to search mode would crash with an invalid free().
In that case, FileChooserWidget.get_subtitle() returned a static string
straight from gettext. This crashed when the GBinding from :subtitle to
FileChooserDialog’s HeaderBar:subtitle shortly tried to free the string.
Fix by duplicating the string before returning it, like all other paths.
https://bugzilla.gnome.org/show_bug.cgi?id=791004
Stas Solovey [Mon, 12 Mar 2018 21:08:05 +0000 (21:08 +0000)]
Update Russian translation
Aurimas Černius [Mon, 12 Mar 2018 21:01:22 +0000 (23:01 +0200)]
Updated Lithuanian translation
gogo [Mon, 12 Mar 2018 20:57:04 +0000 (20:57 +0000)]
Update Croatian translation
Anders Jonsson [Mon, 12 Mar 2018 20:43:21 +0000 (20:43 +0000)]
Update Swedish translation
Daniel Boles [Mon, 12 Mar 2018 18:57:06 +0000 (18:57 +0000)]
testinfobar: Test more properties, response signal
Also test :message-type, :show-close-button, and ::response.
Marek Černocký [Mon, 12 Mar 2018 18:51:52 +0000 (19:51 +0100)]
Updated Czech translation
Mart Raudsepp [Mon, 12 Mar 2018 16:27:50 +0000 (16:27 +0000)]
Update Estonian translation
Daniel Boles [Mon, 12 Mar 2018 16:08:29 +0000 (16:08 +0000)]
ListBox: Avoid ::row-activated/Row::activate ambig
…uity, by adding a doc comment to Row::activate explaining what it does
and why it is probably not what the user reading that is looking for.
https://bugzilla.gnome.org/show_bug.cgi?id=794008
Daniel Boles [Mon, 12 Mar 2018 15:35:29 +0000 (15:35 +0000)]
InfoBar: Be most specific in new Since annotations
Piotr Drąg [Mon, 12 Mar 2018 15:42:03 +0000 (16:42 +0100)]
Update Polish translation
Daniel Boles [Mon, 12 Mar 2018 15:17:03 +0000 (15:17 +0000)]
testinfobar: Add simple test of :visible/:revealed
This exists merely to prove that, having added :revealed, show() and
hide() now work reliably, as does set_revealed() for the animated case.
https://bugzilla.gnome.org/show_bug.cgi?id=710888
Timm Bäder [Thu, 12 Jan 2017 08:09:22 +0000 (09:09 +0100)]
infobar: Add :revealed property
https://bugzilla.gnome.org/show_bug.cgi?id=710888
Timm Bäder [Thu, 12 Jan 2017 07:42:09 +0000 (08:42 +0100)]
infobar: Keep GParamSpecs around
So we can use them in notify_by_pspec
https://bugzilla.gnome.org/show_bug.cgi?id=710888
Sander Sweers [Mon, 12 Mar 2018 13:29:09 +0000 (14:29 +0100)]
Add proper annotation for gdk_frame_clock_get_refresh_info
See https://gitlab.gnome.org/GNOME/gtk/issues/77
Timm Bäder [Tue, 27 Feb 2018 10:45:34 +0000 (11:45 +0100)]
emojichooser: Only measure reference emoji once
Doing that once for every emoji is pretty slow and unnecessary as the
width does not change.
Alexandre Franke [Sat, 10 Mar 2018 22:06:23 +0000 (22:06 +0000)]
Update French translation
Pavel Roskin [Thu, 8 Mar 2018 14:58:42 +0000 (15:58 +0100)]
x11: Avoid a division by zero
This is similar to
f44baf51d9e8616a but for RandR 1.3 servers like
x11rdp and Windows Exceed which don't return a refresh rate. Avoid a
crash when that happens.
https://bugzilla.gnome.org/show_bug.cgi?id=775546
Ask Hjorth Larsen [Thu, 8 Mar 2018 11:23:42 +0000 (12:23 +0100)]
Updated Danish translation
Ask Hjorth Larsen [Wed, 7 Mar 2018 21:37:47 +0000 (22:37 +0100)]
Updated Danish translation of gtk-properties
Ask Hjorth Larsen [Wed, 7 Mar 2018 21:37:45 +0000 (22:37 +0100)]
Updated Danish translation of gtk
Timm Bäder [Tue, 6 Mar 2018 16:44:33 +0000 (17:44 +0100)]
expander: fix sizes in resize_toplevel
We can't use gtk_widget_get_allocation for either non-anchored widgets
(which happens with the child widget when the expander is unexpanded)
nor toplevel windows since that will include the window decorations.
Fixes #70 in gtk3
Christoph Reiter [Mon, 5 Mar 2018 19:58:04 +0000 (19:58 +0000)]
Merge branch '63-regression-3-22-26-3-22-27-hidpi-checkboxes-and-radiobuttons-pixmaps-are-not-scaled' into 'gtk-3-22'
Resolve "[ Regression 3.22.26 -> 3.22.27 ] [HIDPI] Checkboxes and radiobuttons pixmaps are not scaled"
See merge request GNOME/gtk!47
Juan Pablo Ugarte [Mon, 5 Mar 2018 17:47:00 +0000 (14:47 -0300)]
GtkCssImageSurface: set device scale for cache surface
Closes #63
Stas Solovey [Mon, 5 Mar 2018 16:25:05 +0000 (16:25 +0000)]
Update Russian translation
Rūdolfs Mazurs [Sun, 4 Mar 2018 19:22:05 +0000 (19:22 +0000)]
Update Latvian translation
Christoph Reiter [Sun, 4 Mar 2018 19:21:26 +0000 (19:21 +0000)]
Merge branch 'phase-field' into 'gtk-3-22'
Fix introspection for GdkEventTouchpadPinch and GdkEventTouchpadSwipe.
See merge request GNOME/gtk!45
Rūdolfs Mazurs [Sun, 4 Mar 2018 19:19:38 +0000 (19:19 +0000)]
Update Latvian translation
Tomasz Miąsko [Sun, 4 Mar 2018 00:00:00 +0000 (00:00 +0000)]
Fix introspection for GdkEventTouchpadPinch and GdkEventTouchpadSwipe.
When using type annotations, the ABI of type being annotated and a new
type introduced from annotation should match.
In case of enumerations, the most common ABI, and probably the only one
currently used in practice with gtk, corresponds to -fno-short-enums
compiler option. It uses int as the underlying type of enum, bumping it
up to unsigned int, long int or unsigned long int, in that order, when
necessary.
Thus, when annotating a field of integer type with an enum type, it is
never correct to annotate field smaller than int, because it changes the
ABI from perspective on introspection.
The gint8 phase field in GdkEventTouchpadSwipe and GdkEventTouchpadPinch
structures have been previously annotated in such a way, and this change
removes this annotation to restore ABI compatibility.
Size of structures before (which does not match C):
```
>>> Gdk.EventTouchpadPinch.__info__.get_size()
104
>>> Gdk.EventTouchpadSwipe.__info__.get_size()
88
```
Size of structures after (which does match C):
```
>>> Gdk.EventTouchpadPinch.__info__.get_size()
96
>>> Gdk.EventTouchpadSwipe.__info__.get_size()
80
```
Fixes issue #57.
Christoph Reiter [Sun, 4 Mar 2018 15:03:24 +0000 (15:03 +0000)]
Merge branch 'c-includes' into 'gtk-3-22'
Include C headers in introspection file.
See merge request GNOME/gtk!44
Tomasz Miąsko [Sun, 4 Mar 2018 00:00:00 +0000 (00:00 +0000)]
Include C headers in introspection file.
Include gtk/gtk.h and gtk/gtk-a11y.h unconditionally,
and gtk/gtkx.h when building with X11. Ensures that
introspection data contains complete set required
headers, which is useful when generating C code based
on introspection data.
Diff for generated gir (when using X11):
```diff
<include name="xlib" version="2.0"/>
<package name="gtk+-3.0"/>
+ <c:include name="gtk/gtk-a11y.h"/>
+ <c:include name="gtk/gtk.h"/>
+ <c:include name="gtk/gtkx.h"/>
<namespace name="Gtk"
version="3.0"
```
Fixes issue #56.
Christoph Reiter [Sun, 4 Mar 2018 11:54:24 +0000 (11:54 +0000)]
Merge branch 'gitlab-ci-gtk-3-22' into 'gtk-3-22'
Add gitlab-ci support using a prebuilt docker image
See merge request GNOME/gtk!18
Christoph Reiter [Tue, 13 Feb 2018 16:21:18 +0000 (17:21 +0100)]
Add gitlab-ci support using a prebuilt docker image
This uses autotools and just calls make
Christoph Reiter [Sun, 4 Mar 2018 09:40:57 +0000 (09:40 +0000)]
Merge branch 'include-gtkstackaccessible-gtk-3-22' into 'gtk-3-22'
a11y: Include gtkstackaccessible.h in gtk-a11y.h
See merge request GNOME/gtk!42
Kristjan SCHMIDT [Sat, 3 Mar 2018 20:07:27 +0000 (20:07 +0000)]
Update Esperanto translation
Tomasz Miąsko [Sat, 3 Mar 2018 00:00:00 +0000 (00:00 +0000)]
a11y: Include gtkstackaccessible.h in gtk-a11y.h
Jordi Mas [Sat, 3 Mar 2018 17:12:43 +0000 (18:12 +0100)]
Fix to Catalan translation
Marek Černocký [Sat, 3 Mar 2018 05:53:53 +0000 (06:53 +0100)]
Updated Czech translation
Bruce Cowan [Fri, 2 Mar 2018 22:09:11 +0000 (22:09 +0000)]
Update British English translation
Timm Bäder [Thu, 1 Mar 2018 18:39:49 +0000 (19:39 +0100)]
Revert "file chooser: Allow activating without double-click"
This reverts commit
fb0a13b7f070a14312dafa1e4df6ba03cf33be01.
It's already reverted in master via
c8a6a1138b4e1772817be661a435dd16941d6445, so let's not leave subtle
behavior changes that would make a gtk3->gtk4 migration. And just like
the commit message of the revert already mentions: it didn't really make
anybody happy anyway.
Timm Bäder [Mon, 5 Feb 2018 09:38:37 +0000 (10:38 +0100)]
separatormenuitem: Don't create label widget in get_label
Calling gtk_menu_item_get_label on a GtkSeparatorMenuItem would
otherwise create a GtkLabel child, increasing the vertical size request
to that of the child label.
Christoph Reiter [Thu, 1 Mar 2018 13:46:36 +0000 (13:46 +0000)]
Merge branch 'quartz-missing-config-include' into 'gtk-3-22'
macos: Fix missing gdk symbol exports for gtk dnd
See merge request GNOME/gtk!38
Christoph Reiter [Thu, 1 Mar 2018 13:31:57 +0000 (14:31 +0100)]
macos: export gdk_quartz_drag_source_context()
It's used in the gtk dnd code but not exported in gdk.
Append a "_libgtk_only" suffix as with other internal exports and
export the symbol.
See #32
Kukuh Syafaat [Thu, 1 Mar 2018 09:46:57 +0000 (09:46 +0000)]
Update Indonesian translation
Christoph Reiter [Tue, 27 Feb 2018 18:53:43 +0000 (19:53 +0100)]
macos: Fix gdk_quartz_drag_context_get_dragging_info_libgtk_only symbol export
The header got included without config.h being included first which resulted in the
wrong _GDK_EXTERN macro being used. As a result some symbols weren't exported
and starting a DnD action would crash in the linker.
This patch adds config.h includes in all places where clang complained about
_GDK_EXTERN redefinitions.
See #32 for more info.
Dušan Kazik [Mon, 26 Feb 2018 11:17:48 +0000 (11:17 +0000)]
Update Slovak translation
Milo Casagrande [Mon, 26 Feb 2018 08:02:38 +0000 (08:02 +0000)]
Update Italian translation
Sveinn í Felli [Mon, 26 Feb 2018 07:51:26 +0000 (07:51 +0000)]
Update Icelandic translation
Christoph Reiter [Sun, 25 Feb 2018 21:29:03 +0000 (21:29 +0000)]
Merge branch 'quartz-symbol-not-found-gtk3' into 'gtk-3-22'
gdkquartz.h: export pasteboard functions
See merge request GNOME/gtk!20
Kristjan SCHMIDT [Sun, 25 Feb 2018 18:15:28 +0000 (18:15 +0000)]
Update Esperanto translation
Furkan Ahmet Kara [Sun, 25 Feb 2018 15:51:20 +0000 (15:51 +0000)]
Update Turkish translation
Changwoo Ryu [Sun, 25 Feb 2018 14:49:53 +0000 (14:49 +0000)]
Update Korean translation
Changwoo Ryu [Sun, 25 Feb 2018 14:48:59 +0000 (14:48 +0000)]
Update Korean translation
Baurzhan Muftakhidinov [Sat, 24 Feb 2018 15:14:20 +0000 (15:14 +0000)]
Update Kazakh translation
Balázs Úr [Fri, 23 Feb 2018 22:17:48 +0000 (22:17 +0000)]
Update Hungarian translation
GNOME Translation Robot [Fri, 23 Feb 2018 17:34:56 +0000 (17:34 +0000)]
Update Scottish Gaelic translation
GNOME Translation Robot [Fri, 23 Feb 2018 17:25:08 +0000 (17:25 +0000)]
Update Scottish Gaelic translation
Fabio Tomat [Fri, 23 Feb 2018 08:56:19 +0000 (08:56 +0000)]
Update Friulian translation
Fran Dieguez [Fri, 23 Feb 2018 00:26:32 +0000 (00:26 +0000)]
Update Galician translation
GNOME Translation Robot [Thu, 22 Feb 2018 19:56:58 +0000 (19:56 +0000)]
Update Dutch translation
Daniel Mustieles [Thu, 22 Feb 2018 10:23:24 +0000 (11:23 +0100)]
Updated Spanish translation
Милош Поповић [Thu, 22 Feb 2018 10:16:15 +0000 (10:16 +0000)]
Update Serbian Latin translation
Марко Костић [Thu, 22 Feb 2018 10:09:01 +0000 (10:09 +0000)]
Update Serbian translation
Милош Поповић [Wed, 21 Feb 2018 14:35:57 +0000 (14:35 +0000)]
Update Serbian Latin translation
Марко Костић [Wed, 21 Feb 2018 14:33:06 +0000 (14:33 +0000)]
Update Serbian translation
Fabio Tomat [Wed, 21 Feb 2018 09:28:45 +0000 (09:28 +0000)]
Update Friulian translation
Charles Monzat [Mon, 19 Feb 2018 21:28:35 +0000 (21:28 +0000)]
Update French translation
Matthias Clasen [Mon, 19 Feb 2018 18:23:11 +0000 (18:23 +0000)]
Merge branch 'test-fix-a11y-schema' into 'gtk-3-22'
testsuite/a11y: Fix missing glib schemas
See merge request GNOME/gtk!16
Matthias Clasen [Mon, 19 Feb 2018 17:57:04 +0000 (17:57 +0000)]
Merge branch 'gtk-3-22' into 'gtk-3-22'
gtkprintbackendcups.c: fix \n at end of a debugging note
See merge request GNOME/gtk!24
Matthias Clasen [Mon, 19 Feb 2018 17:55:12 +0000 (17:55 +0000)]
Merge branch 'gtk-debug-flags-with-open-display' into 'gtk-3-22'
gtk_init: Fix debug flags handling when a display is already open
See merge request GNOME/gtk!26
Aurimas Černius [Sun, 18 Feb 2018 19:43:14 +0000 (21:43 +0200)]
Updated Lithuanian translation
Mario Blättermann [Sun, 18 Feb 2018 12:48:31 +0000 (12:48 +0000)]
Update German translation
Christoph Reiter [Sun, 18 Feb 2018 10:45:52 +0000 (10:45 +0000)]
Merge branch 'gtk-3-22' into 'gtk-3-22'
Fix annotation for gtk_tree_view_is_blank_at_pos()
See merge request GNOME/gtk!12
Christoph Reiter [Sun, 18 Feb 2018 09:34:52 +0000 (10:34 +0100)]
gtk_init: Fix debug flags handling when a display is already open
In PyGObject gdk_init() is called before gtk_init() and thus there is
already a default display open when gtk_init() is called.
The code assigning the display to the debug_flags struct gets only
called when the default display changes, which never happens
when there already is one. As a result GTK_DEBUG=interactive
doesn't do anyting with Python apps.
This makes it call the change callback in case a display is already
there.
See https://gitlab.gnome.org/GNOME/pygobject/issues/166
John Lindgren [Sun, 18 Feb 2018 03:03:27 +0000 (22:03 -0500)]
Fix incorrect optimization in find_builtin_icon().
When we found an icon with exactly the requested size, we'd stop
searching immediately (good), but we'd neglect to set the returned
min_difference to 0 (bad). This caused theme_lookup_icon() to
prefer other, potentially much worse, matches over the exact one.
Emmanuele Bassi [Tue, 13 Feb 2018 11:12:26 +0000 (11:12 +0000)]
docs: Add proper deprecation text for GtkStatusIcon
We link to the HowDoI for GNotification in the class description, but we
should be more verbose in the deprecation notices for each function of
the GtkStatusIcon class.
https://bugzilla.gnome.org/show_bug.cgi?id=743975
Ivan Zakharyaschev [Sat, 17 Feb 2018 03:19:56 +0000 (06:19 +0300)]
gtkprintbackendcups.c: fix \n at end of a debugging note
(cherry picked from commit
7461ceebe34bfc6f882145e89e1ba2f187d08303)
Piotr Drąg [Sat, 17 Feb 2018 16:18:59 +0000 (17:18 +0100)]
Update Polish translation
gogo [Fri, 16 Feb 2018 23:01:50 +0000 (23:01 +0000)]
Update Croatian translation
gogo [Fri, 16 Feb 2018 22:57:44 +0000 (22:57 +0000)]
Update Croatian translation
Rafael Fontenelle [Fri, 16 Feb 2018 16:20:06 +0000 (16:20 +0000)]
Update Brazilian Portuguese translation