00:00
orivej_ has quit [Ping timeout: 256 seconds]
00:01
orivej has joined #racket
00:11
orivej has quit [Ping timeout: 265 seconds]
00:11
orivej_ has joined #racket
00:15
catonano_ has joined #racket
00:19
catonano_ is now known as catonano
00:24
orivej_ has quit [Ping timeout: 246 seconds]
00:25
orivej has joined #racket
00:34
orivej has quit [Ping timeout: 256 seconds]
00:34
orivej has joined #racket
00:41
nan` has quit [Ping timeout: 265 seconds]
00:48
orivej has quit [Ping timeout: 256 seconds]
00:49
orivej has joined #racket
00:57
orivej_ has joined #racket
00:57
orivej has quit [Ping timeout: 265 seconds]
01:07
orivej_ has quit [Ping timeout: 272 seconds]
01:07
orivej has joined #racket
01:15
orivej has quit [Ping timeout: 240 seconds]
01:15
orivej has joined #racket
01:26
orivej has quit [Read error: Connection reset by peer]
01:26
orivej has joined #racket
01:56
orivej has quit [Ping timeout: 256 seconds]
01:56
orivej has joined #racket
02:05
orivej has quit [Ping timeout: 265 seconds]
02:11
libertyprime has joined #racket
02:37
YuGiOhJCJ has joined #racket
03:10
dmiles has quit [Read error: Connection reset by peer]
03:14
dmiles has joined #racket
03:38
<
lavaflow >
I'm working with racket/gui and I'm wondering what the proper way to create a menu% with dynamic content is
03:39
<
lavaflow >
I can use the demand-callback to clear the menu then add items to it, to refresh the menu's content whenever the user invokes it, however this seems error prone
03:40
<
lavaflow >
on macos at least, when I click on a menu the demand callback seems to get called twice in rapid succession. this doesn't cause problems if the demand-callback completes quickly, but if it's a bit slow it will get invoked a second time before the first is finished
03:40
<
lavaflow >
if the demand callback is just naively looping on delete to clear the menu, then adding menu-items back in... well this isn't reentrant
03:40
<
lavaflow >
the end result is more often than not an empty menu
03:40
<
samth >
can you use `delete` to drop items from the menu, and then create new ones with the appropriate parent when you add items?
03:41
<
lavaflow >
I'll pastebin the code I have right now (about 20-some lines):
03:43
<
lavaflow >
basically in my demand callback I first do (for ([mi (send m get-items)]) (send mi delete))
03:43
<
lavaflow >
oh, that code contains my (currently working but kinda hacky) workaround of not invoking (on-server '(list-history)) from the demand callback. that's the call that's 'slow'
03:44
<
samth >
lavaflow: my suggestion is just to call delete for individual ones that need to be deleted
03:45
<
samth >
but I don't know enough about the GUI to say much more
03:47
<
lavaflow >
I don't see any way to prepend menu items to the top of a menu. when I create menu-items% with the parent set to the menu, they get added to the end.
03:47
<
lavaflow >
so I don't see any choice but to clear the menu each time if I want the most recent history items at the top of the history menu :/
04:42
pagnol has joined #racket
04:44
<
pagnol >
What am I missing?
04:47
narimiran has joined #racket
04:53
epony has joined #racket
05:18
<
pagnol >
Ah got it...
05:29
lbeckman314 has quit [Ping timeout: 260 seconds]
05:33
sauvin has joined #racket
05:50
sauvin is now known as Sauvin
05:56
catonano has quit [Quit: catonano]
06:02
catonano has joined #racket
06:11
nan` has joined #racket
06:19
epony has quit [Quit: reconfig]
06:30
cheers has joined #racket
06:30
epony has joined #racket
06:35
epony has quit [Remote host closed the connection]
06:41
epony has joined #racket
06:54
nisstyre has joined #racket
06:55
libertyprime has quit [Ping timeout: 265 seconds]
07:01
nan` has quit [Ping timeout: 246 seconds]
07:01
libertyprime has joined #racket
07:15
libertyprime has quit [Remote host closed the connection]
07:27
tlcu has joined #racket
07:53
Sgeo has quit [Read error: Connection reset by peer]
07:57
nan` has joined #racket
08:06
nan` has quit [Ping timeout: 260 seconds]
08:23
orivej has joined #racket
08:50
orivej has quit [Ping timeout: 264 seconds]
08:50
orivej has joined #racket
08:59
orivej has quit [Ping timeout: 260 seconds]
09:00
orivej has joined #racket
09:12
tlcu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:12
orivej has quit [Ping timeout: 260 seconds]
09:12
orivej has joined #racket
09:16
tlcu has joined #racket
09:23
tlcu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:28
orivej has quit [Ping timeout: 264 seconds]
09:28
orivej_ has joined #racket
09:43
pagnol has quit [Read error: No route to host]
09:59
jellie has joined #racket
10:10
jellie has quit [Quit: WeeChat 2.8]
10:18
tlcu has joined #racket
10:23
orivej has joined #racket
10:23
orivej_ has quit [Ping timeout: 256 seconds]
10:41
iyzsong has joined #racket
10:42
true-grue has joined #racket
10:46
orivej has quit [Quit: No Ping reply in 180 seconds.]
10:47
orivej has joined #racket
10:56
orivej has quit [Quit: No Ping reply in 180 seconds.]
10:57
orivej has joined #racket
11:05
orivej has quit [Quit: No Ping reply in 180 seconds.]
11:07
orivej has joined #racket
11:13
dddddd has joined #racket
11:18
orivej has quit [Quit: No Ping reply in 180 seconds.]
11:19
orivej has joined #racket
11:31
orivej_ has joined #racket
11:32
orivej has quit [Ping timeout: 272 seconds]
11:52
dmiles has quit [Ping timeout: 246 seconds]
11:56
TCZ has joined #racket
12:03
tlcu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:06
TCZ has quit [Quit: Leaving]
12:28
SGASAU has joined #racket
13:04
orivej_ has quit [Read error: Connection reset by peer]
13:04
orivej has joined #racket
13:23
SGASAU has quit [Ping timeout: 240 seconds]
13:24
phwalkr has joined #racket
13:26
SGASAU has joined #racket
13:38
TCZ has joined #racket
13:39
dmiles has joined #racket
13:59
TCZ has quit [Quit: Leaving]
14:04
orivej has quit [Quit: No Ping reply in 180 seconds.]
14:06
orivej has joined #racket
14:19
ermo has joined #racket
14:20
aeth has joined #racket
14:20
TCZ has joined #racket
14:37
narimiran has quit [Ping timeout: 256 seconds]
14:55
SGASAU has quit [Read error: Connection reset by peer]
14:56
SGASAU has joined #racket
15:03
TCZ has quit [Quit: Leaving]
15:04
efm has joined #racket
15:18
orivej has quit [Ping timeout: 258 seconds]
15:18
orivej has joined #racket
15:33
orivej_ has joined #racket
15:33
orivej has quit [Ping timeout: 264 seconds]
15:46
orivej_ has quit [Ping timeout: 258 seconds]
15:46
orivej has joined #racket
16:05
orivej has quit [Quit: No Ping reply in 180 seconds.]
16:07
orivej has joined #racket
16:07
cantstanya has joined #racket
16:21
efm has quit [Quit: Konversation terminated!]
16:21
orivej has quit [Ping timeout: 260 seconds]
16:21
orivej_ has joined #racket
16:30
orivej_ has quit [Ping timeout: 240 seconds]
16:31
orivej has joined #racket
16:40
cantstanya is now known as frank
16:41
frank is now known as cantstanya
16:55
orivej has quit [Quit: No Ping reply in 180 seconds.]
16:56
orivej has joined #racket
17:03
narimiran has joined #racket
17:05
orivej has quit [Ping timeout: 260 seconds]
17:05
orivej_ has joined #racket
17:22
nebunez has joined #racket
17:25
zmt00 has joined #racket
17:52
efm has joined #racket
18:21
<
dzoe >
samth: Just to be sure, I need to fork racket/gui and add the scribblings to gui-doc/scribblings/gui/dynamic.scrbl, right?
18:21
<
dzoe >
I've just spent some time trying to figure out how the racket/share/pkgs part works and where it gets pulled from :)
18:23
<
samth >
dzoe: you want to do the following steps:
18:23
<
samth >
$ cd .../racket/extra-pkgs
18:24
<
samth >
$ raco pkg update --clone gui
18:24
<
samth >
(answer yes to everything)
18:24
Sauvin has quit [Read error: Connection reset by peer]
18:24
<
samth >
$ cd gui/gui-doc/scribblings/gui/
18:24
<
samth >
and then do whatever git command you want to create a PR
18:24
<
dzoe >
What can I say ...
18:24
<
dzoe >
I want my rcs back again!
18:25
<
dzoe >
There is a git command that creates PR directly against upstream repo?
18:25
lbeckman314 has joined #racket
18:25
<
dzoe >
I thought I need to fork that on github ...
18:26
<
samth >
dzoe: no, you'd need to fork and add the appropriate remote, etc
18:26
<
samth >
dzoe: however, I highly recomend the `hub` tool
18:26
<
samth >
in which case it would be:
18:26
<
samth >
$ edit stuff ...
18:26
<
samth >
$ git commit -a -m "some changes"
18:27
<
samth >
$ git push dzoe master
18:27
<
samth >
$ hub pull-request
18:27
jellie has joined #racket
18:27
<
dzoe >
hub/focal 2.7.0~ds1-1 amd64
18:27
<
dzoe >
That should do the trick
18:27
<
dzoe >
Ok, I would be more than happy if I don't need to maintain forked repositories of everything.
18:27
<
dzoe >
samth: thanks!
18:28
<
samth >
dzoe: that creates a fork on your github account
18:28
<
samth >
just for `racket/gui` of course
18:30
<
dzoe >
Yup, but basically it gets started as the racket/racket git submodule, right?
18:33
<
samth >
dzoe: you start by cloning/building github.com/racket/racket, indeed (that was the ".../racket/" directory I assumed at the top)
18:33
<
dzoe >
Perspective correct texture mapping with goraud shading rendered real-time in pure Racket :)
18:33
<
dzoe >
Yep, racket/racket is my daily load of bread ...
18:46
KindTwo has joined #racket
18:50
KindTwo is now known as KindOne
18:56
KindTwo has joined #racket
18:58
KindOne has quit [Ping timeout: 272 seconds]
19:01
KindTwo is now known as KindOne
19:05
KindTwo has joined #racket
19:06
KindOne has quit [Ping timeout: 264 seconds]
19:06
tlcu has joined #racket
19:09
KindTwo is now known as KindOne
19:20
phwalkr has quit []
19:27
orivej_ has quit [Ping timeout: 258 seconds]
19:28
orivej has joined #racket
19:31
SGASAU has quit [Ping timeout: 256 seconds]
19:31
SGASAU has joined #racket
19:41
jellie has quit [Quit: WeeChat 2.8]
19:47
orivej has quit [Quit: No Ping reply in 180 seconds.]
19:49
orivej has joined #racket
19:56
tlcu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:00
tlcu has joined #racket
20:01
orivej has quit [Quit: No Ping reply in 180 seconds.]
20:03
orivej has joined #racket
20:13
orivej has quit [Quit: No Ping reply in 180 seconds.]
20:14
orivej has joined #racket
20:18
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
20:28
narimiran has quit [Ping timeout: 265 seconds]
20:32
orivej has quit [Quit: No Ping reply in 180 seconds.]
20:33
orivej has joined #racket
20:33
selimcan has joined #racket
20:40
orivej has quit [Ping timeout: 256 seconds]
20:41
orivej has joined #racket
20:46
cantstanya has quit [Remote host closed the connection]
20:47
cantstanya has joined #racket
20:49
notzmv has joined #racket
20:50
nan` has joined #racket
21:00
nan` has quit [Ping timeout: 260 seconds]
21:24
TCZ has joined #racket
21:29
selimcan has quit [Ping timeout: 264 seconds]
21:38
orivej has quit [Quit: No Ping reply in 180 seconds.]
21:39
orivej has joined #racket
21:44
tlcu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:54
Sgeo has joined #racket
22:17
TCZ has quit [Quit: Leaving]
22:17
SGASAU has quit [Remote host closed the connection]
22:21
SGASAU has joined #racket
22:34
SGASAU has quit [Ping timeout: 240 seconds]
22:37
SGASAU has joined #racket
22:48
true-grue has quit [Read error: Connection reset by peer]
22:53
orivej has quit [Ping timeout: 256 seconds]
22:53
orivej has joined #racket
22:59
SGASAU has quit [Remote host closed the connection]
23:05
SGASAU has joined #racket
23:47
sagax has joined #racket
23:53
orivej has quit [Ping timeout: 265 seconds]
23:59
orivej has joined #racket