[gtk/mainloop-cleanup: 5/11] Drop gtk_main_level



commit 08f679abfc0e7c66e796c29c9d2c07f1cb08ac6d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 9 19:42:11 2020 -0500

    Drop gtk_main_level
    
    This api isn't useful without gtk_main, which is also
    on the way out.

 docs/reference/gtk/gtk4-sections.txt |  1 -
 gtk/gtkmain.c                        | 14 --------------
 gtk/gtkmain.h                        |  2 --
 3 files changed, 17 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index ec3ec462fd..f56602c51a 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4419,7 +4419,6 @@ gtk_get_locale_direction
 gtk_init
 gtk_init_check
 gtk_main
-gtk_main_level
 gtk_main_quit
 gtk_main_do_event
 
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 3217911dce..0b51c216ec 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1124,20 +1124,6 @@ gtk_main_sync (void)
   _gtk_recent_manager_sync ();
 }
 
-/**
- * gtk_main_level:
- *
- * Asks for the current nesting level of the main loop.
- *
- * Returns: the nesting level of the current invocation
- *     of the main loop
- */
-guint
-gtk_main_level (void)
-{
-  return gtk_main_loop_level;
-}
-
 /**
  * gtk_main_quit:
  *
diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h
index ecb7c3777d..cbef7b11fb 100644
--- a/gtk/gtkmain.h
+++ b/gtk/gtkmain.h
@@ -115,8 +115,6 @@ void       gtk_main_do_event       (GdkEvent           *event);
 GDK_AVAILABLE_IN_ALL
 void       gtk_main                (void);
 GDK_AVAILABLE_IN_ALL
-guint      gtk_main_level          (void);
-GDK_AVAILABLE_IN_ALL
 void       gtk_main_quit           (void);
 
 GDK_AVAILABLE_IN_ALL


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]