Commit 3ac63996 authored by gambas's avatar gambas
Browse files

DrawingArea: Keep the Focus property when the internal widget is recreated.

[GB.GTK]
* BUG: DrawingArea: Keep the Focus property when the internal widget is recreated.

[GB.GTK3]
* BUG: DrawingArea: Keep the Focus property when the internal widget is recreated.
parent c4490cbf
Pipeline #440437937 failed with stage
in 20 minutes and 43 seconds
......@@ -135,6 +135,7 @@ void gDrawingArea::create(void)
GtkWidget *ch;
bool doReparent = false;
bool was_visible = isVisible();
bool can_focus = widget ? canFocus() : false;
GdkRectangle rect;
int bg, fg;
......@@ -183,6 +184,8 @@ void gDrawingArea::create(void)
updateUseTablet();
gtk_widget_set_can_focus(widget, can_focus);
if (doReparent)
{
if (box)
......
Supports Markdown
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