[krbdev.mit.edu #5609] NIM GUI picture does not track tray icon

Kevin Koch via RT kfw-bugs at MIT.EDU
Thu Aug 2 12:49:44 EDT 2007


New patches:

Index: credwnd.c
===================================================================
--- credwnd.c   (revision 19739)
+++ credwnd.c   (working copy)
@@ -33,6 +33,8 @@

 khm_int32 attr_to_action[KCDB_ATTR_MAX_ID + 1];

+khm_int32   bHideWatermarks = 0;
+
 void
 khm_set_cw_element_font(wchar_t * name, LOGFONT * pfont) {
     khm_handle csp_cw = NULL;
@@ -462,6 +464,8 @@
                                  &hc_cw)))
         return;

+    khc_read_int32(hc_cw, L"HideWatermarks", &bHideWatermarks);
+
     if(KHM_FAILED(khc_open_space(hc_cw, L"Views", KHM_PERM_READ, 
&hc_vs)))
         goto _exit;

@@ -2271,7 +2275,8 @@
         rlogo.right = r_wnd->right;
         rlogo.top = r_wnd->bottom - tbl->kbm_logo_shade.cy;
         rlogo.bottom = r_wnd->bottom;
-        rie = IntersectRect(&ri, r_erase, &rlogo);
+        if (bHideWatermarks)    {rie = FALSE;}
+        else                    {rie = IntersectRect(&ri, r_erase, 
&rlogo);}
     } else {
         ZeroMemory(&rlogo, sizeof(rlogo));
         ZeroMemory(&ri, sizeof(ri));

Index: uiconfig.csv
===================================================================
--- uiconfig.csv        (revision 19739)
+++ uiconfig.csv        (working copy)
@@ -4,6 +4,7 @@
   AutoStart,KC_INT32,0,Start Khimaira when Windows starts
   AutoImport,KC_INT32,1,Import Windows creds when Khimaira starts
   AutoDetectNet,KC_INT32,1,Automatically detect network connectivity 
changes
+  HideWatermarks,KC_INT32,0,Suppress watermark display
   KeepRunning,KC_INT32,1,Keep running after closing Khimaira
   DefaultView,KC_STRING,ByIdentity,
   DefaultViewMini,KC_STRING,CompactIdentity,



More information about the kfwdev mailing list