Debian Codegraph @

src/gimp2/print-gutenprint.c

raw symbols SCIP
1 /*
2 *
3 * Print plug-in for the GIMP.
4 *
5 * Copyright 1997-2000 Michael Sweet ([email protected]) and
6 * Robert Krawitz ([email protected])
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the Free
10 * Software Foundation; either version 2 of the License, or (at your option)
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 * for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22 #ifdef HAVE_CONFIG_H
23 #include <config.h>
24 #endif
25
26 #include <gutenprintui2/gutenprintui.h>
27 #include "print_gimp.h"
28
29 #include "print-intl.h"
30
31 void
32 do_gimp_install_procedure(const char *blurb, const char *help,
33 const char *auth, const char *copy,
34 const char *types, int n_args,
35 GimpParamDef *args)
36 {
37 gimp_install_procedure (cast_safe("file_print_gutenprint"),
38 cast_safe(blurb),
39 cast_safe(help),
40 cast_safe(auth),
41 cast_safe(copy),
42 cast_safe(VERSION " - " RELEASE_DATE),
43 /* Do not translate the prefix "<Image>" */
44 #if (GIMP_MAJOR_VERSION > 2 || GIMP_MINOR_VERSION >= 2)
45 cast_safe(N_("_Print with Gutenprint...")),
46 #else
47 cast_safe(N_("<Image>/File/Print with Gutenprint...")),
48 #endif
49 cast_safe(types),
50 GIMP_PLUGIN,
51 n_args, 0,
52 args, NULL);
53 #if (GIMP_MAJOR_VERSION > 2 || GIMP_MINOR_VERSION >= 2)
54 gimp_plugin_menu_register (cast_safe("file_print_gutenprint"),
55 cast_safe("<Image>/File/Send"));
56 gimp_plugin_icon_register (cast_safe("file_print_gutenprint"),
57 GIMP_ICON_TYPE_STOCK_ID,
58 cast_safe(GTK_STOCK_PRINT));
59 #endif
60 }