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

@ -7523,7 +7523,12 @@ gtk_cairo_transform_to_window (cairo_t *cr,
* *
* Returns: return from the event signal emission (%TRUE if * 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 gint
gtk_widget_send_expose (GtkWidget *widget, gtk_widget_send_expose (GtkWidget *widget,
GdkEvent *event) GdkEvent *event)

View File

@ -741,7 +741,7 @@ 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_AVAILABLE_IN_ALL GDK_DEPRECATED_IN_3_22
gint gtk_widget_send_expose (GtkWidget *widget, gint gtk_widget_send_expose (GtkWidget *widget,
GdkEvent *event); GdkEvent *event);
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL