Fix gtk_frame_urgency_timer_callback return type (gint -> gboolean).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37283
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
(void)wxTimerBase::Start(millisecs, oneShot);
if (m_tag != -1)
(void)wxTimerBase::Start(millisecs, oneShot);
if (m_tag != -1)
- gtk_timeout_remove( m_tag );
+ g_source_remove( m_tag );
- m_tag = gtk_timeout_add( m_milli, timeout_callback, this );
+ m_tag = g_timeout_add( m_milli, timeout_callback, this );
- gtk_timeout_remove( m_tag );
+ g_source_remove( m_tag );
-static gint gtk_frame_urgency_timer_callback( wxTopLevelWindowGTK *win )
+static gboolean gtk_frame_urgency_timer_callback( wxTopLevelWindowGTK *win )
{
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
if(!gtk_check_version(2,7,0))
{
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
if(!gtk_check_version(2,7,0))
switch( win->m_urgency_hint )
{
default:
switch( win->m_urgency_hint )
{
default:
- gtk_timeout_remove( win->m_urgency_hint );
+ g_source_remove( win->m_urgency_hint );
// no break, fallthrough to remove hint too
case -1:
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
// no break, fallthrough to remove hint too
case -1:
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
::wxYieldIfNeeded();
if(m_urgency_hint >= 0)
::wxYieldIfNeeded();
if(m_urgency_hint >= 0)
- gtk_timeout_remove(m_urgency_hint);
+ g_source_remove(m_urgency_hint);
if (flags & wxUSER_ATTENTION_INFO)
{
if (flags & wxUSER_ATTENTION_INFO)
{
- m_urgency_hint = gtk_timeout_add(5000, (GtkFunction)gtk_frame_urgency_timer_callback, this);
+ m_urgency_hint = g_timeout_add(5000, (GSourceFunc)gtk_frame_urgency_timer_callback, this);
} else {
m_urgency_hint = -1;
}
} else {
m_urgency_hint = -1;
}