* nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues. * nsterm.m (EmacsPrefsController-setPanelFromDefaultValues) New function. (EmacsPrefsController-resetToDefaults:): Use it.
This commit is contained in:
parent
9ce5a36f02
commit
6049d3a0bb
3 changed files with 25 additions and 3 deletions
|
@ -2,12 +2,16 @@
|
|||
|
||||
* nsmenu.m (NSMENUPROFILE): Change #if style.
|
||||
|
||||
* nsterm.m: (x_set_frame_alpha): Add prototype.
|
||||
* nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
|
||||
|
||||
* nsterm.m (x_set_frame_alpha): Add prototype.
|
||||
(ns_fake_keydown, EmacsView-keyUp:): New variable and function to
|
||||
handle Ctrl-tab. (Bug#1841)
|
||||
(ns_get_color): Use unsigned long long for scanned hex string value.
|
||||
(ns_term_shutdown): Abort on non SIGTERM signals.
|
||||
(EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
|
||||
(EmacsPrefsController-setPanelFromDefaultValues) New function.
|
||||
(EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
|
||||
|
||||
* nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore DPI.
|
||||
(Bug#1316)
|
||||
|
|
|
@ -355,6 +355,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
- (void) showForFrame: (struct frame *)f;
|
||||
- (void) setPanelFromValues;
|
||||
- (void) setPanelFromDefaultValues;
|
||||
- (void) setValuesFromPanel;
|
||||
@end
|
||||
|
||||
|
|
21
src/nsterm.m
21
src/nsterm.m
|
@ -6090,6 +6090,7 @@ - (void) showForFrame: (struct frame *)f
|
|||
}
|
||||
|
||||
|
||||
/* If you change this, change setPanelFromDefaultValues too. */
|
||||
- (void) setPanelFromValues
|
||||
{
|
||||
int cursorType
|
||||
|
@ -6120,6 +6121,23 @@ - (void) setPanelFromValues
|
|||
}
|
||||
|
||||
|
||||
/* This and ns_set_default_prefs should be changed together. */
|
||||
- (void) setPanelFromDefaultValues
|
||||
{
|
||||
[expandSpaceSlider setFloatValue: 0.0];
|
||||
[cursorTypeMatrix selectCellWithTag: 1]; /* filled box */
|
||||
selectItemWithTag (alternateModMenu, meta_modifier);
|
||||
selectItemWithTag (commandModMenu, super_modifier);
|
||||
#ifdef NS_IMPL_COCOA
|
||||
selectItemWithTag (controlModMenu, ctrl_modifier);
|
||||
selectItemWithTag (functionModMenu, 0); /* none */
|
||||
[smoothFontsCheck setState: YES];
|
||||
[useQuickdrawCheck setState: NO];
|
||||
[useSysHiliteCheck setState: YES];
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
- (void) setValuesFromPanel
|
||||
{
|
||||
int altTag = [[alternateModMenu selectedItem] tag];
|
||||
|
@ -6190,8 +6208,7 @@ - (IBAction)ok: (id)sender
|
|||
|
||||
- (IBAction)resetToDefaults: (id)sender
|
||||
{
|
||||
ns_set_default_prefs ();
|
||||
[self setPanelFromValues];
|
||||
[self setPanelFromDefaultValues];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue