]> sigrok.org Git - sigrok-gtk.git/blame - help.c
sr: Implement proper logging framework.
[sigrok-gtk.git] / help.c
CommitLineData
3f63165c
UH
1/*
2 * This file is part of the sigrok project.
3 *
4 * Copyright (C) 2011 Gareth McMullin <gareth@blacksphere.co.nz>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include <sigrok.h>
21#include <gtk/gtk.h>
22
23void help_wiki(void)
24{
25 gtk_show_uri(NULL, "http://www.sigrok.org/", GDK_CURRENT_TIME, NULL);
26}
27
28void help_about(GtkAction *action, GtkWindow *parent)
29{
30 (void)action;
31
32 gtk_show_about_dialog(parent,
33 "program_name", "Sigrok-GTK",
34 "version", "0.1",
35 "logo-icon-name", "sigrok-logo",
36 "comments", "Portable, cross-platform, "
37 "Free/Libre/Open-Source logic analyzer software.\n\nGTK+ Front-end",
38 "license",
39 "This program is free software: you can redistribute it and/or modify\n"
40 "it under the terms of the GNU General Public License as published by\n"
41 "the Free Software Foundation, either version 3 of the License, or\n"
42 "(at your option) any later version.\n\n"
43
44 "This program is distributed in the hope that it will be useful,\n"
45 "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
46 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
47 "GNU General Public License for more details.\n\n"
48
49 "You should have received a copy of the GNU General Public License\n"
50 "along with this program. If not, see <http://www.gnu.org/licenses/>.\n",
51 "website", "http://www.sigrok.org/",
52 NULL);
53}
54