Timm Bäder
dde535bbdf
levelbar: Don't return a double value from a gboolean function
2018-08-05 10:22:10 +02:00
Timm Bäder
71b36db88d
acitonbar: Remove snapshot implementation
2018-08-05 10:22:10 +02:00
Timm Bäder
b5576397f7
modelbutton: Remove snapshot implementation
...
Previously, GtkBin was only snapshot'ing its one and only child, but
nowadays it doesn't implement snapshot at all and the default
implementation in GtkWidget just snapshots all child widgets, which is
exactly what the implementation in gtkmodelbutton.c was doing.
2018-08-05 10:22:10 +02:00
Matthias Clasen
4e86858405
Make color picker circular
...
The need for center alignment was pointed out by Timm Baeder.
2018-08-04 21:42:28 -04:00
Mario Blättermann
35829a7272
Update German translation
2018-08-04 11:25:21 +00:00
Ernestas Kulik
0eb60fb03e
Merge branch 'sidebar-spinner-visibility' into 'master'
...
sidebarrow: Hide busy_spinner by default
See merge request GNOME/gtk!285
2018-08-03 10:45:04 +00:00
Ernestas Kulik
94162197a1
sidebarrow: Hide busy_spinner by default
...
Since the original implementation was likely based on GTK+ 3, the change
in default visibility might have not been considered, which results in
all rows suddenly sporting a visible spinner when opening a fresh file
chooser.
2018-08-03 13:29:07 +03:00
Matthias Clasen
877fffdd5e
Merge branch 'fix-app-id' into 'master'
...
Make xdg-shell's app_id match GApplication's application-id property
Closes #653
See merge request GNOME/gtk!284
2018-08-03 02:09:09 +00:00
Matthias Clasen
8669d31c30
color picker: Also try kwin
...
use a kwin color picker when we run under kwin.
2018-08-02 20:55:07 -04:00
Matthias Clasen
e76d17a786
Only use the portal color picker when appropriate
...
This is just moving this check around.
2018-08-02 20:54:21 -04:00
Matthias Clasen
5ab90f1a80
Add a kwin color picker
...
This uses the org.kde.kwin.ColorPicker interface.
2018-08-02 20:53:37 -04:00
Benjamin Otte
5b1fd111d1
Merge branch 'gbsneto/issue-1258' into 'master'
...
listbox: Unparent child after removing from sequence
Closes #1258
See merge request GNOME/gtk!283
2018-08-02 14:14:10 +00:00
Georges Basile Stavracas Neto
5596feae9b
listbox: Store child iter in a variable when removing
...
Unparenting a GtkListBoxRow can drop its last reference, which
will free its memory. Right after unparenting, though, we were
accessing the row's iter - which assumes that the row is still
alive. This causes a crash when, for example, binding two or
more models to the listbox.
Fix that by storing the iter in a variable, and not trying to
access it after unparenting. After unparenting, the variables
that are potentially garbage were explicitly assigned NULL for
clarity.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1258
2018-08-02 10:24:12 -03:00
Guido Günther
8fb8303ba0
demos: Make desktop file names match the application id
2018-08-02 12:15:43 +02:00
Guido Günther
06e4c3c991
examples: Use appliction id as desktop file base name
2018-08-02 11:10:21 +02:00
Guido Günther
f25f3b3c47
docs: Explain desktop file id == application_id in migration guide
2018-08-02 11:10:21 +02:00
Guido Günther
72ec8963d7
gdk: Use application_id as xdg_shell's app_id if available
...
This (manually) reverts commit e1fd87728d
This makes sure xdg_shell's app_id matches the DBus name of the the
appliation when using GtkApplication. It also allows the compositor to
derive the desktop file ID from the app_id:
https://cgit.freedesktop.org/wayland/wayland-protocols/tree/stable/xdg-shell/xdg-shell.xml?id=298d888ac718eae57ff2245d373d4327074506ea#n598
Closes #653
2018-08-02 11:03:41 +02:00
Benjamin Otte
50d5666db0
container: Remove focus chains
...
They're prectically unused.
Widgets who want to influcence the focus chain behavior should implement
GtkWidgetClass::focus and deal with focus there.
2018-07-31 22:34:27 +02:00
Benjamin Otte
e06044530f
widgetfocus: Fix copy/paste error
...
This lead to erratic focus behavior with <Tab> in hboxes, where the
smallest child got focus first instead of the leftmost child.
2018-07-31 22:34:27 +02:00
Benjamin Otte
7ce7e5503f
colorpicker: Fix gcc warning
2018-07-31 22:34:27 +02:00
Matthias Clasen
0ba307995d
Mention gtk_widget_show_all in the migration guide
...
This function is gone.
Closes https://gitlab.gnome.org/GNOME/gtk/issues/1242
2018-07-31 13:38:10 -04:00
Matthias Clasen
ce7956cd50
Merge branch 'issue1214-tooltips-win32-gtk4' into 'master'
...
Gdk-Win32: Correct handling of transient state changes
See merge request GNOME/gtk!280
2018-07-31 11:37:28 +00:00
Luca Bacci
d29b378fa0
Gdk-Win32: Correct handling of transient state changes
...
See merge request !248
2018-07-31 11:11:26 +02:00
Benjamin Otte
1129febd7d
bindings: Remove GTK_TYPE_IDENTIFIER
...
bindings now treat identifiers and strings the same way.
The only difference was that one allowed lookup of enum/flags by name
while the other didn't and g_warning()ed. Now both work.
2018-07-31 06:46:36 +02:00
Matthias Clasen
47928b9e14
color picker: Better debug spew
...
This will help in debugging issues.
2018-07-30 18:12:14 -04:00
Marek Cernocky
01f17836ac
Updated Czech translation
2018-07-30 23:14:21 +02:00
Benjamin Otte
7e919aaaa5
gdk: Fix Windows and OS X backend for keyevent.string removal
2018-07-30 20:15:16 +02:00
Benjamin Otte
03a6420c37
treeview: Fix compiler warning
2018-07-30 19:58:38 +02:00
Benjamin Otte
375fbd4e47
gdk: Remove key_event->string and key_event->length
...
They're unused.
2018-07-30 19:32:38 +02:00
Benjamin Otte
813957a92f
gdk: Remove gdk_event_get_string()
...
You want to use an IM module to get strings out of keypresses, not some
crude hack that only works on X11 and Wayland anyway.
2018-07-30 19:32:38 +02:00
Piotr Drąg
36ed4c2a29
Update POTFILES.skip
2018-07-30 16:31:53 +02:00
Marek Cernocky
8e78b53378
Updated Czech translation
2018-07-30 15:11:26 +02:00
Mohammed Sadiq
76ed6cf9d8
colorpickerportal: Fix memory leak
2018-07-30 18:10:31 +05:30
Carlos Garnacho
a8c6f222ed
inspector: Remove unnecessary cast
...
Pointed out by Timm.
2018-07-30 14:21:22 +02:00
Matthias Clasen
c5afea0c6b
Merge branch 'gtk-4-add-spinner-to-sidebar-row' into 'master'
...
gtkplacessidebar: Show busy spinner in sidebar row during mount ops
See merge request GNOME/gtk!261
2018-07-30 12:04:05 +00:00
Carlos Garnacho
efa42a6932
Merge branch 'wip/carlosg/event-final-cleanup' into 'master'
...
Wip/carlosg/event final cleanup
See merge request GNOME/gtk!279
2018-07-30 11:25:24 +00:00
Carlos Garnacho
5d1b2f627c
tests: Port testwidgetfocus to using a motion controller
2018-07-30 13:14:12 +02:00
Carlos Garnacho
8f6f980e49
demos: Update changedisplay demo to using GtkGesture
2018-07-30 13:14:12 +02:00
Carlos Garnacho
25b3b90920
tests: Port motion-compression to using a motion controller
2018-07-30 13:14:12 +02:00
Carlos Garnacho
71762d3b28
gtkscrolledwindow: Use controller for motion capturing
...
Perform scrollbar visibility checks through a motion controller,
always based on GtkScrolledView-relative coordinates. The captured
event handler remains though, for a tiny bit of GDK_SCROLL event
handling.
2018-07-30 13:14:12 +02:00
Carlos Garnacho
f15224926a
gtkwindow: Replace captured event handler with motion controller
2018-07-30 13:14:12 +02:00
Carlos Garnacho
1570c41efa
testsuite: Update window test to use gestures when interactive
2018-07-30 13:14:12 +02:00
Carlos Garnacho
5e0f2d7d20
tests: Use gesture in testtreepos
2018-07-30 13:14:12 +02:00
Carlos Garnacho
88743ab975
tests: Use gesture to popup menu in testiconview
2018-07-30 13:14:12 +02:00
Carlos Garnacho
6f15447633
tests: Update testgrid to use gestures
2018-07-30 13:14:12 +02:00
Carlos Garnacho
85f6995511
demos: Update hypertext demo to use controllers
2018-07-30 13:14:12 +02:00
Carlos Garnacho
4d59a00074
demos: Update search_entry2 demo to use key capturing API
...
No more GdkEvent juggling.
2018-07-30 13:14:12 +02:00
Carlos Garnacho
2dbb1509d8
demos: drop "Event axes" demo
...
It's too lowlevel to be practical anymore with gtk4, and there's
the Paint and Gestures demos to demonstrate input capabilities
better than this.
2018-07-30 13:14:12 +02:00
Carlos Garnacho
101c927c40
gtk-demo: Add pad controller handling to "Paint" demo
...
So it's more lifelike.
2018-07-30 13:14:12 +02:00
Carlos Garnacho
6d3eb18578
gtktreeview: Use key controller on search entry handling
...
Use a distinct key controller so we correctly handle navigation
across matches and search cancellation. As the events are forwarded
to the search_window, those need to be pushed down the entry manually.
2018-07-30 13:14:12 +02:00