slight CPP logic fix in my wxTLW::RequestUserAttention code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp 2005-07-29 00:13:34 +00:00
parent c5191fbd2b
commit 6925aa36f2
2 changed files with 6 additions and 6 deletions

View File

@ -107,7 +107,7 @@ static void wxgtk_window_set_urgency_hint (GtkWindow *win,
static gint gtk_frame_urgency_timer_callback( GtkWidget *win )
{
#if __WXGTK20__ && GTK_CHECK_VERSION(2,7,0)
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
if(!gtk_check_version(2,7,0))
gtk_window_set_urgency_hint(GTK_WINDOW( win ), FALSE);
else
@ -160,7 +160,7 @@ static gint gtk_frame_focus_in_callback( GtkWidget *widget,
gtk_timeout_remove( GPOINTER_TO_INT(gtk_object_get_data( GTK_OBJECT(widget), "m_urgency_hint") ) );
// no break, fallthrough to remove hint too
case -1:
#if __WXGTK20__ && GTK_CHECK_VERSION(2,7,0)
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
if(!gtk_check_version(2,7,0))
gtk_window_set_urgency_hint(GTK_WINDOW( widget ), FALSE);
else
@ -1382,7 +1382,7 @@ void wxTopLevelWindowGTK::RequestUserAttention(int flags)
}
}
#if __WXGTK20__ && GTK_CHECK_VERSION(2,7,0)
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
if(!gtk_check_version(2,7,0))
gtk_window_set_urgency_hint(GTK_WINDOW( m_widget ), new_hint_value);
else

View File

@ -107,7 +107,7 @@ static void wxgtk_window_set_urgency_hint (GtkWindow *win,
static gint gtk_frame_urgency_timer_callback( GtkWidget *win )
{
#if __WXGTK20__ && GTK_CHECK_VERSION(2,7,0)
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
if(!gtk_check_version(2,7,0))
gtk_window_set_urgency_hint(GTK_WINDOW( win ), FALSE);
else
@ -160,7 +160,7 @@ static gint gtk_frame_focus_in_callback( GtkWidget *widget,
gtk_timeout_remove( GPOINTER_TO_INT(gtk_object_get_data( GTK_OBJECT(widget), "m_urgency_hint") ) );
// no break, fallthrough to remove hint too
case -1:
#if __WXGTK20__ && GTK_CHECK_VERSION(2,7,0)
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
if(!gtk_check_version(2,7,0))
gtk_window_set_urgency_hint(GTK_WINDOW( widget ), FALSE);
else
@ -1382,7 +1382,7 @@ void wxTopLevelWindowGTK::RequestUserAttention(int flags)
}
}
#if __WXGTK20__ && GTK_CHECK_VERSION(2,7,0)
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,7,0)
if(!gtk_check_version(2,7,0))
gtk_window_set_urgency_hint(GTK_WINDOW( m_widget ), new_hint_value);
else