diff options
| author | Werner Koch <[email protected]> | 2009-06-12 16:58:45 +0000 | 
|---|---|---|
| committer | Werner Koch <[email protected]> | 2009-06-12 16:58:45 +0000 | 
| commit | 148f51bb3e6e592333250ef73f2b801a10734083 (patch) | |
| tree | 08ea4fe8f7b9009372821e9b28e41df294b248d8 /src/w32-util.c | |
| parent | Fix possible assert in the card edit. (diff) | |
| download | gpgme-148f51bb3e6e592333250ef73f2b801a10734083.tar.gz gpgme-148f51bb3e6e592333250ef73f2b801a10734083.zip | |
Improved W32 SetForegroundWindow hacks.
Diffstat (limited to '')
| -rw-r--r-- | src/w32-util.c | 19 | 
1 files changed, 16 insertions, 3 deletions
| diff --git a/src/w32-util.c b/src/w32-util.c index a4a01f40..a4b713ed 100644 --- a/src/w32-util.c +++ b/src/w32-util.c @@ -393,7 +393,7 @@ _gpgme_get_conf_int (const char *key, int *value)  void  -_gpgme_allow_set_foregound_window (pid_t pid) +_gpgme_allow_set_foreground_window (pid_t pid)  {    static int initialized;    static BOOL (WINAPI * func)(DWORD); @@ -416,9 +416,22 @@ _gpgme_allow_set_foregound_window (pid_t pid)      }    if (!pid || pid == (pid_t)(-1)) -    ; +    { +      TRACE1 (DEBUG_ENGINE, "gpgme:AllowSetForegroundWindow", 0, +	      "no action for pid %d", (int)pid); +    }    else if (func) -    func (pid); +    { +      int rc = func (pid); +      TRACE2 (DEBUG_ENGINE, "gpgme:AllowSetForegroundWindow", 0, +	      "called for pid %d; result=%d", (int)pid, rc); + +    } +  else +    { +      TRACE0 (DEBUG_ENGINE, "gpgme:AllowSetForegroundWindow", 0, +	      "function not available"); +    }  } | 
