Closed sungsphinx closed 10 months ago
This is cool! This is fits!
If the dialog has not been set as transient for the main window automatically, you could try:
gtk_window_set_transient_for (GTK_WINDOW (dialog_window_here), GTK_WINDOW(application_window_here));
So, have you them doing? Or I will make this feature?
I am not sure how to implement the functionality or extra-child stuff, so probably not, maybe you could? (obviously no rush of course)
Of course. I'll take care of it.
Of course. I'll take care of it.
Thanks :+1:
Didn't realise that's how you do it, still learning I guess 😅
With GTK I work not often, but this fix does the problem. I think the window with parameters is don't dialog in the usual sense. And https://docs.gtk.org/gtk4/class.Dialog.html the dialog is deprecated. I decided leave it as it is and add only modal.
Yes, I know that adw dialog is available, but why the fix window to add dialog if this look identically.
AdwMessageDialog Docs
Currently, the dialog looks pretty weird and clunky:
The furthest I have got with AdwMessageDialog is:
Code to show a basic AdwMessageDialog in
main-window.c
:You could use the AdwMessageDialog extra-child property to add things like text boxes, etc.
Also, setting the dialog window as transient / showing over the main window doesn't work:
What it should be like:
It should be centered, move the main window with the dialog & not let you focus the main window while the dialog open.