| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 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 |
|
| 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 |
} |