scorninpc / php-gtk3

GTK3 extension for PHP
https://andor.com.br/
GNU Lesser General Public License v3.0
118 stars 13 forks source link

Can't open the link defined in GtkLabel tag #89

Closed d47081 closed 7 months ago

d47081 commented 7 months ago

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

scorninpc commented 7 months ago

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

d47081 commented 7 months ago

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

scorninpc commented 7 months ago

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

All widget has button-press signal, for example