summaryrefslogtreecommitdiff
path: root/src/nsfns.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/nsfns.m')
-rw-r--r--src/nsfns.m40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/nsfns.m b/src/nsfns.m
index 98477c90094..a15caf9b905 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -452,12 +452,12 @@ x_set_icon_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
if (NILP (arg))
{
- if (!NILP (FGET (f, title)))
- arg = FGET (f, title);
+ if (!NILP (f->title))
+ arg = f->title;
else
/* explicit name and no icon-name -> explicit_name */
if (f->explicit_name)
- arg = FGET (f, name);
+ arg = f->name;
else
{
/* no explicit name and no icon-name ->
@@ -496,10 +496,10 @@ ns_set_name_internal (FRAME_PTR f, Lisp_Object name)
if (! [[[view window] title] isEqualToString: str])
[[view window] setTitle: str];
- if (!STRINGP (FGET (f, icon_name)))
+ if (!STRINGP (f->icon_name))
encoded_icon_name = encoded_name;
else
- encoded_icon_name = ENCODE_UTF_8 (FGET (f, icon_name));
+ encoded_icon_name = ENCODE_UTF_8 (f->icon_name);
str = [NSString stringWithUTF8String: SSDATA (encoded_icon_name)];
@@ -537,14 +537,14 @@ ns_set_name (struct frame *f, Lisp_Object name, int explicit)
CHECK_STRING (name);
/* Don't change the name if it's already NAME. */
- if (! NILP (Fstring_equal (name, FGET (f, name))))
+ if (! NILP (Fstring_equal (name, f->name)))
return;
FSET (f, name, name);
/* title overrides explicit name */
- if (! NILP (FGET (f, title)))
- name = FGET (f, title);
+ if (! NILP (f->title))
+ name = f->title;
ns_set_name_internal (f, name);
}
@@ -586,7 +586,7 @@ x_set_title (struct frame *f, Lisp_Object name, Lisp_Object old_name)
{
NSTRACE (x_set_title);
/* Don't change the title if it's already NAME. */
- if (EQ (name, FGET (f, title)))
+ if (EQ (name, f->title))
return;
update_mode_lines = 1;
@@ -594,7 +594,7 @@ x_set_title (struct frame *f, Lisp_Object name, Lisp_Object old_name)
FSET (f, title, name);
if (NILP (name))
- name = FGET (f, name);
+ name = f->name;
else
CHECK_STRING (name);
@@ -607,7 +607,7 @@ ns_set_name_as_filename (struct frame *f)
{
NSView *view;
Lisp_Object name, filename;
- Lisp_Object buf = WGET (XWINDOW (FGET (f, selected_window)), buffer);
+ Lisp_Object buf = WGET (XWINDOW (f->selected_window), buffer);
const char *title;
NSAutoreleasePool *pool;
struct gcpro gcpro1;
@@ -615,7 +615,7 @@ ns_set_name_as_filename (struct frame *f)
NSString *str;
NSTRACE (ns_set_name_as_filename);
- if (f->explicit_name || ! NILP (FGET (f, title)) || ns_in_resize)
+ if (f->explicit_name || ! NILP (f->title) || ns_in_resize)
return;
BLOCK_INPUT;
@@ -690,7 +690,7 @@ ns_set_doc_edited (struct frame *f, Lisp_Object arg)
{
NSView *view = FRAME_NS_VIEW (f);
NSAutoreleasePool *pool;
- if (!MINI_WINDOW_P (XWINDOW (FGET (f, selected_window))))
+ if (!MINI_WINDOW_P (XWINDOW (f->selected_window)))
{
BLOCK_INPUT;
pool = [[NSAutoreleasePool alloc] init];
@@ -777,7 +777,7 @@ ns_implicitly_set_icon_type (struct frame *f)
BLOCK_INPUT;
pool = [[NSAutoreleasePool alloc] init];
if (f->output_data.ns->miniimage
- && [[NSString stringWithUTF8String: SSDATA (FGET (f, name))]
+ && [[NSString stringWithUTF8String: SSDATA (f->name)]
isEqualToString: [(NSImage *)f->output_data.ns->miniimage name]])
{
[pool release];
@@ -785,7 +785,7 @@ ns_implicitly_set_icon_type (struct frame *f)
return;
}
- tem = assq_no_quit (Qicon_type, FGET (f, param_alist));
+ tem = assq_no_quit (Qicon_type, f->param_alist);
if (CONSP (tem) && ! NILP (XCDR (tem)))
{
[pool release];
@@ -799,17 +799,17 @@ ns_implicitly_set_icon_type (struct frame *f)
{
elt = XCAR (chain);
/* special case: 't' means go by file type */
- if (SYMBOLP (elt) && EQ (elt, Qt) && SSDATA (FGET (f, name))[0] == '/')
+ if (SYMBOLP (elt) && EQ (elt, Qt) && SSDATA (f->name)[0] == '/')
{
NSString *str
- = [NSString stringWithUTF8String: SSDATA (FGET (f, name))];
+ = [NSString stringWithUTF8String: SSDATA (f->name)];
if ([[NSFileManager defaultManager] fileExistsAtPath: str])
image = [[[NSWorkspace sharedWorkspace] iconForFile: str] retain];
}
else if (CONSP (elt) &&
STRINGP (XCAR (elt)) &&
STRINGP (XCDR (elt)) &&
- fast_string_match (XCAR (elt), FGET (f, name)) >= 0)
+ fast_string_match (XCAR (elt), f->name) >= 0)
{
image = [EmacsImage allocInitFromFile: XCDR (elt)];
if (image == nil)
@@ -1208,7 +1208,7 @@ This function is an internal primitive--use `make-frame' instead. */)
FSET (f, icon_name, x_get_arg (dpyinfo, parms, Qicon_name,
"iconName", "Title",
RES_TYPE_STRING));
- if (! STRINGP (FGET (f, icon_name)))
+ if (! STRINGP (f->icon_name))
FSET (f, icon_name, Qnil);
FRAME_NS_DISPLAY_INFO (f) = dpyinfo;
@@ -1398,7 +1398,7 @@ This function is an internal primitive--use `make-frame' instead. */)
by x_get_arg and friends, now go in the misc. alist of the frame. */
for (tem = parms; CONSP (tem); tem = XCDR (tem))
if (CONSP (XCAR (tem)) && !NILP (XCAR (XCAR (tem))))
- FSET (f, param_alist, Fcons (XCAR (tem), FGET (f, param_alist)));
+ FSET (f, param_alist, Fcons (XCAR (tem), f->param_alist));
UNGCPRO;