gtk_widget_set_name (wfixed, SSDATA (Vx_resource_name));
/* If this frame has a title or name, set it in the title bar. */
- if (! NILP (FVAR (f, title)))
- title = SSDATA (ENCODE_UTF_8 (FVAR (f, title)));
- else if (! NILP (FVAR (f, name)))
- title = SSDATA (ENCODE_UTF_8 (FVAR (f, name)));
+ if (! NILP (FGET (f, title)))
+ title = SSDATA (ENCODE_UTF_8 (FGET (f, title)));
+ else if (! NILP (FGET (f, name)))
+ title = SSDATA (ENCODE_UTF_8 (FGET (f, name)));
if (title) gtk_window_set_title (GTK_WINDOW (wtop), title);
{
cl_data = xmalloc (sizeof *cl_data);
cl_data->f = f;
- cl_data->menu_bar_vector = FVAR (f, menu_bar_vector);
+ cl_data->menu_bar_vector = FGET (f, menu_bar_vector);
cl_data->menu_bar_items_used = f->menu_bar_items_used;
cl_data->highlight_cb = highlight_cb;
cl_data->ref_count = 0;
if (cl_data)
{
cl_data->f = f;
- cl_data->menu_bar_vector = FVAR (f, menu_bar_vector);
+ cl_data->menu_bar_vector = FGET (f, menu_bar_vector);
cl_data->menu_bar_items_used = f->menu_bar_items_used;
cl_data->highlight_cb = highlight_cb;
}
struct input_event event;
EVENT_INIT (event);
- if (! f || ! f->n_tool_bar_items || NILP (FVAR (f, tool_bar_items)))
+ if (! f || ! f->n_tool_bar_items || NILP (FGET (f, tool_bar_items)))
return;
idx *= TOOL_BAR_ITEM_NSLOTS;
- key = AREF (FVAR (f, tool_bar_items), idx + TOOL_BAR_ITEM_KEY);
+ key = AREF (FGET (f, tool_bar_items), idx + TOOL_BAR_ITEM_KEY);
XSETFRAME (frame, f);
/* We generate two events here. The first one is to set the prefix
FRAME_PTR f = (FRAME_PTR) g_object_get_data (G_OBJECT (w), XG_FRAME_DATA);
Lisp_Object help, frame;
- if (! f || ! f->n_tool_bar_items || NILP (FVAR (f, tool_bar_items)))
+ if (! f || ! f->n_tool_bar_items || NILP (FGET (f, tool_bar_items)))
return FALSE;
if (event->type == GDK_ENTER_NOTIFY)
{
idx *= TOOL_BAR_ITEM_NSLOTS;
- help = AREF (FVAR (f, tool_bar_items), idx + TOOL_BAR_ITEM_HELP);
+ help = AREF (FGET (f, tool_bar_items), idx + TOOL_BAR_ITEM_HELP);
if (NILP (help))
- help = AREF (FVAR (f, tool_bar_items), idx + TOOL_BAR_ITEM_CAPTION);
+ help = AREF (FGET (f, tool_bar_items), idx + TOOL_BAR_ITEM_CAPTION);
}
else
help = Qnil;
}
-#define PROP(IDX) AREF (FVAR (f, tool_bar_items), i * TOOL_BAR_ITEM_NSLOTS + (IDX))
+#define PROP(IDX) AREF (FGET (f, tool_bar_items), i * TOOL_BAR_ITEM_NSLOTS + (IDX))
/* Find the right-to-left image named by RTL in the tool bar images for F.
Returns IMAGE if RTL is not found. */
if (f->n_tool_bar_items != 0)
{
if (pack_tool_bar)
- xg_pack_tool_bar (f, FVAR (f, tool_bar_position));
+ xg_pack_tool_bar (f, FGET (f, tool_bar_position));
gtk_widget_show_all (GTK_WIDGET (x->handlebox_widget));
if (xg_update_tool_bar_sizes (f))
xg_height_or_width_changed (f);