GTK4 and toolbar: how hard it is to bring it back

@andyholmes ,

I’m not planning on working with touchscreen.

My software will not be working with the mobile device.

Just plain old laptop/desktop environment.

Thank yuo.

Okay, then that’s still the event controller you want.

Could you put some code please?

Basically as I understand I usually have to do: g_signal_connect() and then provide a handler with the appropriate signature.

But in this case the signal is not available and so I can’t use the function to connect/bind the event to the handler.

Thx.

Well, I did link to the documentation. You more or less need to do:

GtkGesture *gesture = gtk_gesture_click_new ();
g_signal_connect (gesture,
                  "released",
                  G_CALLBACK (on_released),
                  user_data);

gtk_widget_add_controller (GTK_WIDGET (box), gesture);

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