[gtk/main-cleanup: 7/7] Remove gtk_propagate_event from public API



commit b927609e21fbc8d0d9eaefc0eaf67f5822d186cc
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 9 11:00:53 2020 -0500

    Remove gtk_propagate_event from public API
    
    This is not a function that can be safely called
    outside of GTK.

 docs/reference/gtk/gtk4-sections.txt  | 1 -
 docs/reference/gtk/input-handling.xml | 3 +--
 gtk/gtkmain.h                         | 4 ----
 gtk/gtkprivate.h                      | 2 ++
 4 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 7ce7f391dc..3ef6eeae03 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4443,7 +4443,6 @@ gtk_get_current_event_device
 gtk_get_event_widget
 gtk_get_event_target
 gtk_get_event_target_with_type
-gtk_propagate_event
 
 <SUBSECTION Private>
 gtk_init_abi_check
diff --git a/docs/reference/gtk/input-handling.xml b/docs/reference/gtk/input-handling.xml
index f419cd30f2..cc6d7f0db2 100644
--- a/docs/reference/gtk/input-handling.xml
+++ b/docs/reference/gtk/input-handling.xml
@@ -156,8 +156,7 @@
     </para>
 
     <para>
-      An event is propagated to a widget using gtk_propagate_event().
-      Propagation goes down and up the widget hierarchy in three phases
+      An event is propagated down and up the widget hierarchy in three phases
       (see #GtkPropagationPhase) towards a target widget.
     </para>
 
diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h
index 13402f2e2b..fc9f08b6f9 100644
--- a/gtk/gtkmain.h
+++ b/gtk/gtkmain.h
@@ -157,10 +157,6 @@ GDK_AVAILABLE_IN_ALL
 GtkWidget *gtk_get_event_target_with_type (GdkEvent *event,
                                            GType     type);
 
-GDK_AVAILABLE_IN_ALL
-gboolean   gtk_propagate_event          (GtkWidget       *widget,
-                                         GdkEvent        *event);
-
 
 G_END_DECLS
 
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h
index b971f08c45..13bbc058e1 100644
--- a/gtk/gtkprivate.h
+++ b/gtk/gtkprivate.h
@@ -93,6 +93,8 @@ gboolean _gtk_translate_keyboard_accel_state   (GdkKeymap       *keymap,
 gboolean         gtk_propagate_event_internal  (GtkWidget       *widget,
                                                 GdkEvent        *event,
                                                 GtkWidget       *topmost);
+gboolean   gtk_propagate_event          (GtkWidget       *widget,
+                                         GdkEvent        *event);
 void       gtk_main_do_event       (GdkEvent           *event);
 
 gdouble _gtk_get_slowdown (void);


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