~inkscape.dev/inkscape/trunk

« back to all changes in this revision

Viewing changes to src/help.cpp

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#define __SP_HELP_C__
 
2
 
 
3
/*
 
4
 * Help/About window
 
5
 *
 
6
 * Authors:
 
7
 *   Lauris Kaplinski <lauris@kaplinski.com>
 
8
 *   bulia byak <buliabyak@users.sf.net>
 
9
 *
 
10
 * Copyright (C) 1999-2005 authors
 
11
 * Copyright (C) 2000-2002 Ximian, Inc.
 
12
 *
 
13
 * Released under GNU GPL, read the file 'COPYING' for more information
 
14
 */
 
15
 
 
16
#ifdef HAVE_CONFIG_H
 
17
# include "config.h"
 
18
#endif
 
19
#include "path-prefix.h"
 
20
 
 
21
#include "help.h"
 
22
#include "file.h"
 
23
 
 
24
#include "ui/dialog/aboutbox.h"
 
25
 
 
26
void
 
27
sp_help_about (void)
 
28
{
 
29
    Inkscape::UI::Dialog::AboutBox::show_about();
 
30
}
 
31
 
 
32
void
 
33
sp_help_open_tutorial(GtkMenuItem *, gpointer data)
 
34
{
 
35
    gchar const *name = static_cast<gchar const *>(data);
 
36
    gchar *c = g_build_filename(INKSCAPE_TUTORIALSDIR, name, NULL);
 
37
    sp_file_open(c, NULL, false, false);
 
38
    g_free(c);
 
39
}
 
40
 
 
41
void
 
42
sp_help_open_screen(gchar const *name)
 
43
{
 
44
    gchar *c = g_build_filename(INKSCAPE_SCREENSDIR, name, NULL);
 
45
    sp_file_open(c, NULL, false, false);
 
46
    g_free(c);
 
47
}
 
48
 
 
49
 
 
50
/*
 
51
  Local Variables:
 
52
  mode:c++
 
53
  c-file-style:"stroustrup"
 
54
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
55
  indent-tabs-mode:nil
 
56
  fill-column:99
 
57
  End:
 
58
*/
 
59
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :