* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef __GTK_COLOR_SWATCH_H__
+#define __GTK_COLOR_SWATCH_H__
+
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
-#ifndef __GTK_COLOR_SWATCH_H__
-#define __GTK_COLOR_SWATCH_H__
-
#include <gtk/gtkdrawingarea.h>
G_BEGIN_DECLS
struct _GtkColorSwatch
{
- GtkDrawingArea parent;
+ GtkWidget parent;
/*< private >*/
GtkColorSwatchPrivate *priv;
struct _GtkColorSwatchClass
{
- GtkDrawingAreaClass parent_class;
+ GtkWidgetClass parent_class;
void ( * activate) (GtkColorSwatch *swatch);
void ( * customize) (GtkColorSwatch *swatch);
gdouble v,
gdouble a);
G_GNUC_INTERNAL
-void gtk_color_swatch_set_selected (GtkColorSwatch *swatch,
- gboolean selected);
-G_GNUC_INTERNAL
void gtk_color_swatch_set_can_drop (GtkColorSwatch *swatch,
gboolean can_drop);
G_GNUC_INTERNAL
G_GNUC_INTERNAL
void gtk_color_swatch_set_use_alpha (GtkColorSwatch *swatch,
gboolean use_alpha);
-
+G_GNUC_INTERNAL
+void gtk_color_swatch_set_selectable (GtkColorSwatch *swatch,
+ gboolean selectable);
+G_GNUC_INTERNAL
+gboolean gtk_color_swatch_get_selectable (GtkColorSwatch *swatch);
G_END_DECLS