mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
window: don't let window disposal cause app exit with greeter
If the greeter was shown and the window got closed, the whole app could exit without this.
This commit is contained in:
@ -209,6 +209,8 @@ sysprof_window_record_capture_action (GtkWidget *widget,
|
|||||||
greeter = g_object_new (SYSPROF_TYPE_GREETER,
|
greeter = g_object_new (SYSPROF_TYPE_GREETER,
|
||||||
"transient-for", self,
|
"transient-for", self,
|
||||||
NULL);
|
NULL);
|
||||||
|
gtk_application_add_window (GTK_APPLICATION (SYSPROF_APPLICATION_DEFAULT),
|
||||||
|
GTK_WINDOW (greeter));
|
||||||
gtk_window_present (GTK_WINDOW (greeter));
|
gtk_window_present (GTK_WINDOW (greeter));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user