mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-23 21:17:52 +00:00
Show which Ender area is active by changing the frame shadow type.
This commit is contained in:
parent
c8b942e490
commit
df6fb5c71a
@ -118,7 +118,9 @@ fe_MakeScrolledWindow (MWContext *context, Widget parent, const char *name)
|
||||
/* The embedded editor looks better with a frame around it */
|
||||
if (EDITOR_CONTEXT_DATA(context)->embedded)
|
||||
parent = XtVaCreateManagedWidget("embeddedFrame", xmFrameWidgetClass,
|
||||
parent, 0);
|
||||
parent,
|
||||
XmNshadowType, XmSHADOW_ETCHED_IN,
|
||||
0);
|
||||
#endif /* ENDER */
|
||||
|
||||
ac = 0;
|
||||
|
@ -192,6 +192,7 @@ XFE_CreateEmbeddedEditor(Widget parent, int32 cols, int32 rows,
|
||||
extern "C" void
|
||||
XFE_EmbeddedEditorViewFocus(MWContext* context)
|
||||
{
|
||||
static Widget currentFrame = 0;
|
||||
XFE_Frame *frame = fe_getFrameFromContext(context);
|
||||
XFE_EmbeddedEditorView* eev = 0;
|
||||
XP_ASSERT(frame);
|
||||
@ -200,6 +201,13 @@ XFE_EmbeddedEditorViewFocus(MWContext* context)
|
||||
XP_ASSERT(eev);
|
||||
if (!eev)
|
||||
return;
|
||||
|
||||
if (currentFrame)
|
||||
XtVaSetValues(currentFrame, XmNshadowType, XmSHADOW_ETCHED_IN, 0);
|
||||
Widget embedFrame = XtParent(XtParent(CONTEXT_DATA(context)->drawing_area));
|
||||
XtVaSetValues(embedFrame, XmNshadowType, XmSHADOW_IN, 0);
|
||||
currentFrame = embedFrame;
|
||||
|
||||
XFE_BrowserFrame* bf = (XFE_BrowserFrame*)frame;
|
||||
if (bf)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user