diff options
author | Berke Viktor <berkeviktor@aol.com> | 2011-08-17 15:22:40 +0200 |
---|---|---|
committer | Berke Viktor <berkeviktor@aol.com> | 2011-08-17 15:22:40 +0200 |
commit | 5472a813fa62370926ace45d7506f098368428eb (patch) | |
tree | 1a17c055b7452af55fa312fc0ff600314bf42f8a /plugins/gtkpref | |
parent | ce902a39266619a24af32844816436ca08ef45ac (diff) |
working gtkpref plugin
Diffstat (limited to 'plugins/gtkpref')
-rw-r--r-- | plugins/gtkpref/gtkpref.c | 14 |
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 |