mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-gtk: exit when window is closed
This commit is contained in:
@ -251,7 +251,10 @@ main (int argc,
|
|||||||
"default-height", 600,
|
"default-height", 600,
|
||||||
"document", document,
|
"document", document,
|
||||||
NULL);
|
NULL);
|
||||||
|
g_signal_connect_swapped (window,
|
||||||
|
"close-request",
|
||||||
|
G_CALLBACK (g_main_loop_quit),
|
||||||
|
main_loop);
|
||||||
gtk_window_present (window);
|
gtk_window_present (window);
|
||||||
g_main_loop_run (main_loop);
|
g_main_loop_run (main_loop);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user