[gtk+/wip/baedert/drawing: 198/396] switch: Use a gizmo as slider
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 198/396] switch: Use a gizmo as slider
- Date: Wed, 19 Jul 2017 11:27:00 +0000 (UTC)
commit 25ab215c441b7af4d823cec0f5d46c2873e124d9
Author: Timm Bäder <mail baedert org>
Date: Fri May 19 14:41:45 2017 +0200
switch: Use a gizmo as slider
The button was jut a stop-gap solution before GtkGizmo existed.
gtk/gtkswitch.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 1824191..884163a 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -68,6 +68,7 @@
#include "gtkprogresstrackerprivate.h"
#include "gtksettingsprivate.h"
#include "gtkcontainerprivate.h"
+#include "gtkgizmoprivate.h"
#include "fallback-c89.c"
@@ -671,7 +672,7 @@ gtk_switch_init (GtkSwitch *self)
gtk_widget_set_has_window (GTK_WIDGET (self), FALSE);
gtk_widget_set_can_focus (GTK_WIDGET (self), TRUE);
- priv->slider = g_object_new (GTK_TYPE_BUTTON, "css-name", "slider", NULL);
+ priv->slider = gtk_gizmo_new ("slider", NULL, NULL, NULL);
gtk_widget_set_parent (priv->slider, GTK_WIDGET (self));
gesture = gtk_gesture_multi_press_new (GTK_WIDGET (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]