add menu separator (Motif) newapi

Sun, 15 Dec 2024 22:16:12 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 15 Dec 2024 22:16:12 +0100
branch
newapi
changeset 418
a57268d20ed9
parent 417
f0fee61a70be
child 419
7d15cad351fc

add menu separator (Motif)

ui/motif/menu.c file | annotate | diff | comparison | revisions
--- a/ui/motif/menu.c	Sun Dec 15 22:13:05 2024 +0100
+++ b/ui/motif/menu.c	Sun Dec 15 22:16:12 2024 +0100
@@ -150,7 +150,8 @@
 }
 
 void add_menuseparator_widget(Widget p, int i, UiMenuItemI *item, UiObject *obj) {
-    
+    Widget s = XmCreateSeparatorGadget (p, "menuseparator", NULL, 0);
+    XtManageChild(s);
 }
 
 void add_checkitem_widget(Widget p, int i, UiMenuItemI *item, UiObject *obj) {

mercurial