[gtk+/wip/baedert/box: 8/13] widget: Remove gtk_widget_send_expose
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/box: 8/13] widget: Remove gtk_widget_send_expose
- Date: Tue, 4 Oct 2016 16:49:06 +0000 (UTC)
commit a6fb8c32754fd718c90731e6c27e3dfad6c6abb2
Author: Timm Bäder <mail baedert org>
Date: Tue Oct 4 18:19:51 2016 +0200
widget: Remove gtk_widget_send_expose
docs/reference/gtk/gtk3-sections.txt | 1 -
gtk/gtkwidget.c | 38 ----------------------------------
gtk/gtkwidget.h | 3 --
3 files changed, 0 insertions(+), 42 deletions(-)
---
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt
index 4452e2a..5cd7b73 100644
--- a/docs/reference/gtk/gtk3-sections.txt
+++ b/docs/reference/gtk/gtk3-sections.txt
@@ -5252,7 +5252,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 9b1df73..0ed637e 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7247,44 +7247,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 1ed0780..9d188fd 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -733,9 +733,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]