[gtk+/wip/baedert/drawing: 98/147] eventbox: Remove snapshot implementation
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 98/147] eventbox: Remove snapshot implementation
- Date: Thu, 18 May 2017 11:05:40 +0000 (UTC)
commit bf381b4d635854b3f7d687181c8d74b3a7308a9e
Author: Timm Bäder <mail baedert org>
Date: Sun May 7 14:20:19 2017 +0200
eventbox: Remove snapshot implementation
gtk/gtkeventbox.c | 25 -------------------------
1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/gtk/gtkeventbox.c b/gtk/gtkeventbox.c
index 475314a..b5f6050 100644
--- a/gtk/gtkeventbox.c
+++ b/gtk/gtkeventbox.c
@@ -30,7 +30,6 @@
#include "gtkprivate.h"
#include "gtkrender.h"
#include "gtksizerequest.h"
-#include "gtksnapshot.h"
/**
@@ -62,8 +61,6 @@ static void gtk_event_box_map (GtkWidget *widget);
static void gtk_event_box_unmap (GtkWidget *widget);
static void gtk_event_box_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
-static void gtk_event_box_snapshot (GtkWidget *widget,
- GtkSnapshot *snapshot);
static void gtk_event_box_set_property (GObject *object,
guint prop_id,
const GValue *value,
@@ -89,7 +86,6 @@ gtk_event_box_class_init (GtkEventBoxClass *class)
widget_class->map = gtk_event_box_map;
widget_class->unmap = gtk_event_box_unmap;
widget_class->size_allocate = gtk_event_box_size_allocate;
- widget_class->snapshot = gtk_event_box_snapshot;
g_object_class_install_property (gobject_class,
PROP_VISIBLE_WINDOW,
@@ -515,24 +511,3 @@ gtk_event_box_size_allocate (GtkWidget *widget,
if (child)
gtk_widget_size_allocate_with_baseline (child, &child_allocation, baseline);
}
-
-static void
-gtk_event_box_snapshot (GtkWidget *widget,
- GtkSnapshot *snapshot)
-{
- if (gtk_widget_get_has_window (widget))
- {
- GtkStyleContext *context;
-
- context = gtk_widget_get_style_context (widget);
-
- gtk_snapshot_render_background (snapshot, context, 0, 0,
- gtk_widget_get_allocated_width (widget),
- gtk_widget_get_allocated_height (widget));
- gtk_snapshot_render_frame (snapshot, context, 0, 0,
- gtk_widget_get_allocated_width (widget),
- gtk_widget_get_allocated_height (widget));
- }
-
- GTK_WIDGET_CLASS (gtk_event_box_parent_class)->snapshot (widget, snapshot);
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]