From cf76e89b548c6bdeea1a8db1cf5cb451b7223b4f Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 25 Sep 1998 18:51:02 +0000 Subject: [PATCH] Updated Makefile.i to autogenerate on changes -mig --- src/Makefile.in | 18 +++++++++++------- src/dlg.c | 4 +++- src/dlg.h | 2 +- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/Makefile.in b/src/Makefile.in index cd98316af..d8e08cca9 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -1,16 +1,18 @@ srcdir = @srcdir@ VPATH = @srcdir@ +SHELL = /bin/sh rootdir = $(srcdir)/.. @MCFG@@MCF@ -CFLAGS = $(XCFLAGS) +CFLAGS = $(XCFLAGS) CPPFLAGS = $(XCPPFLAGS) -DREGEX_MALLOC -LDFLAGS = $(XLDFLAGS) -DEFS = $(XDEFS) -LIBS = $(XLIBS) @TERMNET@ $(XLIB) @TERMNET@ -OURLIBS = @LVFS@ @LSLANG@ @LEDIT@ @LINTL@ -INSTALL = @INSTALL@ +LDFLAGS = $(XLDFLAGS) +DEFS = $(XDEFS) +LIBS = $(XLIBS) @TERMNET@ $(XLIB) @TERMNET@ +OURLIBS = @LVFS@ @LSLANG@ @LEDIT@ @LINTL@ +INSTALL = @INSTALL@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ @@ -55,8 +57,10 @@ DISTFILES = \ # Should be: mc $(srcdir)/mc.hlp but it's remaking it always -all: mc mcmfmt @saver_target@ +all: mc mcmfmt @saver_target@ Makefile +Makefile: $(srcdir)/Makefile.in $(rootdir)/config.status + cd $(rootdir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status .c.o: $(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $< diff --git a/src/dlg.c b/src/dlg.c index beebe0d03..d0383e64a 100644 --- a/src/dlg.c +++ b/src/dlg.c @@ -700,7 +700,7 @@ static int dlg_try_hotkey (Dlg_head *h, int d_key) return handled; } -void dlg_key_event (Dlg_head *h, int d_key) +int dlg_key_event (Dlg_head *h, int d_key) { int handled; @@ -730,6 +730,8 @@ void dlg_key_event (Dlg_head *h, int d_key) if (!handled) dialog_handle_key (h, d_key); (*h->callback) (h, d_key, DLG_POST_KEY); + + return handled; } } diff --git a/src/dlg.h b/src/dlg.h index 097ae6d57..3f4602221 100644 --- a/src/dlg.h +++ b/src/dlg.h @@ -294,7 +294,7 @@ void tk_end_frame (); void x_set_dialog_title (Dlg_head *h, char *title); /* The inner workings of run_dlg, exported for the Tk and XView toolkits */ -void dlg_key_event (Dlg_head *h, int d_key); +int dlg_key_event (Dlg_head *h, int d_key); void update_cursor (Dlg_head *h); #ifdef HAVE_X