summaryrefslogtreecommitdiff
path: root/tests/testinhibitshortcuts.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-04-11 14:54:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-04-11 17:29:27 -0400
commit443fd4d63d9b2756071e0433c5a536740d9788e8 (patch)
tree044967f0a9accf1742deb2abac0c176c694d45ba /tests/testinhibitshortcuts.c
parent4b346538e24a19b628f787941bfe514efac5971a (diff)
downloadgtk+-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.c4
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