diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-09-15 20:30:37 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-09-15 20:30:37 (GMT) |
commit | 74642fbdeefaec21885e5fb6cad432e3e3b47cdb (patch) | |
tree | 11c5a34a3cdae86feefe6a35052b0384480fee75 /src/gtkext/gtkbinarystrip.c | |
parent | ce8c1719963657aeaf963650183e46979cab0d68 (diff) |
Defined a GTK3 style for binary portions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@404 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtkbinarystrip.c')
-rw-r--r-- | src/gtkext/gtkbinarystrip.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gtkext/gtkbinarystrip.c b/src/gtkext/gtkbinarystrip.c index 2381fd6..4ed5cf9 100644 --- a/src/gtkext/gtkbinarystrip.c +++ b/src/gtkext/gtkbinarystrip.c @@ -311,6 +311,7 @@ static gboolean gtk_binary_strip_draw(GtkWidget *widget, cairo_t *cr) GExeFormat *format; /* Format du binaire */ GBinPortion *portions; /* Portions binaires à dessiner*/ GdkRectangle full; /* Taille totale de la surface */ + GtkStyleContext *context; /* Contexte du thème actuel */ GdkRGBA *color; /* Couleur du curseur */ strip = GTK_BINARY_STRIP(widget); @@ -328,7 +329,9 @@ static gboolean gtk_binary_strip_draw(GtkWidget *widget, cairo_t *cr) full.width = gtk_widget_get_allocated_width(widget); full.height = gtk_widget_get_allocated_height(widget) - 1; - g_binary_portion_draw(portions, cr, &full); + context = gtk_widget_get_style_context(widget); + + g_binary_portion_draw(portions, context, cr, &full); /* Dessin de la position */ |