for (size_t i = 0; i < tabs.GetCount(); i++)
tagname += wxString::Format(_T(" %d"), tabs[i]);
for (size_t i = 0; i < tabs.GetCount(); i++)
tagname += wxString::Format(_T(" %d"), tabs[i]);
PangoTabArray* tabArray = pango_tab_array_new(tabs.GetCount(), TRUE);
for (size_t i = 0; i < tabs.GetCount(); i++)
pango_tab_array_set_tab(tabArray, i, PANGO_TAB_LEFT, (gint)(tabs[i] * factor));
PangoTabArray* tabArray = pango_tab_array_new(tabs.GetCount(), TRUE);
for (size_t i = 0; i < tabs.GetCount(); i++)
pango_tab_array_set_tab(tabArray, i, PANGO_TAB_LEFT, (gint)(tabs[i] * factor));
"tabs", tabArray, NULL );
pango_tab_array_free(tabArray);
}
"tabs", tabArray, NULL );
pango_tab_array_free(tabArray);
}
- void* blockWidget = IsMultiLine() ? (void*)m_buffer : (void*)m_text;
- g_signal_handlers_block_by_func(blockWidget,
- (gpointer)gtk_text_changed_callback, this);
+ if ( !(flags & SetValue_SendEvent) )
+ {
+ g_signal_handlers_block_by_func(GetTextObject(),
+ (gpointer)gtk_text_changed_callback, this);
+ }
+
- g_signal_handlers_unblock_by_func(blockWidget,
- (gpointer)gtk_text_changed_callback, this);
+
+ if ( !(flags & SetValue_SendEvent) )
+ {
+ g_signal_handlers_unblock_by_func(GetTextObject(),
+ (gpointer)gtk_text_changed_callback, this);
+ }