forked from AuroraMiddleware/gtk
widget: Remove queue_draw_region vfunc
Unused
This commit is contained in:
parent
65209da486
commit
5116ce19b7
@ -690,8 +690,6 @@ static void gtk_widget_real_measure (GtkWidget
|
|||||||
int *natural_baseline);
|
int *natural_baseline);
|
||||||
static void gtk_widget_real_state_flags_changed (GtkWidget *widget,
|
static void gtk_widget_real_state_flags_changed (GtkWidget *widget,
|
||||||
GtkStateFlags old_state);
|
GtkStateFlags old_state);
|
||||||
static void gtk_widget_real_queue_draw_region (GtkWidget *widget,
|
|
||||||
const cairo_region_t *region);
|
|
||||||
static AtkObject* gtk_widget_real_get_accessible (GtkWidget *widget);
|
static AtkObject* gtk_widget_real_get_accessible (GtkWidget *widget);
|
||||||
static void gtk_widget_accessible_interface_init (AtkImplementorIface *iface);
|
static void gtk_widget_accessible_interface_init (AtkImplementorIface *iface);
|
||||||
static AtkObject* gtk_widget_ref_accessible (AtkImplementor *implementor);
|
static AtkObject* gtk_widget_ref_accessible (AtkImplementor *implementor);
|
||||||
@ -1077,8 +1075,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
|||||||
klass->priv->accessible_role = ATK_ROLE_INVALID;
|
klass->priv->accessible_role = ATK_ROLE_INVALID;
|
||||||
klass->get_accessible = gtk_widget_real_get_accessible;
|
klass->get_accessible = gtk_widget_real_get_accessible;
|
||||||
|
|
||||||
klass->queue_draw_region = gtk_widget_real_queue_draw_region;
|
|
||||||
|
|
||||||
klass->pick = gtk_widget_real_pick;
|
klass->pick = gtk_widget_real_pick;
|
||||||
|
|
||||||
widget_props[PROP_NAME] =
|
widget_props[PROP_NAME] =
|
||||||
@ -4914,18 +4910,6 @@ gtk_widget_unrealize (GtkWidget *widget)
|
|||||||
g_object_unref (widget);
|
g_object_unref (widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************
|
|
||||||
* Draw queueing.
|
|
||||||
*****************************************/
|
|
||||||
static void
|
|
||||||
gtk_widget_real_queue_draw_region (GtkWidget *widget,
|
|
||||||
const cairo_region_t *region)
|
|
||||||
{
|
|
||||||
g_assert (_gtk_widget_get_has_window (widget));
|
|
||||||
gtk_debug_updates_add (widget, region);
|
|
||||||
gdk_window_invalidate_region (_gtk_widget_get_window (widget), region, TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns the values you're supposed to pass to gdk_window_move_resize
|
* Returns the values you're supposed to pass to gdk_window_move_resize
|
||||||
* for a windowed widget.
|
* for a windowed widget.
|
||||||
@ -5354,7 +5338,9 @@ gtk_widget_queue_draw_region (GtkWidget *widget,
|
|||||||
cairo_region_translate (region2, x, y);
|
cairo_region_translate (region2, x, y);
|
||||||
|
|
||||||
invalidate:
|
invalidate:
|
||||||
WIDGET_CLASS (widget)->queue_draw_region (parent, region2);
|
gtk_debug_updates_add (widget, region);
|
||||||
|
gdk_window_invalidate_region (_gtk_widget_get_window (widget), region2, TRUE);
|
||||||
|
|
||||||
cairo_region_destroy (region2);
|
cairo_region_destroy (region2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -276,8 +276,6 @@ struct _GtkWidget
|
|||||||
* @style_updated: Signal emitted when the GtkStyleContext of a widget
|
* @style_updated: Signal emitted when the GtkStyleContext of a widget
|
||||||
* is changed.
|
* is changed.
|
||||||
* @touch_event:
|
* @touch_event:
|
||||||
* @queue_draw_region: Invalidates the area of widget defined by
|
|
||||||
* region.
|
|
||||||
* @snapshot: Signal emitted when a widget is supposed to create a snapshot
|
* @snapshot: Signal emitted when a widget is supposed to create a snapshot
|
||||||
* of itself.
|
* of itself.
|
||||||
*/
|
*/
|
||||||
@ -471,8 +469,6 @@ struct _GtkWidgetClass
|
|||||||
gboolean (* touch_event) (GtkWidget *widget,
|
gboolean (* touch_event) (GtkWidget *widget,
|
||||||
GdkEventTouch *event);
|
GdkEventTouch *event);
|
||||||
|
|
||||||
void (* queue_draw_region) (GtkWidget *widget,
|
|
||||||
const cairo_region_t *region);
|
|
||||||
void (* snapshot) (GtkWidget *widget,
|
void (* snapshot) (GtkWidget *widget,
|
||||||
GtkSnapshot *snapshot);
|
GtkSnapshot *snapshot);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user