summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Rename gtk_window_set_defaultMatthias Clasen2019-04-287-13/+13
| | | | | | Call it gtk_window_set_default_widget, to match the getter, and the property name. Update all callers.
* window: Add a default-widget propertyMatthias Clasen2019-04-281-2/+19
| | | | This is a part of redoing default widget handling.
* widget: Add a convenience api to activate actionsMatthias Clasen2019-04-283-1/+37
| | | | | | Since actions are used increasingly, we should have a convenient way to trigger an action in the context of a widget.
* Merge branch 'focus-cleanup' into 'master'Matthias Clasen2019-04-284-45/+5
|\ | | | | | | | | Focus cleanup See merge request GNOME/gtk!788
| * Avoid critical warningsMatthias Clasen2019-04-281-1/+2
| | | | | | | | These critical warnings break the tests, otherwise.
| * Drop gtk_window_activate_focusMatthias Clasen2019-04-283-32/+0
| | | | | | | | | | | | | | This api wasn't used anywhere in GTK. And since we've dropped the variant for the default widget, this one should go too. If it is needed, it should become and action too.
| * widget: Remove special handling of has-focusMatthias Clasen2019-04-281-11/+0
| | | | | | | | | | | | | | We used to handle has-focus in ui files specially. It was awkward, so stop doing that. If you need to influence the initial focus of a window, you can just set the focus-widget property.
| * window: Fix up the buildable implementationMatthias Clasen2019-04-281-1/+3
| | | | | | | | | | | | We were assuming that the parent class has a custom set_property, which may not be the case. Be more careful.
* | Merge branch 'inspector-prop-sort' into 'master'Matthias Clasen2019-04-282-7/+140
|\ \ | |/ |/| | | | | inspector: Make property list sortable again See merge request GNOME/gtk!787
| * inspector: Make property list sortable againMatthias Clasen2019-04-282-7/+140
|/ | | | | | We lost this when moving from a treeview to a listbox. Bring it back, with homegrown list headers.
* Merge branch 'file-chooser-location-escape' into 'master'Matthias Clasen2019-04-281-0/+1
|\ | | | | | | | | | | | | file chooser: Stay focused Closes #1851 See merge request GNOME/gtk!785
| * file chooser: Stay focusedMatthias Clasen2019-04-281-0/+1
|/ | | | | | | | | | | When hitting Escape in the location entry, we were not moving the focus anywhere, causing focus to be NULL, and key bindings to stop working. The visible effect was that Ctrl-L / Escape / Ctrl-L would not get back to the location entry, as expected. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1851
* Merge branch 'wip/baedert/filechooser2' into 'master'Matthias Clasen2019-04-288-47/+38
|\ | | | | | | | | Assorted filechooser improvements See merge request GNOME/gtk!783
| * filechooserwidget: Use a center box for the search entryTimm Bäder2019-04-281-4/+3
| | | | | | | | | | This way we can avoid a slight position offset when we show or hide the spinner during a search.
| * filechooserwidget: Allow keynav from the treeview to the search entryTimm Bäder2019-04-282-0/+20
| |
| * window: Check whether the new focus widget is the old oneTimm Bäder2019-04-281-0/+3
| | | | | | | | We generally do that for all properties.
| * treeview: Don't always grab_focus() when moving the cursorTimm Bäder2019-04-281-9/+0
| | | | | | | | | | This doesn't really make sense, we can assume that the treeview already has the focus when it receives key events.
| * filechooserwidget: Remove unneeded function prototypeTimm Bäder2019-04-281-2/+0
| |
| * filechooserwidget: Don't focus treeview when searchingTimm Bäder2019-04-281-6/+0
| | | | | | | | It's just weird that the search entry does not have focus while we type.
| * filechooserwidget: Remove some GdkEvent usageTimm Bäder2019-04-281-10/+4
| |
| * filechooserbutton: Remove some dead codeTimm Bäder2019-04-281-5/+0
| |
| * colorbutton: Remove unneeded snapshot implementationTimm Bäder2019-04-281-11/+0
| |
| * Adwaita: Bring filechooserbutton spacing backTimm Bäder2019-04-283-0/+8
| | | | | | | | Add some space between the icons and the text, like there was in gtk3.
* | Merge branch 'file-chooser-escape' into 'master'Matthias Clasen2019-04-281-1/+6
|\ \ | |/ |/| | | | | | | | | file chooser: Prevent accidental search Closes #1850 See merge request GNOME/gtk!784
| * file chooser: Prevent accidental searchMatthias Clasen2019-04-281-1/+6
|/ | | | | | | | | | When hitting Escape, the file chooser will go into search mode, because the search entry consumes the key to emit the ::search-stopped signal. Recognize this situation and avoid switching to search mode in this case. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1850
* entry: Fix primary icon allocation in RTL entriesTimm Bäder2019-04-281-3/+6
| | | | | | | The primary icon is on the right in RTL, so don't offset the text child to the right for it. Fixes the text and icon overlapping in the second entry in tests/testentryicons
* gl renderer: Add simple blend node implementationTimm Bäder2019-04-284-2/+373
|
* treeview: Always update expand when allocating columnsTimm Bäder2019-04-281-45/+2
| | | | | | It doesn't make sense to keep track of all the last_* values anymore now that widgets only get allocated when their size changes anyway. Remove all the associated (and thus now unused) flags as well.
* treeview: Remove a useless checkTimm Bäder2019-04-281-4/+1
|
* treeview: Remove unused memberTimm Bäder2019-04-281-2/+1
|
* Merge branch 'popover-demos' into 'master'Matthias Clasen2019-04-271-4/+83
|\ | | | | | | | | Popover demos See merge request GNOME/gtk!782
| * widget-factory: Make a resizing popoverMatthias Clasen2019-04-271-2/+21
| | | | | | | | | | Add an expander to a popover to test how changing sizes works with popovers.
| * widget-factory: Add some nested popoversMatthias Clasen2019-04-271-4/+41
| | | | | | | | | | These are mainly for stress-testing our popover implementations.
| * widget-factory: Add non-modal popoversMatthias Clasen2019-04-271-1/+24
| | | | | | | | | | | | This makes is easy to test moving the toplevel or repositioning the parent while the popover is shown.
* | Merge branch 'file-chooser-search' into 'master'Matthias Clasen2019-04-271-5/+6
|\ \ | |/ |/| | | | | | | | | file chooser: Fix Ctrl-L Closes #1829 See merge request GNOME/gtk!781
| * file chooser: Fix Ctrl-LMatthias Clasen2019-04-271-5/+6
| | | | | | | | | | | | | | | | | | | | | | We were forwarding key events to the search entry and unconditionally considered search started afterwards. That is not correct, since things like a Ctrl key press should not trigger search. Fix this by only switching to search mode when the event was actually consumed. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1829
* | Merge branch 'font-chooser-search' into 'master'Matthias Clasen2019-04-271-3/+61
|\ \ | |/ |/| | | | | | | | | fontchooser: Fix type-to-search Closes #1842 See merge request GNOME/gtk!780
| * fontchooser: Fix type-to-searchMatthias Clasen2019-04-271-3/+61
|/ | | | | | | | | The key capture was interfering with other entries in the dialog, so be smarter about when we want to capture keys and when we don't. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1842
* searchentry: Always measure and allocate iconTimm Bäder2019-04-271-17/+25
| | | | | | | | | Just measuring it (so the warning goes away) but then not using the values will later underallocate the text widget. Instead, always reserve space for the icon (which will inevitable be visible as soon as the searchentry is actually being used). Fixes #1831
* Adwaita: separate '.view text' from textview>textTimm Bäder2019-04-273-24/+31
| | | | | The first rule breaks GtkText inside GtkSearchEntry inside something that has .view applied, as found in the file chooser when searching.
* testsuite: Rewrite text diff to use GSubprocessBenjamin Otte2019-04-271-45/+33
| | | | ... instead of g_spawn(). Avoids having to create a temp file, too.
* gl renderer: bind the texture framebuffer before renderingTimm Bäder2019-04-261-2/+4
| | | | | | When rendering to a texture, collecting the render ops might bind a different framebuffer, so bind the one we want again before doing the actual rendering.
* tooltip: Initialize tooltip coords to given event coordsTimm Bäder2019-04-261-1/+1
| | | | | Otherwise the coordinates passed to the query-tooltip signal are always 0.
* Merge branch 'wip/surface-transform-data' into 'master'Matthias Clasen2019-04-252-58/+90
|\ | | | | | | | | Surface transform listener fixes See merge request GNOME/gtk!776
| * widget: Move surface relative transform fields into its own structJonas Ådahl2019-04-252-54/+90
| | | | | | | | | | The purpose being to reduce the size of GtkWidgetPrivate. What is left is a pointer to the allocated struct.
| * widget: Remove leftover parent-changed handler removalJonas Ådahl2019-04-252-4/+0
| | | | | | | | | | It was never added, as the listener was replaced by explicit code in gtk_widget_(un)root(), but the removal code was left in place in error.
* | Merge branch 'fix-gdkwin32-move-drag' into 'master'Chun-wei Fan2019-04-251-8/+11
|\ \ | | | | | | | | | | | | gdksurface-win32.c: Acquire root coordinates on drag/move See merge request GNOME/gtk!693
| * | gdksurface-win32.c: Acquire root coordinates on drag/moveChun-wei Fan2019-04-011-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | As in commit d45996c, the x and y coordinates passed into begin_drag and begin_move are no longer root coordinates but are now surface coordinates. Use the x and y surface coordinates to acquire the root x and y coordinates so that resizing and moving can work as expected.
* | | Updated Spanish translationDaniel Mustieles2019-04-251-46/+9
| | |
* | | Merge branch 'wip/alexl/gl-debug' into 'master'Matthias Clasen2019-04-2510-5/+207
|\ \ \ | | | | | | | | | | | | | | | | Add GL debugging integration See merge request GNOME/gtk!771