[gtk/mainloop-cleanup: 3/11] Drop gtk_events_pending
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/mainloop-cleanup: 3/11] Drop gtk_events_pending
- Date: Mon, 10 Feb 2020 03:48:57 +0000 (UTC)
commit 565a48af6e839b9af921e00c9d38c0d4f0c3ecaa
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 9 19:34:02 2020 -0500
Drop gtk_events_pending
This was just a thin wrapper around gtk_main_context_pending,
which should be used directly instead.
docs/reference/gtk/gtk4-sections.txt | 1 -
gtk/gtkmain.c | 27 ---------------------------
gtk/gtkmain.h | 2 --
3 files changed, 30 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 876c625b4b..870b83bfe6 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4418,7 +4418,6 @@ gtk_get_default_language
gtk_get_locale_direction
gtk_init
gtk_init_check
-gtk_events_pending
gtk_main
gtk_main_level
gtk_main_quit
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index d8c1d35beb..a9b6e0aec9 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1152,33 +1152,6 @@ gtk_main_quit (void)
g_main_loop_quit (main_loops->data);
}
-/**
- * gtk_events_pending:
- *
- * Checks if any events are pending.
- *
- * This can be used to update the UI and invoke timeouts etc.
- * while doing some time intensive computation.
- *
- * ## Updating the UI during a long computation
- *
- * |[<!-- language="C" -->
- * // computation going on...
- *
- * while (gtk_events_pending ())
- * gtk_main_iteration ();
- *
- * // ...computation continued
- * ]|
- *
- * Returns: %TRUE if any events are pending, %FALSE otherwise
- */
-gboolean
-gtk_events_pending (void)
-{
- return g_main_context_pending (NULL);
-}
-
/**
* gtk_main_iteration:
*
diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h
index 0009c4d90e..62fe2201fc 100644
--- a/gtk/gtkmain.h
+++ b/gtk/gtkmain.h
@@ -109,8 +109,6 @@ GDK_AVAILABLE_IN_ALL
PangoLanguage *gtk_get_default_language (void);
GDK_AVAILABLE_IN_ALL
GtkTextDirection gtk_get_locale_direction (void);
-GDK_AVAILABLE_IN_ALL
-gboolean gtk_events_pending (void);
GDK_AVAILABLE_IN_ALL
void gtk_main_do_event (GdkEvent *event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]