Using image as background for label

Hello all,

I would like to know if there’s a way to use an image to fill the
of a label widget ? (Like the background attribute of the html tag

or that fill the background of the page/table to a specific image.)

What I want to do is:

I create a Gtk::Table of 11 rows and 6 columns.
The first row is for title of the differente columns (I use this because
not renderer for a SpinButton for Gtk::TreeView). But, I would like to
have the
title of the column to be written in White and the background of each
should be an image that fill the entire place for the label.

Tell me if I’m wrong, but if I use Gtk::Image, the image should be the
size of the widget, isn’t it ? Or some gap will be display between each
of the table if the table is resized, no ?

I’ve tried Gtk::HtmlView, but this does not seem to work inside a

Any ideas guys ?

Ps: If there’s no way, I will use a background color instead of a
image :slight_smile:


  • Laurent Marzullo

Take Surveys. Earn Cash. Influence the Future of IT
Join’s Techsay panel and you’ll get the chance to share
opinions on IT & business topics through brief surveys - and earn cash