In GTK3, I could make a tooltip popup window, now I want to port them to GTK4, how to migrate them to GTK4
// GTK3
m_calltip_window = new Gtk.Window(Gtk.WindowType.POPUP);
m_calltip_window.set_type_hint(Gdk.WindowTypeHint.TOOLTIP);
m_calltip_window.default_width = 200;
m_calltip_window.default_height = 20;
m_calltip_window.realize();
// Port to GTK4
m_calltip_window = new Gtk.Window();
m_calltip_window.transient_for = code_view.root as Gtk.Window;
m_calltip_window.decorated = false;
m_calltip_window.titlebar = null;
m_calltip_window.default_width = 200;
m_calltip_window.default_height = 20;
m_calltip_window.realize();
Now it has followed issues:
- Window listed in the taskbar(it should not list in the taskbar)
- Window is not the topmost window(Stay as the topmost window)