guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guile-gi: Using Gtk.show_uri and application:get-active-window


From: Luis Felipe
Subject: Re: guile-gi: Using Gtk.show_uri and application:get-active-window
Date: Sun, 13 Mar 2022 00:50:05 +0000

On Friday, March 11th, 2022 at 11:59 PM, Luis Felipe 
<luis.felipe.la@protonmail.com> wrote:

> Hi, I want to display the help of an application on Yelp when users click on 
> "MenuButton → Help" or when they press F1. I already have the relevant 
> actions connected to a procedure that looks like this:
> 

> (define (on-help action app)
> 

> #| Show application manual in Yelp. |#
> 

> (let [(window (get-active-window app))]
> 

> (show-uri window "help:geteka" CURRENT_TIME)))
> 

> [...]
> 

> Also, I don't know whether I'm using the CURRENT_TIME constant correctly. It 
> is part of GDK 4 (GDK_CURRENT_TIME),² which I also required in my module.

Not only CURRENT_TIME, but also "show_uri", which is a GTK function. How do I 
use these symbols? Just like that, without any prefix?

Attachment: publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]