Added comment of to-be theme name variable to IrrecoStyleBrowserDlg struct.
[irreco.git] / irreco / trunk / src / core / irreco_button_style.c
blob45e303474af21c30e4f91002c77bfe0db12b134a
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 Arto Karppinen (arto.karppinen@iki.fi)
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #include "irreco_button.h"
21 #include <irreco_string_table.h>
23 /**
24 * @typedef IrrecoButtonStyle
27 IrrecoButtonStyle* irreco_button_style_create(IrrecoData * irreco_data, gchar *name,
28 gchar *up, gchar *down,
29 gboolean allow_text, gboolean editable)
31 IrrecoButtonStyle *button_style;
32 IRRECO_ENTER
34 button_style = g_slice_new0(IrrecoButtonStyle);
35 button_style->irreco_data = irreco_data;
36 button_style->name = g_strdup(name);
37 button_style->up = g_strdup(up);
38 button_style->down = g_strdup(down);
39 button_style->allow_text = allow_text;
40 button_style->editable = editable;
41 button_style->text_padding = 5;
42 IRRECO_RETURN_PTR(button_style);
45 void irreco_button_style_destroy(IrrecoButtonStyle * button_style)
47 IRRECO_ENTER
48 g_free(button_style->name);
49 g_free(button_style->up);
50 g_free(button_style->down);
51 g_slice_free(IrrecoButtonStyle, button_style);
52 IRRECO_RETURN