[gtk/kill-grabs-2: 2/3] Drop gtk_grab_get_current
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-grabs-2: 2/3] Drop gtk_grab_get_current
- Date: Fri, 28 Feb 2020 21:40:49 +0000 (UTC)
commit 57c8a643ff62709a857a6c5efe337ef23e4ac14f
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 28 16:29:56 2020 -0500
Drop gtk_grab_get_current
Another grab-related api that we are not using.
docs/reference/gtk/gtk4-sections.txt | 1 -
gtk/gtkmain.c | 18 ------------------
gtk/gtkmain.h | 2 --
3 files changed, 21 deletions(-)
---
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
<SUBSECTION>
gtk_grab_add
-gtk_grab_get_current
gtk_grab_remove
<SUBSECTION>
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]