Applied wxGauge:Pulse() patch.
[ 1551409 ] Support for indeterminate mode gauges git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -49,6 +49,9 @@ bool wxGauge::Create( wxWindow *parent,
|
||||
GTK_PROGRESS_BOTTOM_TO_TOP );
|
||||
}
|
||||
|
||||
// when using the gauge in indeterminate mode, we need this:
|
||||
gtk_progress_bar_set_pulse_step(GTK_PROGRESS_BAR (m_widget), 0.05);
|
||||
|
||||
m_parent->DoAddChild( this );
|
||||
|
||||
PostCreation(size);
|
||||
@@ -105,6 +108,11 @@ int wxGauge::GetValue() const
|
||||
return m_gaugePos;
|
||||
}
|
||||
|
||||
void wxGauge::Pulse()
|
||||
{
|
||||
gtk_progress_bar_pulse(GTK_PROGRESS_BAR (m_widget));
|
||||
}
|
||||
|
||||
wxVisualAttributes wxGauge::GetDefaultAttributes() const
|
||||
{
|
||||
// Visible gauge colours use a different colour state
|
||||
|
Reference in New Issue
Block a user