diff options
| author | Fred Pierresteguy | 1994-02-11 08:52:53 +0000 |
|---|---|---|
| committer | Fred Pierresteguy | 1994-02-11 08:52:53 +0000 |
| commit | 63c414df27766696d9d03723023a8afc1885a8f8 (patch) | |
| tree | 0e19559b5b45e7d52d017086d9791907b8ad31a6 /src | |
| parent | 649ddbf59fbf99ab4922b9402ed1fd491e6b585a (diff) | |
| download | emacs-63c414df27766696d9d03723023a8afc1885a8f8.tar.gz emacs-63c414df27766696d9d03723023a8afc1885a8f8.zip | |
(xmenu_show) [USE_X_TOOLKIT]: return Qnil when val is null.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 06bc1300402..a2ba24cd86d 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -879,6 +879,8 @@ xmenu_show (f, val, x, y, menubarp, vw) | |||
| 879 | XMEventQue *feq_tmp; /* Foreign event queue temporary. */ | 879 | XMEventQue *feq_tmp; /* Foreign event queue temporary. */ |
| 880 | 880 | ||
| 881 | BLOCK_INPUT; | 881 | BLOCK_INPUT; |
| 882 | if (val == 0) return Qnil; | ||
| 883 | |||
| 882 | menu_id = ++popup_id_tick; | 884 | menu_id = ++popup_id_tick; |
| 883 | menu = lw_create_widget ("popup", val->name, menu_id, val, | 885 | menu = lw_create_widget ("popup", val->name, menu_id, val, |
| 884 | f->display.x->widget, 1, 0, | 886 | f->display.x->widget, 1, 0, |