| 1 |
/* |
| 2 |
* This file is a part of hildon |
| 3 |
* |
| 4 |
* Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved. |
| 5 |
* |
| 6 |
* Author: Kuisma Salonen <kuisma.salonen@nokia.com> |
| 7 |
* Contact: Rodrigo Novo <rodrigo.novo@nokia.com> |
| 8 |
* |
| 9 |
* This library is free software; you can redistribute it and/or |
| 10 |
* modify it under the terms of the GNU Lesser General Public License |
| 11 |
* as published by the Free Software Foundation; version 2.1 of |
| 12 |
* the License, or (at your option) any later version. |
| 13 |
* |
| 14 |
* This library is distributed in the hope that it will be useful, but |
| 15 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 |
* Lesser General Public License for more details. |
| 18 |
* |
| 19 |
* You should have received a copy of the GNU Lesser General Public |
| 20 |
* License along with this library; if not, write to the Free Software |
| 21 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 22 |
* 02110-1301 USA |
| 23 |
* |
| 24 |
*/ |
| 25 |
|
| 26 |
#ifndef __HILDON_COLOR_CHOOSER_DIALOG_PRIVATE_H__ |
| 27 |
#define __HILDON_COLOR_CHOOSER_DIALOG_PRIVATE_H__ |
| 28 |
|
| 29 |
#include <gconf/gconf-client.h> |
| 30 |
|
| 31 |
typedef struct _HildonColorChooserDialogPrivate HildonColorChooserDialogPrivate; |
| 32 |
|
| 33 |
#define HILDON_COLOR_CHOOSER_DIALOG_GET_PRIVATE(obj) \ |
| 34 |
(G_TYPE_INSTANCE_GET_PRIVATE ((obj),\ |
| 35 |
HILDON_TYPE_COLOR_CHOOSER_DIALOG, HildonColorChooserDialogPrivate)); |
| 36 |
|
| 37 |
typedef struct |
| 38 |
{ |
| 39 |
GtkBorder radio_sizes; |
| 40 |
GtkBorder cont_sizes; |
| 41 |
GtkBorder num_buttons; |
| 42 |
GtkBorder last_num_buttons; |
| 43 |
|
| 44 |
GdkColor default_color; |
| 45 |
} HildonColorChooserStyleInfo; |
| 46 |
|
| 47 |
struct _HildonColorChooserDialogPrivate |
| 48 |
{ |
| 49 |
GtkWidget *hbox; |
| 50 |
GtkWidget *vbox; |
| 51 |
|
| 52 |
GtkWidget *align_custom, *align_defined; |
| 53 |
GtkWidget *area_custom, *area_defined; |
| 54 |
GtkWidget *separator; |
| 55 |
|
| 56 |
GtkWidget *chooser; |
| 57 |
|
| 58 |
GdkColor *colors_custom, *colors_defined; |
| 59 |
GdkColor color; |
| 60 |
GdkGC **gc_array; |
| 61 |
|
| 62 |
gint selected; |
| 63 |
|
| 64 |
HildonColorChooserStyleInfo style_info; |
| 65 |
|
| 66 |
gint has_style; |
| 67 |
|
| 68 |
GdkColor pending_color; |
| 69 |
|
| 70 |
GConfClient *gconf_client; |
| 71 |
}; |
| 72 |
|
| 73 |
#endif /* __HILDON_COLOR_CHOOSER_DIALOG_PRIVATE_H__ */ |