changeset 37524:f0a59a792f7d

(xlwmenu_window_p): New function.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 30 Apr 2001 14:34:54 +0000
parents e33c316f9e70
children 3ae3b09f76a1
files lwlib/xlwmenu.c
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/xlwmenu.c	Mon Apr 30 14:03:07 2001 +0000
+++ b/lwlib/xlwmenu.c	Mon Apr 30 14:34:54 2001 +0000
@@ -1195,6 +1195,23 @@
   }
 }
 
+/* Value is non-zero if WINDOW is part of menu bar widget W.  */
+
+int
+xlwmenu_window_p (w, window)
+     Widget w;
+     Window window;
+{
+  XlwMenuWidget mw = (XlwMenuWidget) w;
+  int i;
+  
+  for (i = 0; i < mw->menu.windows_length; ++i)
+    if (window == mw->menu.windows[i].window)
+      break;
+
+  return i < mw->menu.windows_length;
+}
+
 /* Make the window fit in the screen */
 static void
 fit_to_screen (mw, ws, previous_ws, horizontal_p)