Fix compilation with GTK+ 2.4.
Support for ellipsization in GtkTreeView and gtk_window_set_focus_on_map() are new in 2.6, don't use them with 2.4. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -358,8 +358,15 @@ gtk_frame_map_callback( GtkWidget*,
|
||||
eventShow.SetEventObject(win);
|
||||
win->GetEventHandler()->ProcessEvent(eventShow);
|
||||
}
|
||||
// restore focus-on-map setting in case ShowWithoutActivating() was called
|
||||
gtk_window_set_focus_on_map(GTK_WINDOW(win->m_widget), true);
|
||||
|
||||
#if GTK_CHECK_VERSION(2,6,0)
|
||||
if (!gtk_check_version(2,6,0))
|
||||
{
|
||||
// restore focus-on-map setting in case ShowWithoutActivating() was called
|
||||
gtk_window_set_focus_on_map(GTK_WINDOW(win->m_widget), true);
|
||||
}
|
||||
#endif // GTK+ 2.6+
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -897,7 +904,11 @@ void wxTopLevelWindowGTK::ShowWithoutActivating()
|
||||
{
|
||||
if (!m_isShown)
|
||||
{
|
||||
gtk_window_set_focus_on_map(GTK_WINDOW(m_widget), false);
|
||||
#if GTK_CHECK_VERSION(2,6,0)
|
||||
if (!gtk_check_version(2,6,0))
|
||||
gtk_window_set_focus_on_map(GTK_WINDOW(m_widget), false);
|
||||
#endif // GTK+ 2.6+
|
||||
|
||||
Show(true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user