GTK4: Broadwayd and Execute sentence in javascript. (gtk_show_uri)

Is there a known way to execute a minimum amount of JavaScript in the client’s browser?

I have tried with

gtk_show_uri(gtk_event_controller_get_widget(GTK_EVENT_CONTROLLER(controller)), “javascript:document.body.style.cursor=‘text’;”, GDK_CURRENT_TIME);

But it is not supported by broadwayd.

Hi,

I don’t know if broadway can interact with the browser it runs on, but gtk_show_uri is definitely not the API you’re looking for.

What are you trying to achieve? just change some cursor style on demand? if yes, have you tried this?

gtk_widget_set_cursor_from_name(widget, "text");

That is not a URI.

In general: no, you can’t do what you want to achieve.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.