[gnome-usage] process-row: Make the QuitProcessDialog transient to the main window



commit a7caf291e59d49fff618905ca2abd7968e658dc8
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Nov 6 11:25:16 2017 +0100

    process-row: Make the QuitProcessDialog transient to the main window
    
    Dialog windows should be set transient for the main application
    window they were spawned from. This allows window managers to e.g.
    keep the dialog on top of the main window, or center the dialog
    over the main window.

 src/process-row.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/process-row.vala b/src/process-row.vala
index 3c9da03..a7e9f31 100644
--- a/src/process-row.vala
+++ b/src/process-row.vala
@@ -223,6 +223,7 @@ namespace Usage
                     return;
 
                 var dialog = new QuitProcessDialog(process.pid, process.display_name);
+                dialog.set_transient_for(get_toplevel() as Gtk.Window);
                 dialog.show_all();
             }
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]