ukeyboard updated to version 2.0
[slovak-l10n] / ukeyboard / cpanel / about.c
1 /*
2  *  Copyright (c) 2008 Jiri Benc <jbenc@upir.cz>
3  *  Copyright (c) 2009 Roman Moravcik <roman.moravcik@gmail.com>
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License version 2 as
7  *  published by the Free Software Foundation.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  */
18
19 #include <stdio.h>
20 #include <string.h>
21 #include <glib.h>
22 #include <gtk/gtk.h>
23 #include <hildon/hildon.h>
24 #include <libosso.h>
25 #include <gconf/gconf.h>
26 #include <gconf/gconf-client.h>
27 #include "prefs.h"
28 #include "hw.h"
29
30 static GtkWidget *start(GConfClient *client, GtkWidget *win, void **data)
31 {
32         GtkWidget *scroll;
33         GtkWidget *label;
34
35         (void)client; (void)win;
36
37         scroll = hildon_pannable_area_new();
38
39         label = gtk_label_new(NULL);
40         gtk_label_set_markup(GTK_LABEL(label),
41 #include "about.inc"
42         );
43         hildon_pannable_area_add_with_viewport (HILDON_PANNABLE_AREA(scroll), label);
44         *data = NULL;
45         return GTK_WIDGET(scroll);
46 }
47
48 void prefs_about_init(struct prefs *prefs)
49 {
50         prefs->start = start;
51         prefs->action = NULL;
52         prefs->stop = NULL;
53         prefs->name = "About";
54 }