color-swatch: derive directly from GtkWidget

Instead of GtkDrawingArea, since that calls in realize
gtk_style_context_set_background(). We don't want that to happen, given
that we do all the painting ourselves in _draw().
This commit is contained in:
Cosimo Cecchi
2012-02-17 18:31:19 +01:00
parent b58d50a0da
commit 8e85702dca
2 changed files with 32 additions and 3 deletions

View File

@ -42,7 +42,7 @@ typedef struct _GtkColorSwatchPrivate GtkColorSwatchPrivate;
struct _GtkColorSwatch
{
GtkDrawingArea parent;
GtkWidget parent;
/*< private >*/
GtkColorSwatchPrivate *priv;
@ -50,7 +50,7 @@ struct _GtkColorSwatch
struct _GtkColorSwatchClass
{
GtkDrawingAreaClass parent_class;
GtkWidgetClass parent_class;
void ( * activate) (GtkColorSwatch *swatch);
void ( * customize) (GtkColorSwatch *swatch);