* 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)
- (void) showForFrame: (struct frame *)f;
- (void) setPanelFromValues;
+- (void) setPanelFromDefaultValues;
- (void) setValuesFromPanel;
@end
}
+/* If you change this, change setPanelFromDefaultValues too. */
- (void) setPanelFromValues
{
int cursorType
}
+/* 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];
- (IBAction)resetToDefaults: (id)sender
{
- ns_set_default_prefs ();
- [self setPanelFromValues];
+ [self setPanelFromDefaultValues];
}