[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 16/41: Replace deprecated drawing code in resizer widget.
noreply at xfce.org
noreply at xfce.org
Sat Aug 20 18:32:30 CEST 2016
This is an automated email from the git hooks/post-receive script.
gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit c40dcec445c0782b5b95a2da59cd22af502ad24e
Author: Graeme Gott <graeme at gottcode.org>
Date: Mon Aug 8 14:06:10 2016 -0400
Replace deprecated drawing code in resizer widget.
---
panel-plugin/resizer-widget.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/panel-plugin/resizer-widget.cpp b/panel-plugin/resizer-widget.cpp
index f19cb52..bcda941 100644
--- a/panel-plugin/resizer-widget.cpp
+++ b/panel-plugin/resizer-widget.cpp
@@ -139,10 +139,10 @@ gboolean ResizerWidget::on_leave_notify_event(GtkWidget* widget, GdkEvent*)
gboolean ResizerWidget::on_draw_event(GtkWidget* widget, cairo_t* cr)
{
- GtkStyle* style = gtk_widget_get_style(widget);
-
- const GdkColor& color = style->text_aa[gtk_widget_get_state(widget)];
- cairo_set_source_rgb(cr, color.red / 65535.0, color.green / 65535.0, color.blue / 65535.0);
+ GdkRGBA color;
+ GtkStyleContext* context = gtk_widget_get_style_context(widget);
+ gtk_style_context_get_color(context, gtk_style_context_get_state(context), &color);
+ gdk_cairo_set_source_rgba(cr, &color);
cairo_move_to(cr, m_shape.back().x, m_shape.back().y);
for (std::vector<GdkPoint>::const_iterator point = m_shape.begin(), end = m_shape.end(); point != end; ++point)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list