From f1234280aa810ffcce5e44a2a69edc912904b867 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 30 Aug 2023 14:57:57 -0700 Subject: [PATCH] sysprof: setup various cursors This makes it more obvious that you can select in the time scrubber. --- src/sysprof/sysprof-time-ruler.c | 2 ++ src/sysprof/sysprof-time-scrubber.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/sysprof/sysprof-time-ruler.c b/src/sysprof/sysprof-time-ruler.c index 851e548d..6757541f 100644 --- a/src/sysprof/sysprof-time-ruler.c +++ b/src/sysprof/sysprof-time-ruler.c @@ -288,6 +288,8 @@ sysprof_time_ruler_init (SysprofTimeRuler *self) G_CALLBACK (gtk_widget_queue_draw), self, G_CONNECT_SWAPPED); + + gtk_widget_set_cursor_from_name (GTK_WIDGET (self), "text"); } GtkWidget * diff --git a/src/sysprof/sysprof-time-scrubber.c b/src/sysprof/sysprof-time-scrubber.c index 609a443e..c659695a 100644 --- a/src/sysprof/sysprof-time-scrubber.c +++ b/src/sysprof/sysprof-time-scrubber.c @@ -644,6 +644,9 @@ sysprof_time_scrubber_init (SysprofTimeScrubber *self) G_CONNECT_SWAPPED); gtk_widget_init_template (GTK_WIDGET (self)); + + gtk_widget_set_cursor_from_name (GTK_WIDGET (self), "text"); + gtk_widget_set_cursor_from_name (GTK_WIDGET (self->zoom), "pointer"); } SysprofSession *