[gtk+/wip/baedert/drawing: 114/301] switch: Remove css box drawing
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 114/301] switch: Remove css box drawing
- Date: Fri, 26 May 2017 10:43:33 +0000 (UTC)
commit b08260bb1ebde85019d2074bee8dc6abddce92c4
Author: Timm Bäder <mail baedert org>
Date: Wed May 3 10:31:24 2017 +0200
switch: Remove css box drawing
gtk/gtkswitch.c | 23 ++++-------------------
1 files changed, 4 insertions(+), 19 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 6a394f7..7b3ecbf 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -422,30 +422,15 @@ gtk_switch_size_allocate (GtkWidget *widget,
gtk_widget_set_clip (widget, &clip);
}
-static gboolean
-gtk_switch_snapshot_trough (GtkCssGadget *gadget,
- GtkSnapshot *snapshot,
- int x,
- int y,
- int width,
- int height,
- gpointer data)
-{
- GtkWidget *widget = gtk_css_gadget_get_owner (gadget);
+static void
+gtk_switch_snapshot (GtkWidget *widget,
+ GtkSnapshot *snapshot)
+{
GtkSwitchPrivate *priv = GTK_SWITCH (widget)->priv;
gtk_widget_snapshot_child (widget, priv->on_label, snapshot);
gtk_widget_snapshot_child (widget, priv->off_label, snapshot);
gtk_widget_snapshot_child (widget, priv->slider, snapshot);
-
- return FALSE;
-}
-
-static void
-gtk_switch_snapshot (GtkWidget *widget,
- GtkSnapshot *snapshot)
-{
- gtk_css_gadget_snapshot (GTK_SWITCH (widget)->priv->gadget, snapshot);
}
static void
@@ -725,7 +710,7 @@ gtk_switch_init (GtkSwitch *self)
GTK_WIDGET (self),
gtk_switch_get_content_size,
gtk_switch_allocate_contents,
- gtk_switch_snapshot_trough,
+ NULL,
NULL,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]