From: VMware, Inc <> Date: Mon, 26 Apr 2010 17:57:52 +0000 (-0700) Subject: Toolbox GTK: make file selection dialog modal X-Git-Tag: 2010.04.25-253928~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5b8b7d36c0772043d2ef9a7dd4d503bc80ce016;p=thirdparty%2Fopen-vm-tools.git Toolbox GTK: make file selection dialog modal Otherwise crafty users may switch back to main window and wreck havoc upon us. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/toolbox/toolboxScripts.c b/open-vm-tools/toolbox/toolboxScripts.c index 5228e1c8c..7a2bb2873 100644 --- a/open-vm-tools/toolbox/toolboxScripts.c +++ b/open-vm-tools/toolbox/toolboxScripts.c @@ -681,6 +681,7 @@ Scripts_OnBrowse(gpointer btn, // IN: unused scriptsUseFileDlg = TRUE; + gtk_window_set_modal(GTK_WINDOW(scriptsFileDlg), TRUE); gtk_widget_show(scriptsFileDlg); defaultPath = gtk_entry_get_text(GTK_ENTRY(scriptsPath));