diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-04-07 15:47:24 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-04-07 15:47:24 +0000 |
commit | 5b78a3048f7f7fbdd23b7338aa81d7bec237a7ee (patch) | |
tree | 88cdbe11a4df01a9643dfb311d66da5982a316fb /gtk/gtkscale.c | |
parent | 676ac380cd10b5c78d222a02e309b8448b17c6e5 (diff) | |
download | gtk+-5b78a3048f7f7fbdd23b7338aa81d7bec237a7ee.tar.gz |
gizmo: Add a contains_func
Let GtkGizmo override the contains() implementation.
Update all callers to pass NULL for the contains_func.
Diffstat (limited to 'gtk/gtkscale.c')
-rw-r--r-- | gtk/gtkscale.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 29607a9cca..c57549486e 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -1748,6 +1748,7 @@ gtk_scale_add_mark (GtkScale *scale, priv->top_marks_widget = gtk_gizmo_new ("marks", gtk_scale_measure_marks, gtk_scale_allocate_marks, + NULL, NULL); gtk_widget_insert_after (priv->top_marks_widget, @@ -1767,6 +1768,7 @@ gtk_scale_add_mark (GtkScale *scale, priv->bottom_marks_widget = gtk_gizmo_new ("marks", gtk_scale_measure_marks, gtk_scale_allocate_marks, + NULL, NULL); gtk_widget_insert_before (priv->bottom_marks_widget, @@ -1780,16 +1782,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); + mark->widget = gtk_gizmo_new ("mark", gtk_scale_measure_mark, gtk_scale_allocate_mark, NULL, NULL); g_object_set_data (G_OBJECT (mark->widget), "mark", mark); - mark->indicator_widget = gtk_gizmo_new ("indicator", - NULL, - NULL, - NULL); + mark->indicator_widget = gtk_gizmo_new ("indicator", NULL, NULL, NULL, NULL); gtk_widget_set_parent (mark->indicator_widget, mark->widget); if (mark->markup && *mark->markup) { |