projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version update
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
guicast
/
bcbutton.C
diff --git
a/cinelerra-5.1/guicast/bcbutton.C
b/cinelerra-5.1/guicast/bcbutton.C
index e4088e55971c841d5286ffb9a124a7913d3ecac5..00eb8cb716015c84c6f73e13b468b184ab44aafe 100644
(file)
--- a/
cinelerra-5.1/guicast/bcbutton.C
+++ b/
cinelerra-5.1/guicast/bcbutton.C
@@
-290,7
+290,7
@@
int BC_OKButton::resize_event(int w, int h)
int BC_OKButton::keypress_event()
{
if(get_keypress() == RETURN) return handle_event();
int BC_OKButton::keypress_event()
{
if(get_keypress() == RETURN) return handle_event();
- return
0
;
+ return
context_help_check_and_show()
;
}
int BC_OKButton::calculate_h()
}
int BC_OKButton::calculate_h()
@@
-354,7
+354,7
@@
int BC_CancelButton::resize_event(int w,int h)
int BC_CancelButton::keypress_event()
{
if(get_keypress() == ESC) return handle_event();
int BC_CancelButton::keypress_event()
{
if(get_keypress() == ESC) return handle_event();
- return
0
;
+ return
context_help_check_and_show()
;
}
int BC_CancelButton::calculate_h()
}
int BC_CancelButton::calculate_h()
@@
-480,7
+480,11
@@
int BC_GenericButton::draw_face(int flush)
return 0;
}
return 0;
}
-
+void BC_GenericButton::set_text(const char *cp)
+{
+ strncpy(text, cp, sizeof(text));
+ draw_face();
+}
@@
-508,7
+512,7
@@
int BC_OKTextButton::handle_event()
int BC_OKTextButton::keypress_event()
{
if(get_keypress() == RETURN) return handle_event();
int BC_OKTextButton::keypress_event()
{
if(get_keypress() == RETURN) return handle_event();
- return
0
;
+ return
context_help_check_and_show()
;
}
}
@@
-537,7
+541,7
@@
int BC_CancelTextButton::handle_event()
int BC_CancelTextButton::keypress_event()
{
if(get_keypress() == ESC) return handle_event();
int BC_CancelTextButton::keypress_event()
{
if(get_keypress() == ESC) return handle_event();
- return
0
;
+ return
context_help_check_and_show()
;
}
}