00001 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 00002 /* 00003 * go-color-selector.h - A color selector 00004 * 00005 * Copyright (c) 2006 Emmanuel Pacaud (emmanuel.pacaud@lapp.in2p3.fr) 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License, version 2, as published by the Free Software Foundation. 00010 * 00011 * This library is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 00019 * USA. 00020 */ 00021 00022 #ifndef GO_COLOR_SELECTOR_H 00023 #define GO_COLOR_SELECTOR_H 00024 00025 #include <goffice/utils/go-color.h> 00026 #include <goffice/gtk/go-selector.h> 00027 #include <gtk/gtkwidget.h> 00028 00029 G_BEGIN_DECLS 00030 00031 GtkWidget *go_color_selector_new (GOColor initial_color, 00032 GOColor default_color, 00033 char const *group); 00034 GOColor go_color_selector_get_color (GOSelector *selector, gboolean *is_auto); 00035 gboolean go_color_selector_set_color (GOSelector *selector, GOColor color); 00036 00037 G_END_DECLS 00038 00039 #endif /* GO_COLOR_SELECTOR_H */