mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 08:00:53 +00:00
libsysprof-gtk: use foreground color for selection column
This commit is contained in:
@ -97,6 +97,7 @@ sysprof_tracks_view_snapshot (GtkWidget *widget,
|
|||||||
GtkSnapshot *snapshot)
|
GtkSnapshot *snapshot)
|
||||||
{
|
{
|
||||||
SysprofTracksView *self = (SysprofTracksView *)widget;
|
SysprofTracksView *self = (SysprofTracksView *)widget;
|
||||||
|
GdkRGBA color;
|
||||||
double x, y;
|
double x, y;
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +117,15 @@ sysprof_tracks_view_snapshot (GtkWidget *widget,
|
|||||||
if (x < gtk_widget_get_width (self->top_left))
|
if (x < gtk_widget_get_width (self->top_left))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
{
|
||||||
|
GtkStyleContext *style_context = gtk_widget_get_style_context (GTK_WIDGET (self));
|
||||||
|
gtk_style_context_get_color (style_context, &color);
|
||||||
|
}
|
||||||
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
gtk_snapshot_append_color (snapshot,
|
gtk_snapshot_append_color (snapshot,
|
||||||
&(GdkRGBA) {0,0,0,.3},
|
&color,
|
||||||
&GRAPHENE_RECT_INIT (x, y, 1,
|
&GRAPHENE_RECT_INIT (x, y, 1,
|
||||||
gtk_widget_get_height (GTK_WIDGET (self->list_view))));
|
gtk_widget_get_height (GTK_WIDGET (self->list_view))));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user