GtkLevelBar Style Classes Not Working Correctly
Hi,
I'm using a GtkLevelBar to display successful or error statuses. For example, if an operation was successful, the bar would be green, else red.
To accomplish this, I'm adding a class to the style context using the Adwaita color classes. For successful, gtk_style_context_add_class(gtk_widget_get_style_context(m_levelBar), "success");
and for error, gtk_style_context_add_class(gtk_widget_get_style_context(m_levelBar), "error");
. When it's successful it displays correctly, however, for error it displays the successful's green color instead of red. If i change "error"
to "warning"
it still shows the successful color instead of the warning color.
And yes the code is reaching the "error"
line as I set a breakpoint and it hits.
Edited by Nick Logozzo