mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
widget: Remove gtk_widget_send_expose
This commit is contained in:
parent
bc0cef27a2
commit
16b0906b4a
@ -5160,7 +5160,6 @@ gtk_widget_class_install_style_property_parser
|
|||||||
gtk_widget_class_find_style_property
|
gtk_widget_class_find_style_property
|
||||||
gtk_widget_class_list_style_properties
|
gtk_widget_class_list_style_properties
|
||||||
gtk_widget_region_intersect
|
gtk_widget_region_intersect
|
||||||
gtk_widget_send_expose
|
|
||||||
gtk_widget_send_focus_change
|
gtk_widget_send_focus_change
|
||||||
gtk_widget_style_get
|
gtk_widget_style_get
|
||||||
gtk_widget_style_get_property
|
gtk_widget_style_get_property
|
||||||
|
@ -7169,44 +7169,6 @@ gtk_cairo_transform_to_window (cairo_t *cr,
|
|||||||
cairo_translate (cr, x, y);
|
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
|
static gboolean
|
||||||
event_window_is_still_viewable (GdkEvent *event)
|
event_window_is_still_viewable (GdkEvent *event)
|
||||||
{
|
{
|
||||||
|
@ -731,9 +731,6 @@ gboolean gtk_widget_mnemonic_activate (GtkWidget *widget,
|
|||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
gboolean gtk_widget_event (GtkWidget *widget,
|
gboolean gtk_widget_event (GtkWidget *widget,
|
||||||
GdkEvent *event);
|
GdkEvent *event);
|
||||||
GDK_DEPRECATED_IN_3_22
|
|
||||||
gint gtk_widget_send_expose (GtkWidget *widget,
|
|
||||||
GdkEvent *event);
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
gboolean gtk_widget_send_focus_change (GtkWidget *widget,
|
gboolean gtk_widget_send_focus_change (GtkWidget *widget,
|
||||||
GdkEvent *event);
|
GdkEvent *event);
|
||||||
|
Loading…
Reference in New Issue
Block a user