#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
+#include <math.h> // for fabs
#include "gdk/gdk.h"
#include "gtk/gtk.h"
if (win->GetEventHandler()->ProcessEvent( event ))
{
- gtk_signal_emit_stop_by_name( GTK_OBJECT(widget), "focus_in_event" );
return TRUE;
}
if (win->GetEventHandler()->ProcessEvent( event ))
{
- gtk_signal_emit_stop_by_name( GTK_OBJECT(widget), "focus_out_event" );
return TRUE;
}
wxString value = GetValue();
if ( !value.IsEmpty() )
{
+ m_updateFont = FALSE;
+
Clear();
AppendText(value);
-
- m_updateFont = FALSE;
}
}
{
if ( HasFlag(wxTE_MULTILINE) )
{
+ GTK_TEXT(m_text)->vadj->value = 0.0;
+
gtk_text_thaw(GTK_TEXT(m_text));
}
}
if ( !adj )
return FALSE;
- return DoScroll(adj, pages*adj->page_increment);
+ return DoScroll(adj, (int)ceil(pages*adj->page_increment));
}