Commit 447d2aa7 authored by claes's avatar claes

Bugfix in inputfocus

parent 6a1ca26a
/*
* Proview $Id: ge.cpp,v 1.24 2007-01-05 10:39:06 claes Exp $
* Proview $Id: ge.cpp,v 1.25 2007-01-17 10:31:54 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -1836,7 +1836,13 @@ int Ge::set_focus_cb( void *ctx, void *component)
int Ge::set_focus( void *component)
{
if ( component == (void *)graph) {
if ( component == 0) {
if ( subpalette_mapped)
set_focus( subpalette);
else if ( plant_mapped)
set_focus( plantctx);
}
else if ( component == (void *)graph) {
graph->set_inputfocus( 1);
if ( subpalette_mapped)
subpalette->set_inputfocus( 0);
......@@ -1862,12 +1868,6 @@ int Ge::set_focus( void *component)
focused_component = component;
}
}
else if ( component == 0) {
if ( subpalette_mapped)
set_focus( subpalette);
else if ( plant_mapped)
set_focus( plantctx);
}
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment