Deprecate gtk_widget_send_expose()

We have various replacements for what this function does, and we are not
calling it internally any more.
This commit is contained in:
Emmanuele Bassi 2016-06-10 13:55:30 +01:00
parent a9a59ac55e
commit c3f4fe334d
2 changed files with 8 additions and 3 deletions

View File

@ -7522,8 +7522,13 @@ gtk_cairo_transform_to_window (cairo_t *cr,
* with a call to gdk_window_process_updates().
*
* Returns: return from the event signal emission (%TRUE if
* the event was handled)
**/
* 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)

View File

@ -741,7 +741,7 @@ gboolean gtk_widget_mnemonic_activate (GtkWidget *widget,
GDK_AVAILABLE_IN_ALL
gboolean gtk_widget_event (GtkWidget *widget,
GdkEvent *event);
GDK_AVAILABLE_IN_ALL
GDK_DEPRECATED_IN_3_22
gint gtk_widget_send_expose (GtkWidget *widget,
GdkEvent *event);
GDK_AVAILABLE_IN_ALL