GdkWin32: Remove special-casing for old Pango versions
authorLuca Bacci <luca.bacci982@gmail.com>
Fri, 4 Nov 2022 14:35:04 +0000 (15:35 +0100)
committerLuca Bacci <luca.bacci982@gmail.com>
Fri, 4 Nov 2022 14:35:04 +0000 (15:35 +0100)
We require Pango 1.50 now

gdk/win32/gdkproperty-win32.c

index 6afb17902ac30c47f704c0b2329563b1d3b7e76b..24c6c6957358d7a677e51dfb1d2a9c8ce2c9d82f 100644 (file)
@@ -103,22 +103,13 @@ _gdk_win32_get_setting (const char *name,
 
       if (font_name)
         {
-          /* The pango font fallback list got fixed during 1.43, before that
-           * using anything but "Segoe UI" would lead to a poor glyph coverage */
-          if (pango_version_check (1, 43, 0) != NULL &&
-              g_ascii_strncasecmp (font_name, "Segoe UI", strlen ("Segoe UI")) != 0)
-            {
-              g_free (font_name);
-              return FALSE;
-            }
-
           GDK_NOTE(MISC, g_print("gdk_screen_get_setting(\"%s\") : %s\n", name, font_name));
           g_value_take_string (value, font_name);
           return TRUE;
         }
       else
         {
-          g_warning ("gdk_screen_get_setting: Detecting the system font failed");
+          g_warning ("gdk_win32_get_setting: Detecting the system font failed");
           return FALSE;
         }
     }