Make XBoard grant- and revoke-rights buttons work
[xboard.git] / xpromo.c
index 49637b2..c2d7d9e 100644 (file)
--- a/xpromo.c
+++ b/xpromo.c
@@ -288,6 +288,12 @@ void PromoCallback(w, client_data, call_data)
     
     if (strcmp(name, _("clear board")) == 0) {
        EditPositionMenuEvent(ClearBoard, 0, 0);
+    } else
+    if (strcmp(name, _("grant rights")) == 0) {
+       EditPositionMenuEvent(GrantRights, fromX, fromY);
+    } else
+    if (strcmp(name, _("revoke rights")) == 0) {
+       EditPositionMenuEvent(NoRights, fromX, fromY);
     }
     PromoPopDown();
 }