Revert "gdk_screen_get_monitor_plug_name needs at least 2.14"

This reverts commit d53ac3474f8aa7596f34af67ff2be316e26a1542.
This commit is contained in:
Luboš Luňák 2010-10-08 18:32:26 +02:00 committed by Petr Mladek
parent a80c69688f
commit 1e3d9313b5

View file

@ -251,16 +251,13 @@ int GtkSalDisplay::GetDefaultMonitorNumber() const
(screen_get_primary_monitor)osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gdk_screen_get_primary_monitor" );
if (sym_gdk_screen_get_primary_monitor)
return sym_gdk_screen_get_primary_monitor( pScreen );
#if GTK_CHECK_VERSION(2,14,0)
//gdk_screen_get_primary_monitor unavailable, take the first laptop monitor
//as the default. This fallback needs at least gtk 2.14.0
//gdk_screen_get_primary_monitor unavailable, take the first laptop monitor as the default
gint nMonitors = gdk_screen_get_n_monitors(pScreen);
for (gint i = 0; i < nMonitors; ++i)
{
if (g_ascii_strncasecmp (gdk_screen_get_monitor_plug_name(pScreen, i), "LVDS", 4) == 0)
return m_aXineramaScreenIndexMap[i];
}
#endif
return 0;
#endif
}