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

« back to all changes in this revision

Viewing changes to plug-ins/common/gee_zoom.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:
32
32
#include <stdlib.h>
33
33
#include <string.h>
34
34
 
35
 
#include <gtk/gtk.h>
36
 
 
37
35
#include <libgimp/gimp.h>
38
36
#include <libgimp/gimpui.h>
39
37
 
40
38
#include "libgimp/stdplugins-intl.h"
41
39
 
42
40
 
 
41
#define PLUG_IN_PROC   "plug-in-the-old-egg"
 
42
#define PLUG_IN_BINARY "gee_zoom"
 
43
 
 
44
 
43
45
/* Declare local functions. */
44
46
static void       query (void);
45
47
static void       run   (const gchar      *name,
61
63
static void       init_preview_misc        (void);
62
64
 
63
65
 
64
 
GimpPlugInInfo PLUG_IN_INFO =
 
66
const GimpPlugInInfo PLUG_IN_INFO =
65
67
{
66
68
  NULL,  /* init_proc  */
67
69
  NULL,  /* quit_proc  */
108
110
static void
109
111
query (void)
110
112
{
111
 
  static GimpParamDef args[] =
 
113
  static const GimpParamDef args[] =
112
114
  {
113
 
    { GIMP_PDB_INT32,    "run_mode", "Must be interactive (1)" },
 
115
    { GIMP_PDB_INT32,    "run-mode", "Must be interactive (1)" },
114
116
    { GIMP_PDB_IMAGE,    "image",    "Input Image"             },
115
117
    { GIMP_PDB_DRAWABLE, "drawable", "Input Drawable"          }
116
118
  };
117
119
 
118
 
  gimp_install_procedure ("plug_in_the_old_egg",
119
 
                          "A big hello from the GIMP team!",
 
120
  gimp_install_procedure (PLUG_IN_PROC,
 
121
                          N_("A big hello from the GIMP team!"),
120
122
                          "Hay-ulp",
121
123
                          "Adam D. Moss <adam@gimp.org>",
122
124
                          "Adam D. Moss <adam@gimp.org>",
123
125
                          "1998",
124
 
                          N_("Gee-_Zoom"),
 
126
                          N_("Gee Zoom"),
125
127
                          "RGB*, INDEXED*, GRAY*",
126
128
                          GIMP_PLUGIN,
127
129
                          G_N_ELEMENTS (args), 0,
128
130
                          args, NULL);
129
 
 
130
 
  gimp_plugin_menu_register ("plug_in_the_old_egg", "<Image>/Filters/Toys");
131
131
}
132
132
 
133
133
static void
179
179
  GtkWidget *dlg;
180
180
  GtkWidget *button;
181
181
  GtkWidget *frame;
182
 
 
183
 
  gimp_ui_init ("gee_zoom", TRUE);
184
 
 
185
 
  dlg = gimp_dialog_new (_("GEE-ZOOM"), "gee_zoom",
 
182
  gchar     *tmp;
 
183
 
 
184
  gimp_ui_init (PLUG_IN_BINARY, TRUE);
 
185
 
 
186
  dlg = gimp_dialog_new (_("Gee Zoom"), PLUG_IN_BINARY,
186
187
                         NULL, 0,
187
 
                         gimp_standard_help_func, "plug-in-the-old-egg",
 
188
                         gimp_standard_help_func, PLUG_IN_PROC,
188
189
                         NULL);
189
190
 
190
191
  button = gtk_dialog_add_button (GTK_DIALOG (dlg),
191
 
                                  _("Thank you for choosing GIMP"),
 
192
                                  _("Thank You for Choosing GIMP"),
192
193
                                  GTK_RESPONSE_OK);
193
194
 
194
195
  g_signal_connect (dlg, "response",
195
196
                    G_CALLBACK (window_response_callback),
196
197
                    NULL);
197
198
 
198
 
  gimp_help_set_help_data (button,
199
 
                           _("An obsolete creation of Adam D. Moss / "
200
 
                             "adam@gimp.org / adam@foxbox.org / 1998-2000"),
201
 
                           NULL);
202
199
 
 
200
  tmp = g_strdup_printf (_("An obsolete creation by %s"),
 
201
                         "Adam D. Moss / adam@gimp.org / adam@foxbox.org "
 
202
                         "/ 1998-2000");
 
203
  gimp_help_set_help_data (button, tmp, NULL);
 
204
  g_free (tmp);
203
205
  /* The 'fun' half of the dialog */
204
206
 
205
207
  frame = gtk_frame_new (NULL);
217
219
  gtk_widget_add_events (drawing_area,
218
220
                         GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
219
221
 
220
 
  g_signal_connect (drawing_area, "button_release_event",
 
222
  g_signal_connect (drawing_area, "button-release-event",
221
223
                    G_CALLBACK (toggle_feedbacktype),
222
224
                    NULL);
223
225