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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user