~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to plug-ins/common/guillotine.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *  Guillotine plug-in v0.9 by Adam D. Moss, adam@foxbox.org.  1998/09/01
3
3
 */
4
4
 
5
 
/* The GIMP -- an image manipulation program
 
5
/* GIMP - The GNU Image Manipulation Program
6
6
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
7
7
 *
8
8
 * This program is free software; you can redistribute it and/or modify
28
28
 
29
29
#include "libgimp/stdplugins-intl.h"
30
30
 
 
31
 
 
32
#define PLUG_IN_PROC "plug-in-guillotine"
 
33
 
 
34
 
31
35
/* Declare local functions.
32
36
 */
33
37
static void   query      (void);
40
44
static void   guillotine (gint32            image_ID);
41
45
 
42
46
 
43
 
GimpPlugInInfo PLUG_IN_INFO =
 
47
const GimpPlugInInfo PLUG_IN_INFO =
44
48
{
45
49
  NULL,  /* init_proc  */
46
50
  NULL,  /* quit_proc  */
54
58
static void
55
59
query (void)
56
60
{
57
 
  static GimpParamDef args[] =
 
61
  static const GimpParamDef args[] =
58
62
  {
59
 
    { GIMP_PDB_INT32,    "run_mode", "Interactive, non-interactive" },
 
63
    { GIMP_PDB_INT32,    "run-mode", "Interactive, non-interactive" },
60
64
    { GIMP_PDB_IMAGE,    "image",    "Input image"                  },
61
65
    { GIMP_PDB_DRAWABLE, "drawable", "Input drawable (unused)"      }
62
66
  };
63
67
 
64
 
  gimp_install_procedure ("plug_in_guillotine",
65
 
                          "Slice up the image into subimages, cutting along "
66
 
                          "the image's Guides.  Fooey to you and your "
67
 
                          "broccoli, Pokey.",
 
68
  gimp_install_procedure (PLUG_IN_PROC,
 
69
                          N_("Slice the image into subimages using guides"),
68
70
                          "This function takes an image and blah blah.  Hooray!",
69
71
                          "Adam D. Moss (adam@foxbox.org)",
70
72
                          "Adam D. Moss (adam@foxbox.org)",
75
77
                          G_N_ELEMENTS (args), 0,
76
78
                          args, NULL);
77
79
 
78
 
  gimp_plugin_menu_register ("plug_in_guillotine", "<Image>/Image/Transform");
 
80
  gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Image/Transform");
79
81
}
80
82
 
81
83
static void
101
103
 
102
104
  if (status == GIMP_PDB_SUCCESS)
103
105
    {
104
 
      gimp_progress_init (_("Guillotine..."));
 
106
      gimp_progress_init (_("Guillotine"));
105
107
      guillotine (image_ID);
106
108
      gimp_displays_flush ();
107
109
    }