Elias Naur
b74f2d2d1c
LICENSE: merge UNLICENSE and LICENSE-MIT to please license identifiers
...
Apparently github.com/google/licenseclassifier/tools/identify_license
doesn't like that LICENSE is missing.
Merging the two separate license files makes one less file, and by adding the
SPDX identifier at the top I believe there is even less ambiguity that Gio
is covered by the UNLICENSE as well as the MIT license, as described in
the README.md file.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-09-03 19:11:52 +02:00
Elias Naur
ff657fb476
README.md: fix link
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-09-03 18:34:49 +02:00
Elias Naur
a06d8a39f5
apps: update gio version
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-09-02 15:18:56 +02:00
Elias Naur
7ad60e0878
ui/app: print sRGB flag for eglCreateWindowSurface failure
...
For gio#35
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-09-02 15:17:29 +02:00
Elias Naur
ef64cd7326
apps: update gio version
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-09-02 15:14:58 +02:00
Elias Naur
52dd762405
ui/app: (wayland) define WL_EGL_PLATFORM=1 to force EGL in Wayland mode
...
Including wayland-egl.h will also set WL_EGL_PLATFORM, but generic
egl code in egl_linux.go cannot do that.
For gio#35
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-09-02 15:13:36 +02:00
Elias Naur
dc62058bce
ui/app: (wayland) ensure DestroyEvent is the last event
...
A ToplevelClose event could end in the same batch of events as
another event, which will result in the other event being sent
after a DestroyEvent. Window assumes no event will arrive after
DestroyEvent, so ensure that property for the Wayland backend.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-09-01 14:33:33 +02:00
Elias Naur
5766a8d226
ui/layout: avoid accumulating rounding errors from Flexible
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-30 21:15:18 +02:00
Elias Naur
7bca7de017
apps/gophers: update gio version
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-30 15:03:49 +02:00
Elias Naur
12089ea62a
all: rename layout.Dimens to layout.Dimensions
...
Dimens is only 4 characters shorter and not worth the abbreviation.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-30 15:00:17 +02:00
Elias Naur
7f29293f16
README.md: add donations section
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-30 14:39:21 +02:00
Elias Naur
110da804a0
ui/app: (wayland) expand comments for double server roundtrip
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-30 13:38:58 +02:00
Kenshi Kamata
ea2ee1abcc
ui/app: fix example code in document
...
Signed-off-by: Kenshi Kamata <kenshi.kamata@gmail.com >
2019-08-29 17:49:27 +02:00
Elias Naur
41ea609d8e
README.md: add link to Gophercon 2019 recording
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-27 15:59:09 +01:00
Elias Naur
026468a5f7
website: require Go 1.12
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-27 11:08:24 +01:00
Elias Naur
a40de565dc
website: add shortcuts for issues, commits and patches
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-27 09:42:20 +01:00
Elias Naur
069bb0e7cd
ui/app: merge goString implementations and add test
...
Fixes gio#30
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-26 21:19:58 +01:00
Elias Naur
7d47fe0fc9
ui/internal/ops: go fmt
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-26 20:35:16 +01:00
Elias Naur
8700a8ffc3
ui/key,ui/pointer: rename HandlerOp to InputOp
...
"Input" is more specific and reads better than "handler".
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-26 18:07:48 +01:00
Elias Naur
a112a580a7
ui/app(internal/gpu: remove unused parameters
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-25 23:58:19 +01:00
Daniel Martí
e8ba5b6aff
all: remove a couple of unused parameters
...
Both from unexported functions, to keep the change low-risk. Found via
unparam.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc >
2019-08-25 22:48:15 +01:00
Daniel Martí
2542c55e9d
all: fix some issues spotted by static analysis
...
First, vet was upset by two incorrect fmt verbs. One was an extra %x,
when there was just one argument, so remove it. Another was a %p with a
non-pointer. It's a struct, so for now simply use %#v.
Second, staticcheck found some unused or unnecessary bits of code;
remove the obvious ones.
Finally, staticcheck also complained about some error strings which were
capitalized or had periods. Adjust those, which also makes all error
messages more consistent.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc >
2019-08-25 22:41:05 +01:00
Elias Naur
9136c72425
README.md: add Gophercon UK 2019 talk
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-25 22:27:41 +01:00
Elias Naur
eae9b6f8ac
website: specify Go 1.11 and use default godoc repository root
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-25 09:22:51 +01:00
Elias Naur
44c7be6750
cmd/gio: expand usage document
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-24 22:48:00 +01:00
Elias Naur
470478e574
cmd/gio: replace errorf with a main function returning errors
...
While we're here, split the usage print out to its own function and
don't display the usage when a package is missing.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-24 21:44:21 +01:00
Elias Naur
32a348b1ab
go.*: drop -replace for gioui.org/ui
...
As pointed out by Daniel Martí, the replace line is convenient for
development but results in build differences depending on whether
you're inside or outside the gioui.org/apps module.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-24 19:00:32 +01:00
Elias Naur
c3f30188a5
all: delete unused variables
...
Found by Daniel Martí.
Fixes gio#24
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-24 18:25:37 +01:00
Elias Naur
7780cf1353
cmd/gio: use path.Base for Go import paths
...
Go import paths always use forward slashes as separators.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-24 17:44:51 +01:00
Elias Naur
6433cb2d88
cmd/gio: change all occurences of *appID with the buildInfo field
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-24 17:44:14 +01:00
Elias Naur
b34389ac2c
apps/gophers: update gio version
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-22 17:19:04 +02:00
Elias Naur
a6483a421f
ui/gesture: replace Click.Events with Click.Next
...
Everything else was converted to use the Next
style event API, but Click was forgotten.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-22 17:16:06 +02:00
Elias Naur
9520a9278f
ui/app/internal/gpu: set the default material to black
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-22 11:25:11 +02:00
Elias Naur
c427597fde
apps: update go latest gioui.org/ui version
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-21 15:01:24 +02:00
Elias Naur
6a7e38eb32
ui/app: go fmt
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-21 14:59:35 +02:00
Elias Naur
bff8b64e5a
ui/app: replace WindowOptions with WindowOption
...
Thanks to Larry Clapp for noticing the opportunity for improvement.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-21 10:31:16 +02:00
Elias Naur
e140f2a1c0
ui/app: (iOS) check for first responder status before changing focus
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-20 17:30:19 +02:00
Elias Naur
ac6f0c3f18
ui/app: (iOS) move memory pressure callback to view controller
...
With multiple GioViewControllers we might invoke the garbage collector
more than once, but in return we simplify the GioAppDelegate which will
become the interface to native widgets.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-20 16:50:35 +02:00
Elias Naur
e6a68db4c0
ui/app: (iOS) resize window when the software keyboard is shown
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-20 16:48:00 +02:00
Elias Naur
46ecbb86d2
ui/app: remove unused method
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-20 12:57:35 +02:00
Elias Naur
9c9656e729
ui/app: fix indent
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-20 12:51:13 +02:00
Elias Naur
d2132fce3b
ui/app: remove debug line
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-20 11:14:48 +02:00
Elias Naur
1f918c751e
cmd/gio: use package name for iOS binaries
...
To make it easier to locate the app in the Console app.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-20 11:10:59 +02:00
Elias Naur
4b3b8fa413
ui/app: (iOS) move UIWindow notifications to GioView
...
Simplifies GioAppDelegate and allows for proper deregistering of
listener.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-20 09:04:00 +02:00
Elias Naur
3099e7474f
README.md: fix link
...
Thanks to Antonio D'souza for noticing.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-18 21:25:13 +02:00
Elias Naur
c52376065e
cmd/gio: list available bundle ids when no match was found
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-16 14:24:58 +02:00
Elias Naur
9d9051d468
cmd/gio: provide DT* fields in iOS Info.plists
...
Required by App Store.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-16 13:50:55 +02:00
Elias Naur
6007a8c90e
cmd/gio: specify CFBundleSupportedPlatforms in iOS ipa bundles
...
Required by App Store.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-16 12:53:09 +02:00
Elias Naur
c4e46e0348
cmd/gio: add support for iOS App Store icons
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-16 12:32:53 +02:00
Elias Naur
50599bc65d
cmd/gio: support app icons
...
If there is an appicon.png file in the main package the gio tool
will use it for Android and iOS apps in buildmode exe.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-16 12:08:44 +02:00