summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* iconhelper: Fix drawing of empty and paintable helpersBenjamin Otte2018-09-051-2/+6
| | | | | Empty helpers did try to draw a NULL paintable (not good) and in the non-null case code used the wrong width/height.
* Minor fixes in documentation of gtkbboxLennart Buhl2018-09-031-3/+3
|
* Adwaita: Regenerate CSS to get window.devel stylesDaniel Boles2018-09-022-0/+8
| | | | | | | | | | | This step was missed before, again. SASS 3.6 emits rgba(0, 0, 0, 0) instead of transparent, so it wants to change those too, but that patch was only committed in March and isn't being backported to the previous stable, so I don't know if others' versions will do the same - so until it's shown that anyone else (A) is regenerating CSS and (B) also has 3.6, I'm skipping those changes. See: https://github.com/sass/libsass/commit/c287f312ac9735aa274bbce56762391ca348cad9
* GtkApplication: Improve the docsMatthias Clasen2018-08-311-0/+2
| | | | Expand the docs for ::register-session a bit.
* Avoid a pointless gotoMatthias Clasen2018-08-311-3/+1
| | | | We can just return here.
* Add a helpful commentMatthias Clasen2018-08-311-0/+1
|
* GtkApplication: track screensaver stateMatthias Clasen2018-08-304-0/+170
| | | | | | | | | | | A number of applications want to track the state of the screensaver. Make this information available as a boolean property. We only listen for state changes when ::register-session is set to TRUE. This is implemented for unsandboxed D-Bus access by talking directly to org.gnome.ScreenSaver or org.freedesktop.ScreenSaver, and for sandboxed D-Bus by using a (new) portal API. A Quartz implementation is missing.
* GtkApplication: Respect GTK_USE_PORTALMatthias Clasen2018-08-301-0/+3
| | | | | | When the environment variable is set, don't connect to the session manager, but instead rely on the inhibit portal.
* file chooser portal: use request path utilitiesMatthias Clasen2018-08-301-11/+1
| | | | Less code duplication, more sticky toffee!
* print portal: use request path utilitiesMatthias Clasen2018-08-301-10/+2
| | | | Less code duplication, more cookies!
* color picker portal: Add request path utilityMatthias Clasen2018-08-301-11/+2
| | | | Less code duplication, more cake!
* Add utility functions for portal pathsMatthias Clasen2018-08-302-0/+40
| | | | | The paths that we create for requests and sessions need some icky code to create. Keep it in one place.
* Merge branch 'selection-mode-separator' into 'master'Jakub Steiner2018-08-303-0/+8
|\ | | | | | | | | Adwaita: Add color to separator.selection-mode See merge request GNOME/gtk!309
| * Adwaita: Add color to separator.selection-modeAdrien Plazas2018-08-273-0/+8
| | | | | | | | | | | | | | This makes separators to look good when separating two header bars in selection mode. https://gitlab.gnome.org/GNOME/gtk/issues/1286
* | Add a missing castMatthias Clasen2018-08-291-1/+1
| | | | | | | | This fixes a warning introduced in the previous commit.
* | The file chooser is no box anymoreMatthias Clasen2018-08-291-1/+1
| | | | | | | | | | | | Don't treat it as one, it does not like it. Closes https://gitlab.gnome.org/GNOME/gtk/issues/1297
* | FileChooserWidget: Don't show recent items with private hint setKai Willadsen2018-08-281-0/+20
| |
* | Fix a typoMatthias Clasen2018-08-281-1/+1
| | | | | | | | | | | | Its Hieroglyphs! Closes: #1292
* | Merge branch 'revealer-clipping' into 'master'Timm Bäder2018-08-281-6/+8
|\ \ | | | | | | | | | | | | revealer: Only clip child when animating See merge request GNOME/gtk!301
| * | revealer: Only clip child when animatingErnestas Kulik2018-08-231-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, GtkRevealer clips the child if the transition type is sliding, regardless of whether the animation had already ended. An example where that is a problem would be in Nautilus: the file operations popover button is animated on reveal to draw attention, but, given that the button is in turn stashed inside a revealer with a sliding animation, things suddenly fall apart.
* | | Revert "paned: Use a GtkIcon as separator"Timm Bäder2018-08-271-4/+25
| | | | | | | | | | | | | | | | | | | | | This reverts commit 749ef4d71ca018a18fd608bf3b2e4c022727e2ae. The GtkIcon and GtkGizmo measure code is different, the former uses -gtk-icon-size.
* | | box: Remove gtk_box_get_sizeTimm Bäder2018-08-271-129/+5
| | | | | | | | | | | | | | | One function to measure the box in the opposite of its internal direction is enough.
* | | box: Rename avail_size to for_size everywhereTimm Bäder2018-08-271-4/+4
| | | | | | | | | | | | So we call it like we call it everywhere else.
* | | box: Simplify compute_size_for_orientationTimm Bäder2018-08-271-12/+10
| |/ |/|
* | menuitem: Remove duplicate includeTimm Bäder2018-08-251-1/+0
| |
* | picture: Fix doc typoTimm Bäder2018-08-251-1/+1
| |
* | spinner: Remove private structTimm Bäder2018-08-251-14/+10
| | | | | | | | | | Since priv->active is equivalent to the widget state being CHECKED, we can as well use that everywhere.
* | colorswatch: Remove dead assignmentTimm Bäder2018-08-251-2/+0
| |
* | image: Fix gtkdoc property syntaxTimm Bäder2018-08-251-1/+1
| |
* | paned: Use a GtkIcon as separatorTimm Bäder2018-08-251-25/+4
| | | | | | | | And save a few lines that way.
* | menubutton: Remove outdated lineTimm Bäder2018-08-251-1/+0
| | | | | | | | .menu-button is not a style class we use anywhere.
* | renderborder: Remove unused functionTimm Bäder2018-08-252-7/+0
| |
* | renderborder: Pull some locals into the closest scopeTimm Bäder2018-08-251-4/+4
| | | | | | | | | | Especially the bounds graphene_rect_t, which is unused in the non-border-image case.
* | checkbutton: Remove snapshot implementationTimm Bäder2018-08-251-17/+0
| | | | | | | | | | It just does when the default GtkWidget implementation does anyway: snapshot all child widgets
* | radiobutton: Save signal IDs like everything elseTimm Bäder2018-08-251-14/+18
| |
* | fixed: Remove unused struct memberTimm Bäder2018-08-251-1/+0
|/
* entry completion: Avoid critical warningsMatthias Clasen2018-08-201-8/+10
| | | | | We must not call move-to-rect unless we have a transient parent.
* Merge branch 'fix-shifted-scrolling' into 'master'Matthias Clasen2018-08-201-3/+20
|\ | | | | | | | | | | | | gtkscrolledwindow: Consider shift key presses when decelerating Closes #770 See merge request GNOME/gtk!286
| * gtkscrolledwindow: Consider shift key presses when deceleratingSebastian Keller2018-08-041-3/+20
| | | | | | | | | | | | | | Otherwise horizontal scrolling using the shift key would decelerate vertically. Fixes https://gitlab.gnome.org/GNOME/gtk/issues/770
* | gesturestylus: Add missing array g-i annotation for *_get_axes paramsRico Tzschichholz2018-08-201-2/+2
| |
* | Merge branch 'kill-subsurface' into 'master'Matthias Clasen2018-08-193-36/+13
|\ \ | | | | | | | | | | | | Kill subsurfaces See merge request GNOME/gtk!299
| * | Drop gtk_window_set_use_subsurfaceMatthias Clasen2018-08-182-32/+4
| | | | | | | | | | | | This is no longer used.
| * | entry completion: stop using subsurfacesMatthias Clasen2018-08-181-4/+9
| | | | | | | | | | | | | | | | | | | | | Instead, use a popup and gdk_surface_move_to_rect. I have not tried to reproduce all details of the old positioning logic, but moving the popup above/below the entry works as before.
* | | Move tools to a subdirectoryMatthias Clasen2018-08-1912-34/+36
|/ / | | | | | | A small step towards splitting up gtk/
* | tooltip: Implement positioning using gdk_window_move_to_rect()Jonas Ådahl2018-08-192-221/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to make tooltip positioning portable, make use of the move_to_rect API. Some semantical changes are made, as identical semantics cannot be implemented using the move-to-rect API. Primarily the implemented semantics are: Position the tooltip in the center pixels slightly below (defaults to 4 units below) the tooltipped widget. This is always the case for keyboard driven tooltips; the case where it tries to avoid the pointer cursor is not implemented. For pointer position triggered tooltips, implement the following additional semantics: Use the current cursor size to determine the padding used to enlarge the anchor rectangle. This is to try to avoid the cursor overlapping the tooltip. If the anchor rectangle is too tall (meaning if we'd be constrained and flip on the Y axis, it'd flip too far away from the originally intended position), rely only on the pointer position to position the tooltip. The approximate pointer cursor rectangle is used as a anchor rectangle. Ideally we should use the actual pointer cursor rectangle (image used as well as hotspot coordinate), but we don't have API to get that information. If the anchor rectangle isn't to tall, just make sure the tooltip isn't too far away from the pointer position on the X axis. Closes: #134 Closes: #432 Closes: #574 Closes: #579 Closes: #878
* | menu: Remove key_controller memberTimm Bäder2018-08-181-2/+0
| | | | | | | | Unused.
* | menu: Remove initially_pushed_in flagTimm Bäder2018-08-181-1/+0
| | | | | | | | Unused.
* | menu: Remove seen_item_enter flagTimm Bäder2018-08-182-3/+0
| | | | | | | | Unused.
* | menu: Remove have_position flagTimm Bäder2018-08-182-29/+0
| | | | | | | | It's always FALSE.
* | menu: Remove an unnecessary gtk_widget_destroy() callTimm Bäder2018-08-181-1/+0
| | | | | | | | The unref will already properly free the menu item's resources.