diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index 35524158ff..9f6d0081b9 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -4392,7 +4392,6 @@ gtk_init_check gtk_grab_add -gtk_grab_get_current gtk_grab_remove diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 6eb078a7da..fe2f63812f 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -2045,24 +2045,6 @@ gtk_grab_add (GtkWidget *widget) } } -/** - * gtk_grab_get_current: - * - * Queries the current grab of the default window group. - * - * Returns: (transfer none) (nullable): The widget which currently - * has the grab or %NULL if no grab is active - */ -GtkWidget* -gtk_grab_get_current (void) -{ - GtkWindowGroup *group; - - group = gtk_main_get_window_group (NULL); - - return gtk_window_group_get_current_grab (group); -} - /** * gtk_grab_remove: (method) * @widget: The widget which gives up the grab diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h index 8c5ebdfd55..72adbb69ec 100644 --- a/gtk/gtkmain.h +++ b/gtk/gtkmain.h @@ -110,8 +110,6 @@ GtkTextDirection gtk_get_locale_direction (void); GDK_AVAILABLE_IN_ALL void gtk_grab_add (GtkWidget *widget); GDK_AVAILABLE_IN_ALL -GtkWidget* gtk_grab_get_current (void); -GDK_AVAILABLE_IN_ALL void gtk_grab_remove (GtkWidget *widget); GDK_AVAILABLE_IN_ALL