add comment @ in asm code and do not request redraw in GTK3.0
This commit is contained in:
parent
eff5e3ae25
commit
d21a3892df
@ -298,10 +298,12 @@ gint CodeView::CB_focusGet( GtkWidget *widget, GdkEventFocus *event, gpointer da
|
|||||||
GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS);
|
GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS);
|
||||||
# endif
|
# endif
|
||||||
self->SendMessage(EDN_MSG__BUFFER_CHANGE_CURRENT, self->m_bufferID);
|
self->SendMessage(EDN_MSG__BUFFER_CHANGE_CURRENT, self->m_bufferID);
|
||||||
|
# ifdef USE_GTK_VERSION_2_0
|
||||||
Buffer * tmpBuf = self->m_bufferManager->Get(self->m_bufferID);
|
Buffer * tmpBuf = self->m_bufferManager->Get(self->m_bufferID);
|
||||||
tmpBuf->AnchorRedrawAll(self->m_displayUniqueId);
|
tmpBuf->AnchorRedrawAll(self->m_displayUniqueId);
|
||||||
// Force redraw of the widget
|
// Force redraw of the widget
|
||||||
gtk_widget_queue_draw_area(self->m_widget, 0, 0, self->m_shawableAreaX, self->m_shawableAreaY);
|
gtk_widget_queue_draw_area(self->m_widget, 0, 0, self->m_shawableAreaX, self->m_shawableAreaY);
|
||||||
|
# endif
|
||||||
EDN_INFO("Focus - In");
|
EDN_INFO("Focus - In");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</rule>
|
</rule>
|
||||||
<rule name="my comment">
|
<rule name="my comment">
|
||||||
<color>comment</color>
|
<color>comment</color>
|
||||||
<start>//</start>
|
<start>(//|@)</start>
|
||||||
<end>\n</end>
|
<end>\n</end>
|
||||||
<EscapeChar>\</EscapeChar>
|
<EscapeChar>\</EscapeChar>
|
||||||
</rule>
|
</rule>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user