diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-04-11 14:54:08 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-04-11 17:29:27 -0400 |
commit | 443fd4d63d9b2756071e0433c5a536740d9788e8 (patch) | |
tree | 044967f0a9accf1742deb2abac0c176c694d45ba /tests/testinhibitshortcuts.c | |
parent | 4b346538e24a19b628f787941bfe514efac5971a (diff) | |
download | gtk+-443fd4d63d9b2756071e0433c5a536740d9788e8.tar.gz |
tests: Stop using gtk_get_current_ apis
Replace these by equivalent event controller
apis where needed.
Diffstat (limited to 'tests/testinhibitshortcuts.c')
-rw-r--r-- | tests/testinhibitshortcuts.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/testinhibitshortcuts.c b/tests/testinhibitshortcuts.c index fa746ed3e4..6de7a89cfe 100644 --- a/tests/testinhibitshortcuts.c +++ b/tests/testinhibitshortcuts.c @@ -40,7 +40,6 @@ static void on_button_toggle (GtkWidget *button, gpointer data) { GdkSurface *surface = GDK_SURFACE (data); - GdkEvent *event; if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button))) { @@ -49,8 +48,7 @@ on_button_toggle (GtkWidget *button, gpointer data) } gtk_check_button_set_inconsistent (GTK_CHECK_BUTTON (button), TRUE); - event = gtk_get_current_event (); - gdk_toplevel_inhibit_system_shortcuts (GDK_TOPLEVEL (surface), event); + gdk_toplevel_inhibit_system_shortcuts (GDK_TOPLEVEL (surface), NULL); } static void |