#ifndef SEEN_SP_COLOR_GTKSELECTOR_H
#define SEEN_SP_COLOR_GTKSELECTOR_H

#include <gtk/gtk.h>
#include "../color.h"
#include "sp-color-selector.h"

#include <glib.h>



struct SPColorGtkselector;



class ColorGtkselector: public ColorSelector
{
public:
    ColorGtkselector( SPColorSelector* csel );
    virtual ~ColorGtkselector();

    virtual void init();

protected:
    static void _gtkChanged( GtkColorSelection *colorselection, SPColorGtkselector *gtksel );

    virtual void _colorChanged();

    GtkColorSelection* _gtkThing;
    gulong _sigId;
};



#define SP_TYPE_COLOR_GTKSELECTOR (sp_color_gtkselector_get_type ())
#define SP_COLOR_GTKSELECTOR(o) (GTK_CHECK_CAST ((o), SP_TYPE_COLOR_GTKSELECTOR, SPColorGtkselector))
#define SP_COLOR_GTKSELECTOR_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), SP_TYPE_COLOR_GTKSELECTOR, SPColorGtkselectorClass))
#define SP_IS_COLOR_GTKSELECTOR(o) (GTK_CHECK_TYPE ((o), SP_TYPE_COLOR_GTKSELECTOR))
#define SP_IS_COLOR_GTKSELECTOR_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), SP_TYPE_COLOR_GTKSELECTOR))

struct SPColorGtkselector {
    SPColorSelector base;
};

struct SPColorGtkselectorClass {
    SPColorSelectorClass parent_class;
};

GType sp_color_gtkselector_get_type (void);

GtkWidget *sp_color_gtkselector_new( GType selector_type );



#endif // SEEN_SP_COLOR_GTKSELECTOR_H
