[gtk+/wip/baedert/drawing: 50/306] widget: Add default snapshot implementation
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 50/306] widget: Add default snapshot implementation
- Date: Fri, 23 Jun 2017 20:01:04 +0000 (UTC)
commit 84f8fccc7b3cf8ad8fdd8301c2768027a5d6dbac
Author: Timm Bäder <mail baedert org>
Date: Wed May 3 11:11:20 2017 +0200
widget: Add default snapshot implementation
gtk_widget_snapshot will snapshot the css box, the default snapshot
vfunc now gtk_widget_snapshot_child's all child widgets.
gtk/gtkwidget.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 39c5498..b3293b3 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -940,7 +940,12 @@ static void
gtk_widget_real_snapshot (GtkWidget *widget,
GtkSnapshot *snapshot)
{
- /* nothing to do here */
+ GtkWidget *child;
+
+ for (child = _gtk_widget_get_first_child (widget);
+ child != NULL;
+ child = _gtk_widget_get_next_sibling (child))
+ gtk_widget_snapshot_child (widget, child, snapshot);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]