mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-18 03:30:18 +00:00
Destroy utility windows with their parents.
This commit is contained in:
@@ -678,6 +678,7 @@ gtkutil_window_new (char *title, char *role, int width, int height, int flags)
|
|||||||
{
|
{
|
||||||
gtk_window_set_type_hint (GTK_WINDOW (win), GDK_WINDOW_TYPE_HINT_DIALOG);
|
gtk_window_set_type_hint (GTK_WINDOW (win), GDK_WINDOW_TYPE_HINT_DIALOG);
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (win), GTK_WINDOW (parent_window));
|
gtk_window_set_transient_for (GTK_WINDOW (win), GTK_WINDOW (parent_window));
|
||||||
|
gtk_window_set_destroy_with_parent (GTK_WINDOW (win), TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return win;
|
return win;
|
||||||
|
|||||||
Reference in New Issue
Block a user