diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index efeea07861..ee967c99ad 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -5160,7 +5160,6 @@ gtk_widget_class_install_style_property_parser gtk_widget_class_find_style_property gtk_widget_class_list_style_properties gtk_widget_region_intersect -gtk_widget_send_expose gtk_widget_send_focus_change gtk_widget_style_get gtk_widget_style_get_property diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 46a774c522..53064cd2eb 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -7169,44 +7169,6 @@ gtk_cairo_transform_to_window (cairo_t *cr, cairo_translate (cr, x, y); } -/** - * gtk_widget_send_expose: - * @widget: a #GtkWidget - * @event: a expose #GdkEvent - * - * Very rarely-used function. This function is used to emit - * an expose event on a widget. This function is not normally used - * directly. The only time it is used is when propagating an expose - * event to a windowless child widget (gtk_widget_get_has_window() is %FALSE), - * and that is normally done using gtk_container_propagate_draw(). - * - * If you want to force an area of a window to be redrawn, - * use gdk_window_invalidate_rect() or gdk_window_invalidate_region(). - * To cause the redraw to be done immediately, follow that call - * with a call to gdk_window_process_updates(). - * - * Returns: return from the event signal emission (%TRUE if - * the event was handled) - * - * Deprecated: 3.22: Application and widget code should not handle - * expose events directly; invalidation should use the #GtkWidget - * API, and drawing should only happen inside #GtkWidget::draw - * implementations - */ -gint -gtk_widget_send_expose (GtkWidget *widget, - GdkEvent *event) -{ - g_return_val_if_fail (GTK_IS_WIDGET (widget), TRUE); - g_return_val_if_fail (gtk_widget_get_realized (widget), TRUE); - g_return_val_if_fail (event != NULL, TRUE); - g_return_val_if_fail (event->type == GDK_EXPOSE, TRUE); - - gtk_widget_render (widget, event->any.window, event->expose.region); - - return FALSE; -} - static gboolean event_window_is_still_viewable (GdkEvent *event) { diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index c942f87e55..6d6f0a8640 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -731,9 +731,6 @@ gboolean gtk_widget_mnemonic_activate (GtkWidget *widget, GDK_AVAILABLE_IN_ALL gboolean gtk_widget_event (GtkWidget *widget, GdkEvent *event); -GDK_DEPRECATED_IN_3_22 -gint gtk_widget_send_expose (GtkWidget *widget, - GdkEvent *event); GDK_AVAILABLE_IN_ALL gboolean gtk_widget_send_focus_change (GtkWidget *widget, GdkEvent *event);