force the redraw when get the focus ...

This commit is contained in:
2011-10-04 13:03:40 +02:00
parent 4477ef0ab5
commit 85806b2638
3 changed files with 20 additions and 0 deletions

View File

@@ -298,6 +298,10 @@ gint CodeView::CB_focusGet( GtkWidget *widget, GdkEventFocus *event, gpointer da
GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS);
# endif
self->SendMessage(EDN_MSG__BUFFER_CHANGE_CURRENT, self->m_bufferID);
Buffer * tmpBuf = self->m_bufferManager->Get(self->m_bufferID);
tmpBuf->AnchorRedrawAll(self->m_displayUniqueId);
// Force redraw of the widget
gtk_widget_queue_draw_area(self->m_widget, 0, 0, self->m_shawableAreaX, self->m_shawableAreaY);
EDN_INFO("Focus - In");
return FALSE;
}