diff src/glyphs-msw.c @ 1913:7473844a83d3

[xemacs-hg @ 2004-02-17 15:20:41 by james] Check in_display instead of passing fallible in_redisplay parameters.
author james
date Tue, 17 Feb 2004 15:20:57 +0000
parents 543769b89fed
children 04bc9d2f42c7
line wrap: on
line diff
--- a/src/glyphs-msw.c	Mon Feb 16 22:51:09 2004 +0000
+++ b/src/glyphs-msw.c	Tue Feb 17 15:20:57 2004 +0000
@@ -2036,7 +2036,7 @@
       if (CONSP (item))
 	item = XCAR (item);
 
-      if (gui_item_active_p (item, 1))
+      if (gui_item_active_p (item))
 	qxeSetWindowLong (WIDGET_INSTANCE_MSWINDOWS_HANDLE (p),
 			  GWL_STYLE, style & ~WS_DISABLED);
       else
@@ -2227,7 +2227,7 @@
 
   CHECK_MSWINDOWS_DEVICE (device);
 
-  if (!gui_item_active_p (gui, 0))
+  if (!gui_item_active_p (gui))
     flags |= WS_DISABLED;
 
   style = pgui->style;
@@ -2372,7 +2372,7 @@
 
   wnd = WIDGET_INSTANCE_MSWINDOWS_HANDLE (ii);
   /* set the checked state */
-  if (gui_item_selected_p (gui, 0))
+  if (gui_item_selected_p (gui))
     qxeSendMessage (wnd, BM_SETCHECK, (WPARAM)BST_CHECKED, 0);
   else
     qxeSendMessage (wnd, BM_SETCHECK, (WPARAM)BST_UNCHECKED, 0);
@@ -2398,7 +2398,7 @@
   Lisp_Image_Instance *ii = XIMAGE_INSTANCE (image_instance);
 
   /* buttons checked or otherwise */
-  if (gui_item_selected_p (IMAGE_INSTANCE_WIDGET_ITEM (ii), 1))
+  if (gui_item_selected_p (IMAGE_INSTANCE_WIDGET_ITEM (ii)))
     qxeSendMessage (WIDGET_INSTANCE_MSWINDOWS_HANDLE (ii),
 		    BM_SETCHECK, (WPARAM)BST_CHECKED, 0);
   else
@@ -2640,7 +2640,7 @@
     {
       int idx = add_tab_item (image_instance, wnd, XCAR (rest), domain, i);
       assert (idx == i);
-      if (gui_item_selected_p (XCAR (rest), 0))
+      if (gui_item_selected_p (XCAR (rest)))
 	selected = i;
       i++;
     }
@@ -2680,7 +2680,7 @@
 
 	  LIST_LOOP (rest, XCDR (IMAGE_INSTANCE_WIDGET_ITEMS (ii)))
 	    {
-	      if (gui_item_equal_sans_selected (XCAR (rest), selected, 0, 1))
+	      if (gui_item_equal_sans_selected (XCAR (rest), selected, 0))
 		{
 		  Lisp_Object old_selected =
 		    gui_item_list_find_selected
@@ -2715,7 +2715,7 @@
 	    {
 	      add_tab_item (image_instance, wnd, XCAR (rest),
 			    IMAGE_INSTANCE_FRAME (ii), i);
-	      if (gui_item_selected_p (XCAR (rest), 1))
+	      if (gui_item_selected_p (XCAR (rest)))
 		selected_idx = i;
 	      i++;
 	    }