diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-04-08 07:34:38 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-04-09 17:50:29 -0400 |
commit | 46ff9f891ac6b5ec285cbbe1436e0187967c21bc (patch) | |
tree | ef611d439696685f6151bf85d8ca4aa466f88047 /gtk/gtkscale.c | |
parent | 97ff1b83dce32b45329139651ded7d6b774bc8e2 (diff) | |
download | gtk+-46ff9f891ac6b5ec285cbbe1436e0187967c21bc.tar.gz |
gizmo: Allow passing changing focus behavior
We need this in popovers. Maybe it could be done better
by defining one-off custom widgets.
Diffstat (limited to 'gtk/gtkscale.c')
-rw-r--r-- | gtk/gtkscale.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 9583c3ea9c..c961919524 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -1715,7 +1715,8 @@ gtk_scale_add_mark (GtkScale *scale, gtk_scale_measure_marks, gtk_scale_allocate_marks, NULL, - NULL); + NULL, + NULL, NULL); gtk_widget_insert_after (priv->top_marks_widget, GTK_WIDGET (scale), @@ -1734,7 +1735,8 @@ gtk_scale_add_mark (GtkScale *scale, gtk_scale_measure_marks, gtk_scale_allocate_marks, NULL, - NULL); + NULL, + NULL, NULL); gtk_widget_insert_before (priv->bottom_marks_widget, GTK_WIDGET (scale), @@ -1746,10 +1748,10 @@ gtk_scale_add_mark (GtkScale *scale, marks_widget = priv->bottom_marks_widget; } - mark->widget = gtk_gizmo_new ("mark", gtk_scale_measure_mark, gtk_scale_allocate_mark, NULL, NULL); + mark->widget = gtk_gizmo_new ("mark", gtk_scale_measure_mark, gtk_scale_allocate_mark, NULL, NULL, NULL, NULL); g_object_set_data (G_OBJECT (mark->widget), "mark", mark); - mark->indicator_widget = gtk_gizmo_new ("indicator", NULL, NULL, NULL, NULL); + mark->indicator_widget = gtk_gizmo_new ("indicator", NULL, NULL, NULL, NULL, NULL, NULL); gtk_widget_set_parent (mark->indicator_widget, mark->widget); if (mark->markup && *mark->markup) { |