⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 259754 in webkit


Ignore:
Timestamp:
Apr 8, 2020, 1:54:14 PM (6 years ago)
Author:
Adrian Perez de Castro
Message:

[GTK4] Make PAL::systemBeep() work
https://bugs.webkit.org/show_bug.cgi?id=210158

Reviewed by Carlos Garcia Campos.

Source/WebCore/PAL:

  • pal/system/gtk/SoundGtk.cpp:

(PAL::systemBeep): Use gdk_display_beep(), which works both with GTK3 and GTK4.

Source/WTF:

  • wtf/Platform.h: Define a value for GDK_VERSION_MIN_REQUIRED suitable for GTK4.
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r259711 r259754  
     12020-04-08  Adrian Perez de Castro  <aperez@igalia.com>
     2
     3        [GTK4] Make PAL::systemBeep() work
     4        https://bugs.webkit.org/show_bug.cgi?id=210158
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * wtf/Platform.h: Define a value for GDK_VERSION_MIN_REQUIRED suitable for GTK4.
     9
    1102020-04-08  Tim Horton  <timothy_horton@apple.com>
    211
  • trunk/Source/WTF/wtf/Platform.h

    r258498 r259754  
    8585#if PLATFORM(GTK)
    8686#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_36
     87#if USE(GTK4)
     88#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_92
     89#else
    8790#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_6
     91#endif
    8892#endif
    8993
  • trunk/Source/WebCore/PAL/ChangeLog

    r259641 r259754  
     12020-04-08  Adrian Perez de Castro  <aperez@igalia.com>
     2
     3        [GTK4] Make PAL::systemBeep() work
     4        https://bugs.webkit.org/show_bug.cgi?id=210158
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * pal/system/gtk/SoundGtk.cpp:
     9        (PAL::systemBeep): Use gdk_display_beep(), which works both with GTK3 and GTK4.
     10
    1112020-04-07  Adrian Perez de Castro  <aperez@igalia.com>
    212
  • trunk/Source/WebCore/PAL/pal/system/gtk/SoundGtk.cpp

    r218999 r259754  
    2727void systemBeep()
    2828{
    29     gdk_beep();
     29    if (auto* display = gdk_display_get_default())
     30        gdk_display_beep(display);
    3031}
    3132
Note: See TracChangeset for help on using the changeset viewer.