X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=w32log.c;h=77e1622aa99925c1abce24f07f02641ef4f983c4;hp=5b4389f8bd5a99978198b973aa2c8c074f72d6e2;hb=8c2814a1ddb4b5a4acef3578005f3f1f5a6c96bc;hpb=7863f89ed3f4cd637359b03db31f37239c5a98f7 diff --git a/w32log.c b/w32log.c index 5b4389f8..77e1622a 100644 --- a/w32log.c +++ b/w32log.c @@ -1,4 +1,4 @@ -const char w32log_rcs[] = "$Id: w32log.c,v 1.45 2012/05/24 15:05:17 fabiankeil Exp $"; +const char w32log_rcs[] = "$Id: w32log.c,v 1.51 2016/07/23 23:25:18 ler762 Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/w32log.c,v $ @@ -172,6 +172,9 @@ static struct _Pattern { "Connect: Reusing server socket", STYLE_HIGHLIGHT }, { "Connect: Created new connection to", STYLE_HIGHLIGHT }, { "hung up on us", STYLE_HIGHLIGHT }, + { "Info: Loading actions file:", STYLE_HIGHLIGHT }, + { "Info: Loading filter file:", STYLE_HIGHLIGHT }, + { "Info: Now toggled ", STYLE_HIGHLIGHT }, { "Crunching Referer:", STYLE_HIGHLIGHT }, /* what are all the possible error strings?? */ { "Error:", STYLE_HIGHLIGHT }, @@ -550,14 +553,6 @@ int LogPutStringNoMatch(const char *pszText, int style) *********************************************************************/ void LogShowActivity(void) { - int i; - - /* Try to figure out if SetIdleIcon() is thread-safe */ - for (i = 0; i < 1000; i++) - { - SetIdleIcon(); - } - /* Start some activity timers */ if (g_bShowActivityAnimation) { @@ -732,8 +727,8 @@ HWND CreateLogWindow(HINSTANCE hInstance, int nCmdShow) /* SendMessage(g_hwndLogBox, EM_SETWORDWRAPMODE, 0, 0); */ /* Subclass the control to catch certain messages */ - g_fnLogBox = (WNDPROC) GetWindowLong(g_hwndLogBox, GWL_WNDPROC); - SetWindowLong(g_hwndLogBox, GWL_WNDPROC, (LONG) LogRichEditProc); + g_fnLogBox = (WNDPROC) GetWindowLongPtr(g_hwndLogBox, GWLP_WNDPROC); + SetWindowLongPtr(g_hwndLogBox, GWLP_WNDPROC, (LONG_PTR) LogRichEditProc); /* Minimizing looks stupid when the log window is not on the task bar, so hide instead */ if (!g_bShowOnTaskBar &&