You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnucash/lib/goffice/gui-utils/go-action-combo-color.h

50 lines
1.9 KiB

/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* go-action-combo-color.h: A custom GtkAction to handle color selection
*
* Copyright (C) 2004 Jody Goldberg (jody@gnome.org)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
#ifndef __GO_ACTION_COMBO_COLOR_H__
#define __GO_ACTION_COMBO_COLOR_H__
#include <glib-object.h>
#include <goffice/utils/go-color.h>
G_BEGIN_DECLS
#define GO_ACTION_COMBO_COLOR_TYPE (go_action_combo_color ())
#define GO_ACTION_COMBO_COLOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_ACTION_COMBO_COLOR_TYPE, GOActionComboColor))
#define IS_GO_ACTION_COMBO_COLOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_ACTION_COMBO_COLOR_TYPE))
typedef struct _GOActionComboColor GOActionComboColor;
GType go_action_combo_color_get_type (void);
GOActionComboColor *
go_action_combo_color_new (char const *action_name,
char const *stock_id,
char const *default_color_label,
GOColor default_color,
gpointer group_key);
void go_action_combo_color_set_group (GOActionComboColor *a, gpointer group_key);
GOColor go_action_combo_color_get_color (GOActionComboColor *a, gboolean *is_default);
void go_action_combo_color_set_color (GOActionComboColor *a, GOColor color);
G_END_DECLS
#endif /* __GO_ACTION_COMBO_COLOR_H__ */