summary refs log tree commit diff stats
path: root/plugins/gtkpref
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-08-17 15:22:40 +0200
committerBerke Viktor <berkeviktor@aol.com>2011-08-17 15:22:40 +0200
commit5472a813fa62370926ace45d7506f098368428eb (patch)
tree1a17c055b7452af55fa312fc0ff600314bf42f8a /plugins/gtkpref
parentce902a39266619a24af32844816436ca08ef45ac (diff)
working gtkpref plugin
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