Comment a few things I need to fix.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 10 May 2003 11:26:33 +0000 (11:26 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 10 May 2003 11:26:33 +0000 (11:26 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@3177 cda61777-01e9-0310-a592-d414129be87e

mac/macctrls.c

index db454cf..2529c8c 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: macctrls.c,v 1.39 2003/04/14 23:47:07 ben Exp $ */
+/* $Id: macctrls.c,v 1.40 2003/05/10 11:26:33 ben Exp $ */
 /*
  * Copyright (c) 2003 Ben Harris
  * All rights reserved.
@@ -221,6 +221,7 @@ static void panellist_handler(union control *ctrl, void *dlg, void *data,
 {
     struct macctrls *mcs = dlg;
 
+    /* XXX what if there's no selection? */
     if (event == EVENT_SELCHANGE)
        macctrl_switchtopanel(mcs, dlg_listbox_index(ctrl, dlg) + 1);
 }
@@ -263,6 +264,7 @@ void macctrl_layoutbox(struct controlbox *cb, WindowPtr window,
     panellist.listbox.height = 20;
     panellist.listbox.percentwidth = 100;
     macctrl_listbox(mcs, window, &curstate, &panellist);
+    /* XXX Start with panel 1 active */
 
     curstate.pos.h = rect.left + 13 + 160 + 13;
     curstate.pos.v = rect.bottom - 33;
@@ -815,6 +817,7 @@ static void macctrl_listbox(struct macctrls *mcs, WindowPtr window,
     Rect bounds;
     Size olen;
 
+    /* XXX Use label */
     assert(ctrl->listbox.percentwidth == 100);
     mc->generic.type = MACCTRL_LISTBOX;
     mc->generic.ctrl = ctrl;