php-gtk3 icon indicating copy to clipboard operation
php-gtk3 copied to clipboard

Can't open the link defined in GtkLabel tag

Open d47081 opened this issue 1 year ago • 1 comments

According to this example https://andor.com.br/php-gtk/cook/how-to-put-link-inside-gtklabel

On click the link:

Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile.

Is there any build-in functions for example to open links in the new tab?

i3 / Debian

d47081 avatar Apr 09 '24 15:04 d47081

Who handle the link is the OS, not the language or GTK. Gtk just send to OS "open this link"

I guess you need to see your .desktop of default browser, if has %u parameter

scorninpc avatar Apr 09 '24 17:04 scorninpc

is no way to operate some onclick event in GTK/PHP?

I can use GtkButton with activate method instead, but strange there is no access to the links events..

ps. found related article here

d47081 avatar Apr 10 '24 12:04 d47081

I dont get you problem, sorry. I think you dont understand how signals work

All widget has button-press signal, for example

scorninpc avatar Apr 10 '24 12:04 scorninpc