2 * Copyright (c) 2008 Jiri Benc <jbenc@upir.cz>
3 * Copyright (c) 2009 Roman Moravcik <roman.moravcik@gmail.com>
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.
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.
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
24 #include <gconf/gconf.h>
25 #include <gconf/gconf-client.h>
30 #include <hildon/hildon.h>
33 static gboolean label_focus(GtkWidget *widget, GtkDirectionType arg, gpointer data)
35 (void)arg; (void)data;
36 gtk_label_select_region(GTK_LABEL(widget), 0, 0);
41 static GtkWidget *start(GConfClient *client, GtkWidget *win, void **data)
46 GtkScrolledWindow *scroll;
50 (void)client; (void)win;
53 scroll = hildon_pannable_area_new();
55 scroll = GTK_SCROLLED_WINDOW(gtk_scrolled_window_new(NULL, NULL));
56 gtk_scrolled_window_set_policy(scroll, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
59 label = gtk_label_new(NULL);
60 gtk_label_set_markup(GTK_LABEL(label),
64 hildon_pannable_area_add_with_viewport (HILDON_PANNABLE_AREA(scroll), label);
66 gtk_label_set_selectable(GTK_LABEL(label), TRUE);
67 g_signal_connect(G_OBJECT(label), "focus", G_CALLBACK(label_focus), NULL);
68 gtk_scrolled_window_add_with_viewport(scroll, label);
71 return GTK_WIDGET(scroll);
74 void prefs_about_init(struct prefs *prefs)
79 prefs->name = "About";