summary refs log tree commit diff stats
path: root/plugins/gtkpref
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gtkpref')
-rw-r--r--plugins/gtkpref/gtkpref.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/gtkpref/gtkpref.c b/plugins/gtkpref/gtkpref.c
index 6bd20102..18a6d958 100644
--- a/plugins/gtkpref/gtkpref.c
+++ b/plugins/gtkpref/gtkpref.c
@@ -25,7 +25,6 @@
  */
 
 #include <windows.h>
-#include <wininet.h>
 
 #include "xchat-plugin.h"
 
@@ -34,7 +33,20 @@ static xchat_plugin *ph;   /* plugin handle */
 static void
 launch_tool ()
 {
+	STARTUPINFO si;
+	PROCESS_INFORMATION pi;
 
+	ZeroMemory (&si, sizeof (si));
+	si.cb = sizeof (si);
+	ZeroMemory (&pi, sizeof (pi));
+
+	if (!CreateProcess ( NULL, "gtk2-prefs.exe", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
+	{
+		xchat_print (ph, "Error launching the GTK+ Preference Tool! Maybe the executable is missing?");
+	}
+
+	CloseHandle (pi.hProcess);
+	CloseHandle (pi.hThread);
 }
 
 int