32
32
#include <stdlib.h>
33
33
#include <string.h>
37
35
#include <libgimp/gimp.h>
38
36
#include <libgimp/gimpui.h>
40
38
#include "libgimp/stdplugins-intl.h"
41
#define PLUG_IN_PROC "plug-in-the-old-egg"
42
#define PLUG_IN_BINARY "gee_zoom"
43
45
/* Declare local functions. */
44
46
static void query (void);
45
47
static void run (const gchar *name,
111
static GimpParamDef args[] =
113
static const GimpParamDef args[] =
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" }
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!"),
121
123
"Adam D. Moss <adam@gimp.org>",
122
124
"Adam D. Moss <adam@gimp.org>",
125
127
"RGB*, INDEXED*, GRAY*",
127
129
G_N_ELEMENTS (args), 0,
130
gimp_plugin_menu_register ("plug_in_the_old_egg", "<Image>/Filters/Toys");
180
180
GtkWidget *button;
181
181
GtkWidget *frame;
183
gimp_ui_init ("gee_zoom", TRUE);
185
dlg = gimp_dialog_new (_("GEE-ZOOM"), "gee_zoom",
184
gimp_ui_init (PLUG_IN_BINARY, TRUE);
186
dlg = gimp_dialog_new (_("Gee Zoom"), PLUG_IN_BINARY,
187
gimp_standard_help_func, "plug-in-the-old-egg",
188
gimp_standard_help_func, PLUG_IN_PROC,
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);
194
195
g_signal_connect (dlg, "response",
195
196
G_CALLBACK (window_response_callback),
198
gimp_help_set_help_data (button,
199
_("An obsolete creation of Adam D. Moss / "
200
"adam@gimp.org / adam@foxbox.org / 1998-2000"),
200
tmp = g_strdup_printf (_("An obsolete creation by %s"),
201
"Adam D. Moss / adam@gimp.org / adam@foxbox.org "
203
gimp_help_set_help_data (button, tmp, NULL);
203
205
/* The 'fun' half of the dialog */
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);
220
g_signal_connect (drawing_area, "button_release_event",
222
g_signal_connect (drawing_area, "button-release-event",
221
223
G_CALLBACK (toggle_feedbacktype),