plug-ins/common/tga.c plug-ins/common/tiff.c plug-ins/common/tile.c

* plug-ins/common/tga.c
        * plug-ins/common/tiff.c
        * plug-ins/common/tile.c
        * plug-ins/common/tileit.c
        * plug-ins/common/tiler.c
        * plug-ins/common/url.c
        * plug-ins/common/video.c
        * plug-ins/common/vinvert.c
        * plug-ins/common/vpropagate.c
        * po-plug-ins/POTFILES.in: added gettext support.

        * plug-ins/common/threshold_alpha.c: fixed typo.

-- yasuhiro
This commit is contained in:
SHIRASAKI Yasuhiro 2000-01-09 06:02:20 +00:00
parent dc36f59dbb
commit c4a2212087
14 changed files with 213 additions and 134 deletions

View File

@ -1,3 +1,18 @@
2000-01-09 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
* plug-ins/common/tga.c
* plug-ins/common/tiff.c
* plug-ins/common/tile.c
* plug-ins/common/tileit.c
* plug-ins/common/tiler.c
* plug-ins/common/url.c
* plug-ins/common/video.c
* plug-ins/common/vinvert.c
* plug-ins/common/vpropagate.c
* po-plug-ins/POTFILES.in: added gettext support.
* plug-ins/common/threshold_alpha.c: fixed typo.
2000-01-08 Michael Natterer <mitch@gimp.org>
* plug-ins/common/plugin-defs.pl

View File

@ -85,6 +85,7 @@
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
/* Round up a division to the nearest integer. */
#define ROUNDUP_DIVIDE(n,d) (((n) + (d - 1)) / (d))
@ -226,21 +227,23 @@ query ()
} ;
static int nsave_args = sizeof (save_args) / sizeof (save_args[0]);
INIT_I18N();
gimp_install_procedure ("file_tga_load",
"Loads files of Targa file format",
_("Loads files of Targa file format"),
"FIXME: write help for tga_load",
"Raphael FRANCOIS, Gordon Matzigkeit",
"Raphael FRANCOIS, Gordon Matzigkeit",
"1997",
"<Load>/TGA",
NULL,
NULL,
PROC_PLUG_IN,
nload_args, nload_return_vals,
load_args, load_return_vals);
gimp_install_procedure ("file_tga_save",
"saves files in the Targa file format",
_("saves files in the Targa file format"),
"FIXME: write help for tga_save",
"Raphael FRANCOIS, Gordon Matzigkeit",
"Raphael FRANCOIS, Gordon Matzigkeit",
@ -289,6 +292,7 @@ run (char *name,
if (strcmp (name, "file_tga_load") == 0)
{
INIT_I18N();
#ifdef PROFILE
times (&tbuf1);
#endif
@ -308,6 +312,7 @@ run (char *name,
}
else if (strcmp (name, "file_tga_save") == 0)
{
INIT_I18N_UI();
init_gtk ();
image_ID = param[1].data.d_int32;
@ -406,8 +411,7 @@ load_image (char *filename)
return -1;
}
name_buf = g_malloc (strlen (filename) + 11);
sprintf (name_buf, "Loading %s:", filename);
name_buf = g_strdup_printf( _("Loading %s:"), filename);
gimp_progress_init (name_buf);
g_free (name_buf);
@ -991,7 +995,7 @@ ReadImage (FILE *fp,
/* Continue initializing. */
layer_ID = gimp_layer_new (image_ID,
"Background",
_("Background"),
width, height,
dtype,
100,
@ -1173,8 +1177,7 @@ save_image (char *filename,
width = drawable->width;
height = drawable->height;
name_buf = (guchar *) g_malloc(strlen(filename) + 11);
sprintf((char *)name_buf, "Saving %s:", filename);
name_buf = g_strdup_printf( _("Saving %s:"), filename);
gimp_progress_init((char *)name_buf);
g_free(name_buf);
@ -1434,14 +1437,14 @@ save_dialog (void)
GtkWidget *frame;
GtkWidget *vbox;
dlg = gimp_dialog_new ("Save as TGA", "tga",
dlg = gimp_dialog_new (_("Save as TGA"), "tga",
gimp_plugin_help_func, "filters/tga.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
"OK", save_ok_callback,
_("OK"), save_ok_callback,
NULL, NULL, NULL, TRUE, FALSE,
"Cancel", gtk_widget_destroy,
_("Cancel"), gtk_widget_destroy,
NULL, 1, NULL, FALSE, TRUE,
NULL);
@ -1451,7 +1454,7 @@ save_dialog (void)
NULL);
/* regular tga parameter settings */
frame = gtk_frame_new ("Targa Options");
frame = gtk_frame_new ( _("Targa Options"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_border_width (GTK_CONTAINER (frame), 6);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
@ -1460,7 +1463,7 @@ save_dialog (void)
gtk_container_add (GTK_CONTAINER (frame), vbox);
/* rle */
toggle = gtk_check_button_new_with_label ("RLE compression");
toggle = gtk_check_button_new_with_label ( _("RLE compression"));
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) save_toggle_update,

View File

@ -1,6 +1,6 @@
/* threshold_alpha.c -- This is a plug-in for the GIMP (1.0's API)
* Author: Shuji Narazaki <narazaki@InetQ.or.jp>
* Time-stamp: <1999-09-05 04:24:02 yasuhiro>
* Time-stamp: <2000-01-09 13:25:30 yasuhiro>
* Version: 0.13A (the 'A' is for Adam who hacked in greyscale
* support - don't know if there's a more recent official
* version)
@ -387,7 +387,7 @@ ERROR_DIALOG (gint gtk_was_not_initialized, gchar *message)
gtk_rc_parse (gimp_gtkrc ());
}
dlg = gimp_dialog_new (_("Threshold Aplha"), "threshold_alpha",
dlg = gimp_dialog_new (_("Threshold Alpha"), "threshold_alpha",
gimp_plugin_help_func, "filters/threshold_alpha.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,

View File

@ -35,8 +35,10 @@
#include <string.h>
#include <tiffio.h>
#include "config.h"
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
typedef struct
{
@ -158,8 +160,10 @@ query ()
};
static int nsave_args = sizeof (save_args) / sizeof (save_args[0]);
INIT_I18N();
gimp_install_procedure ("file_tiff_load",
"loads files of the tiff file format",
_("loads files of the tiff file format"),
"FIXME: write help for tiff_load",
"Spencer Kimball, Peter Mattis & Nick Lamb",
"Nick Lamb <njl195@zepler.org.uk>",
@ -171,7 +175,7 @@ query ()
load_args, load_return_vals);
gimp_install_procedure ("file_tiff_save",
"saves files in the tiff file format",
_("saves files in the tiff file format"),
"FIXME: write help for tiff_save",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
@ -217,6 +221,7 @@ run (char *name,
if (strcmp (name, "file_tiff_load") == 0)
{
INIT_I18N();
image = load_image (param[1].data.d_string);
if (image != -1)
@ -244,6 +249,7 @@ run (char *name,
{
case RUN_INTERACTIVE:
case RUN_WITH_LAST_VALS:
INIT_I18N_UI();
init_gtk ();
export = gimp_export_image (&image, &drawable, "TIFF",
(CAN_HANDLE_RGB | CAN_HANDLE_GRAY | CAN_HANDLE_INDEXED |
@ -291,6 +297,7 @@ run (char *name,
break;
case RUN_NONINTERACTIVE:
INIT_I18N();
/* Make sure all the arguments are there! */
if (nparams != 6)
status = STATUS_CALLING_ERROR;
@ -369,8 +376,7 @@ load_image (char *filename)
gimp_quit ();
}
name = g_malloc (strlen (filename) + 12);
sprintf (name, "Loading %s:", filename);
name = g_strdup_printf( _("Loading %s:"), filename);
gimp_progress_init (name);
g_free (name);
@ -579,7 +585,7 @@ load_image (char *filename)
/* Allocate channel_data for all channels, even the background layer */
channel = g_new (channel_data, extra + 1);
layer = gimp_layer_new (image, "Background", cols, rows, layer_type,
layer = gimp_layer_new (image, _("Background"), cols, rows, layer_type,
100, NORMAL_MODE);
channel[0].ID= layer;
gimp_image_add_layer (image, layer, 0);
@ -588,7 +594,7 @@ load_image (char *filename)
if (extra > 0 && !worst_case) {
/* Add alpha channels as appropriate */
for (i= 1; i <= extra; ++i) {
channel[i].ID= gimp_channel_new(image, "TIFF Channel", cols, rows,
channel[i].ID= gimp_channel_new(image, _("TIFF Channel"), cols, rows,
100.0, colors);
gimp_image_add_channel(image, channel[i].ID, 0);
channel[i].drawable= gimp_drawable_get (channel[i].ID);
@ -1151,8 +1157,7 @@ static gint save_image (char *filename,
return 0;
}
name = malloc (strlen (filename) + 11);
sprintf (name, "Saving %s:", filename);
name = g_strdup_printf( _("Saving %s:"), filename);
gimp_progress_init (name);
free (name);
@ -1396,14 +1401,14 @@ save_dialog (void)
gint use_lzw = (tsvals.compression == COMPRESSION_LZW);
gint use_packbits = (tsvals.compression == COMPRESSION_PACKBITS);
dlg = gimp_dialog_new ("Save as TIFF", "tiff",
dlg = gimp_dialog_new ( _("Save as TIFF"), "tiff",
gimp_plugin_help_func, "filters/tiff.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
"OK", save_ok_callback,
_("OK"), save_ok_callback,
NULL, NULL, NULL, TRUE, FALSE,
"Cancel", gtk_widget_destroy,
_("Cancel"), gtk_widget_destroy,
NULL, 1, NULL, FALSE, TRUE,
NULL);
@ -1416,7 +1421,7 @@ save_dialog (void)
hbox = gtk_hbox_new (FALSE, 6);
/* compression */
frame = gtk_frame_new ("Compression");
frame = gtk_frame_new ( _("Compression"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_set_border_width (GTK_CONTAINER (frame), 6);
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, FALSE, 0);
@ -1426,7 +1431,7 @@ save_dialog (void)
gtk_container_add (GTK_CONTAINER (frame), toggle_vbox);
group = NULL;
toggle = gtk_radio_button_new_with_label (group, "None");
toggle = gtk_radio_button_new_with_label (group, _("None"));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -1435,7 +1440,7 @@ save_dialog (void)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), use_none);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (group, "LZW");
toggle = gtk_radio_button_new_with_label (group, _("LZW"));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -1444,7 +1449,7 @@ save_dialog (void)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), use_lzw);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (group, "Pack Bits");
toggle = gtk_radio_button_new_with_label (group, _("Pack Bits"));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -1469,7 +1474,7 @@ save_dialog (void)
gtk_container_add (GTK_CONTAINER (frame), hbox);
gtk_widget_show (hbox);
label = gtk_label_new ("Comment:");
label = gtk_label_new ( _("Comment:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);

View File

@ -23,10 +23,12 @@
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
#define ENTRY_WIDTH 60
#define ENTRY_HEIGHT 25
@ -119,13 +121,15 @@ query ()
static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = sizeof (return_vals) / sizeof (return_vals[0]);
INIT_I18N();
gimp_install_procedure ("plug_in_tile",
"Create a new image which is a tiled version of the input drawable",
"This function creates a new image with a single layer sized to the specified 'new_width' and 'new_height' parameters. The specified drawable is tiled into this layer. The new layer will have the same type as the specified drawable and the new image will have a corresponding base type",
_("Create a new image which is a tiled version of the input drawable"),
_("This function creates a new image with a single layer sized to the specified 'new_width' and 'new_height' parameters. The specified drawable is tiled into this layer. The new layer will have the same type as the specified drawable and the new image will have a corresponding base type"),
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1996-1997",
"<Image>/Filters/Map/Tile...",
N_("<Image>/Filters/Map/Tile..."),
"RGB*, GRAY*, INDEXED*",
PROC_PLUG_IN,
nargs, nreturn_vals,
@ -161,6 +165,7 @@ run (char *name,
switch (run_mode)
{
case RUN_INTERACTIVE:
INIT_I18N_UI();
/* Possibly retrieve data */
gimp_get_data ("plug_in_tile", &tvals);
@ -170,6 +175,7 @@ run (char *name,
break;
case RUN_NONINTERACTIVE:
INIT_I18N();
/* Make sure all the arguments are there! */
if (nparams != 6)
status = STATUS_CALLING_ERROR;
@ -184,6 +190,7 @@ run (char *name,
break;
case RUN_WITH_LAST_VALS:
INIT_I18N();
/* Possibly retrieve data */
gimp_get_data ("plug_in_tile", &tvals);
break;
@ -195,7 +202,7 @@ run (char *name,
/* Make sure that the drawable is gray or RGB color */
if (status == STATUS_SUCCESS)
{
gimp_progress_init ("Tiling...");
gimp_progress_init ( _("Tiling..."));
gimp_tile_cache_ntiles (2 * (width + 1) / gimp_tile_width ());
values[1].data.d_image = tile (param[1].data.d_image, param[2].data.d_drawable, &new_layer);
@ -258,7 +265,7 @@ tile (gint32 image_id,
}
new_image_id = gimp_image_new (tvals.new_width, tvals.new_height, image_type);
*layer_id = gimp_layer_new (new_image_id, "Background",
*layer_id = gimp_layer_new (new_image_id, _("Background"),
tvals.new_width, tvals.new_height,
gimp_drawable_type (drawable_id),
100, NORMAL_MODE);
@ -381,14 +388,14 @@ tile_dialog (gint width, gint height)
tvals.new_width = width;
tvals.new_height = height;
dlg = gimp_dialog_new ("Tile", "tile",
dlg = gimp_dialog_new ( _("Tile"), "tile",
gimp_plugin_help_func, "filters/tile.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
"OK", tile_ok_callback,
_("OK"), tile_ok_callback,
NULL, NULL, NULL, TRUE, FALSE,
"Cancel", gtk_widget_destroy,
_("Cancel"), gtk_widget_destroy,
NULL, 1, NULL, FALSE, TRUE,
NULL);
@ -398,7 +405,7 @@ tile_dialog (gint width, gint height)
NULL);
/* parameter settings */
frame = gtk_frame_new ("Tile to New Size");
frame = gtk_frame_new ( _("Tile to New Size"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_set_border_width (GTK_CONTAINER (frame), 6);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
@ -409,7 +416,7 @@ tile_dialog (gint width, gint height)
gtk_table_set_row_spacings (GTK_TABLE (table), 2);
gtk_table_set_col_spacings (GTK_TABLE (table), 4);
label = gtk_label_new ("Width:");
label = gtk_label_new ( _("Width:"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
GTK_FILL, GTK_FILL, 0, 0);
@ -426,7 +433,7 @@ tile_dialog (gint width, gint height)
&tvals.new_width);
gtk_widget_show (tint.width_entry);
label = gtk_label_new ("Height:");
label = gtk_label_new ( _("Height:"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
GTK_FILL, GTK_FILL, 0, 0);
@ -443,7 +450,7 @@ tile_dialog (gint width, gint height)
&tvals.new_height);
gtk_widget_show (tint.height_entry);
toggle = gtk_check_button_new_with_label ("Constrain Ratio");
toggle = gtk_check_button_new_with_label ( _("Constrain Ratio"));
gtk_table_attach (GTK_TABLE (table), toggle, 0, 2, 2, 3,
GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -452,7 +459,7 @@ tile_dialog (gint width, gint height)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), tvals.constrain);
gtk_widget_show (toggle);
toggle = gtk_check_button_new_with_label ("New Image");
toggle = gtk_check_button_new_with_label ( _("New Image"));
gtk_table_attach (GTK_TABLE (table), toggle, 0, 2, 3, 4,
GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",

View File

@ -41,12 +41,12 @@
#include <string.h>
#include <signal.h>
#include "config.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
/***** Magic numbers *****/
@ -211,13 +211,15 @@ query ()
static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure ("plug_in_small_tiles",
"Tiles image into smaller versions of the orginal",
_("Tiles image into smaller versions of the orginal"),
"More here later",
"Andy Thomas",
"Andy Thomas",
"1997",
"<Image>/Filters/Map/Small Tiles...",
N_("<Image>/Filters/Map/Small Tiles..."),
"RGB*, GRAY*",
PROC_PLUG_IN,
nargs, nreturn_vals,
@ -275,6 +277,7 @@ run (gchar *name,
switch (run_mode)
{
case RUN_INTERACTIVE:
INIT_I18N_UI();
gimp_get_data ("plug_in_tileit", &itvals);
if (! tileit_dialog())
{
@ -290,9 +293,11 @@ run (gchar *name,
{
itvals.numtiles = param[3].data.d_int32;
}
INIT_I18N();
break;
case RUN_WITH_LAST_VALS:
INIT_I18N();
gimp_get_data ("plug_in_tileit", &itvals);
break;
@ -306,7 +311,7 @@ run (gchar *name,
gimp_tile_cache_ntiles((drawable->width + gimp_tile_width() - 1) / gimp_tile_width());
gimp_progress_init ("Tiling ...");
gimp_progress_init ( _("Tiling..."));
do_tiles();
@ -371,14 +376,14 @@ tileit_dialog (void)
cache_preview (); /* Get the preview image and store it also set has_alpha */
/* Start buildng the dialog up */
dlg = gimp_dialog_new ("TileIt", "tileit",
dlg = gimp_dialog_new ( _("TileIt"), "tileit",
gimp_plugin_help_func, "filters/tileit.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
"OK", tileit_ok_callback,
_("OK"), tileit_ok_callback,
NULL, NULL, NULL, TRUE, FALSE,
"Cancel", gtk_widget_destroy,
_("Cancel"), gtk_widget_destroy,
NULL, 1, NULL, FALSE, TRUE,
NULL);
@ -397,7 +402,7 @@ tileit_dialog (void)
gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
frame = gtk_frame_new ("Preview");
frame = gtk_frame_new ( _("Preview"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
@ -427,7 +432,7 @@ tileit_dialog (void)
/* Area for buttons etc */
frame = gtk_frame_new ("Flipping");
frame = gtk_frame_new ( _("Flipping"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
@ -441,7 +446,7 @@ tileit_dialog (void)
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
toggle = gtk_check_button_new_with_label ("Horizontal");
toggle = gtk_check_button_new_with_label ( _("Horizontal"));
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) tileit_hvtoggle_update,
@ -449,7 +454,7 @@ tileit_dialog (void)
gtk_widget_show (toggle);
res_call.htoggle = toggle;
toggle = gtk_check_button_new_with_label ("Vertical");
toggle = gtk_check_button_new_with_label ( _("Vertical"));
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) tileit_hvtoggle_update,
@ -457,7 +462,7 @@ tileit_dialog (void)
gtk_widget_show (toggle);
res_call.vtoggle = toggle;
xframe = gtk_frame_new("Applied to Tile");
xframe = gtk_frame_new( _("Applied to Tile"));
gtk_frame_set_shadow_type (GTK_FRAME (xframe), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (vbox), xframe, FALSE, FALSE, 0);
gtk_widget_show(xframe);
@ -470,7 +475,7 @@ tileit_dialog (void)
gtk_container_add (GTK_CONTAINER (xframe), table);
gtk_widget_show (table);
toggle = gtk_radio_button_new_with_label (orientation_group, "All Tiles");
toggle = gtk_radio_button_new_with_label (orientation_group, _("All Tiles"));
orientation_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_table_attach (GTK_TABLE (table), toggle, 0, 4, 0, 1,
GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0);
@ -480,7 +485,7 @@ tileit_dialog (void)
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (orientation_group,
"Alternate Tiles");
_("Alternate Tiles"));
orientation_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_table_attach (GTK_TABLE (table), toggle, 0, 4, 1, 2,
GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0);
@ -489,13 +494,14 @@ tileit_dialog (void)
(gpointer)ALT);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (orientation_group, "Explict Tile");
toggle = gtk_radio_button_new_with_label (orientation_group,
_("Explicit Tile"));
orientation_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_table_attach (GTK_TABLE (table), toggle, 0, 1, 2, 4,
GTK_FILL | GTK_SHRINK, GTK_FILL, 0, 0);
gtk_widget_show (toggle);
label = gtk_label_new ("Row:");
label = gtk_label_new (_("Row:"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 1, 2, 2, 3,
GTK_FILL | GTK_SHRINK , GTK_FILL, 0, 0);
@ -516,7 +522,7 @@ tileit_dialog (void)
&exp_call);
exp_call.r_entry = entry;
label = gtk_label_new ("Column:");
label = gtk_label_new ( _("Column:"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 1, 2, 3, 4,
@ -541,7 +547,7 @@ tileit_dialog (void)
(GtkSignalFunc) tileit_toggle_update,
(gpointer)EXPLICT);
button = gtk_button_new_with_label ("Apply");
button = gtk_button_new_with_label ( _("Apply"));
gtk_widget_set_sensitive (button, FALSE);
gtk_table_attach (GTK_TABLE (table), button, 3, 4, 2, 4, 0, 0, 0, 0);
gtk_widget_show (button);
@ -551,7 +557,7 @@ tileit_dialog (void)
exp_call.applybut = button;
/* Widget for selecting the Opacity */
label = gtk_label_new ("Opacity:");
label = gtk_label_new ( _("Opacity:"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5,
GTK_FILL | GTK_SHRINK, GTK_FILL, 0, 0);
@ -588,7 +594,7 @@ tileit_dialog (void)
gtk_widget_set_sensitive (entry,FALSE);
gtk_widget_show (entry);
button = gtk_button_new_with_label ("Reset");
button = gtk_button_new_with_label ( _("Reset"));
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_widget_show (button);
gtk_signal_connect(GTK_OBJECT(button), "clicked",
@ -599,7 +605,7 @@ tileit_dialog (void)
/* Lower frame saying howmany segments */
frame = gtk_frame_new ("Segment Setting");
frame = gtk_frame_new ( _("Segment Setting"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (main_vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);

View File

@ -18,7 +18,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
/* Declare local functions.
*/
@ -52,13 +54,15 @@ query ()
static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure ("plug_in_make_seamless",
"Seamless tile creation",
"This plugin creates a seamless tileable from the input image",
_("Seamless tile creation"),
_("This plugin creates a seamless tileable from the input image"),
"Tim Rowley",
"Tim Rowley",
"1997",
"<Image>/Filters/Map/Make Seamless",
N_("<Image>/Filters/Map/Make Seamless"),
"RGB*, GRAY*",
PROC_PLUG_IN,
nargs, nreturn_vals,
@ -80,6 +84,8 @@ run (char *name,
run_mode = param[0].data.d_int32;
INIT_I18N();
/* Get the specified drawable */
drawable = gimp_drawable_get (param[2].data.d_drawable);
@ -161,7 +167,7 @@ tile(GDrawable *drawable)
/* Get the input */
gimp_drawable_mask_bounds(drawable->id, &x1, &y1, &x2, &y2);
gimp_progress_init("Tiler");
gimp_progress_init( _("Tiler..."));
width = drawable->width;
height = drawable->height;

View File

@ -25,7 +25,9 @@
#ifdef __EMX__
#include <process.h>
#endif
#include "config.h"
#include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
/* Author: Josh MacDonald. */
@ -65,9 +67,11 @@ query ()
static int nload_args = sizeof (load_args) / sizeof (load_args[0]);
static int nload_return_vals = sizeof (load_return_vals) / sizeof (load_return_vals[0]);
INIT_I18N();
gimp_install_procedure ("file_url_load",
"loads files given a URL",
"You need to have GNU Wget installed.",
_("loads files given a URL"),
_("You need to have GNU Wget installed."),
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1997",

View File

@ -23,10 +23,12 @@
#include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
#define MAX_PATTERNS 9
@ -35,15 +37,15 @@
const gint pattern_width[MAX_PATTERNS] = {2,4,1,1,2,3,6,6,5};
const gint pattern_height[MAX_PATTERNS] = {6,12,3,6,12,3,6,18,15};
const char *pattern_name[MAX_PATTERNS] = {
"Staggered",
"Large staggered",
"Striped",
"Wide-striped",
"Long-staggered",
"3x3",
"Large 3x3",
"Hex",
"Dots",
N_("Staggered"),
N_("Large staggered"),
N_("Striped"),
N_("Wide-striped"),
N_("Long-staggered"),
N_("3x3"),
N_("Large 3x3"),
N_("Hex"),
N_("Dots")
};
const gint pattern[MAX_PATTERNS][MAX_PATTERN_SIZE] =
@ -1827,13 +1829,15 @@ query ()
static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure ("plug_in_video",
"Apply low-dotpitch RGB simulation to the specified drawable",
"This function simulates the degradation of being on an old low-dotpitch RGB video monitor to the specified drawable.",
_("Apply low-dotpitch RGB simulation to the specified drawable"),
_("This function simulates the degradation of being on an old low-dotpitch RGB video monitor to the specified drawable."),
"Adam D. Moss (adam@foxbox.org)",
"Adam D. Moss (adam@foxbox.org)",
"2nd March 1997",
"<Image>/Filters/Distorts/Video...",
N_("<Image>/Filters/Distorts/Video..."),
"RGB*",
PROC_PLUG_IN,
nargs, nreturn_vals,
@ -1863,6 +1867,7 @@ run (char *name,
switch (run_mode)
{
case RUN_INTERACTIVE:
INIT_I18N_UI();
/* Possibly retrieve data */
gimp_get_data ("plug_in_video", &vvals);
@ -1872,6 +1877,7 @@ run (char *name,
break;
case RUN_NONINTERACTIVE:
INIT_I18N();
/* Make sure all the arguments are there! */
if (nparams != 6)
status = STATUS_CALLING_ERROR;
@ -1884,6 +1890,7 @@ run (char *name,
break;
case RUN_WITH_LAST_VALS:
INIT_I18N();
/* Possibly retrieve data */
gimp_get_data ("plug_in_video", &vvals);
break;
@ -1901,7 +1908,7 @@ run (char *name,
/* Make sure that the drawable is gray or RGB color */
if (gimp_drawable_is_rgb (drawable->id))
{
gimp_progress_init ("Video/RGB...");
gimp_progress_init ( _("Video/RGB..."));
gimp_tile_cache_ntiles (2 * (drawable->width / gimp_tile_width ()
+ 1));
video (drawable);
@ -2191,14 +2198,14 @@ video_dialog ()
gtk_widget_set_default_visual (gtk_preview_get_visual ());
gtk_widget_set_default_colormap (gtk_preview_get_cmap ());
dlg = gimp_dialog_new ("Video", "video",
dlg = gimp_dialog_new ( _("Video"), "video",
gimp_plugin_help_func, "filters/video.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
"OK", video_ok_callback,
_("OK"), video_ok_callback,
NULL, NULL, NULL, TRUE, FALSE,
"Cancel", gtk_widget_destroy,
_("Cancel"), gtk_widget_destroy,
NULL, 1, NULL, FALSE, TRUE,
NULL);
@ -2208,7 +2215,7 @@ video_dialog ()
NULL);
/* main parameter frame */
frame = gtk_frame_new ("Parameter Settings");
frame = gtk_frame_new ( _("Parameter Settings"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_set_border_width (GTK_CONTAINER (frame), 6);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
@ -2218,7 +2225,7 @@ video_dialog ()
gtk_container_add (GTK_CONTAINER (frame), box);
/* frame for the radio buttons */
radioframe = gtk_frame_new ("RGB Pattern Type");
radioframe = gtk_frame_new ( _("RGB Pattern Type"));
gtk_frame_set_shadow_type (GTK_FRAME (radioframe), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (box), radioframe, FALSE, FALSE, 0);
@ -2229,7 +2236,7 @@ video_dialog ()
preview = gtk_preview_new (GTK_PREVIEW_COLOR);
gtk_preview_size (GTK_PREVIEW (preview), PREVIEW_WIDTH, PREVIEW_HEIGHT);
toggle = gtk_check_button_new_with_label ("Additive");
toggle = gtk_check_button_new_with_label ( _("Additive"));
gtk_box_pack_start (GTK_BOX (vbox), toggle, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) video_toggle_update,
@ -2237,7 +2244,7 @@ video_dialog ()
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), vvals.additive);
gtk_widget_show (toggle);
toggle = gtk_check_button_new_with_label ("Rotated");
toggle = gtk_check_button_new_with_label ( _("Rotated"));
gtk_box_pack_start (GTK_BOX (vbox), toggle, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) video_toggle_update,
@ -2266,7 +2273,8 @@ video_dialog ()
/* radio buttons */
for (y = 0; y < MAX_PATTERNS; y++)
{
toggle = gtk_radio_button_new_with_label (group, pattern_name[y]);
toggle = gtk_radio_button_new_with_label (group,
gettext(pattern_name[y]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",

View File

@ -29,9 +29,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include "libgimp/gimp.h"
#include "libgimp/gimpcolorspace.h"
#include "libgimp/stdplugins-intl.h"
/* Declare local functions.
*/
@ -76,13 +77,15 @@ query ()
static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure ("plug_in_vinvert",
"Invert the 'value' componant of an indexed/RGB image in HSV colourspace",
"This function takes an indexed/RGB image and inverts its 'value' in HSV space. The upshot of this is that the colour and saturation at any given point remains the same, but its brightness is effectively inverted. Quite strange. Sometimes produces unpleasant colour artifacts on images from lossy sources (ie. JPEG).",
_("Invert the 'value' componant of an indexed/RGB image in HSV colourspace"),
_("This function takes an indexed/RGB image and inverts its 'value' in HSV space. The upshot of this is that the colour and saturation at any given point remains the same, but its brightness is effectively inverted. Quite strange. Sometimes produces unpleasant colour artifacts on images from lossy sources (ie. JPEG)."),
"Adam D. Moss (adam@foxbox.org)",
"Adam D. Moss (adam@foxbox.org)",
"27th March 1997",
"<Image>/Filters/Colors/Value Invert",
N_("<Image>/Filters/Colors/Value Invert"),
"RGB*, INDEXED*",
PROC_PLUG_IN,
nargs, nreturn_vals,
@ -119,8 +122,10 @@ run (char *name,
/* Make sure that the drawable is indexed or RGB color */
if (gimp_drawable_is_rgb (drawable->id))
{
if (run_mode != RUN_NONINTERACTIVE)
if (run_mode != RUN_NONINTERACTIVE) {
INIT_I18N();
gimp_progress_init ("Value Invert...");
}
vinvert (drawable);
if (run_mode != RUN_NONINTERACTIVE)

View File

@ -1,6 +1,6 @@
/* vpropagate.c -- This is a plug-in for the GIMP (1.0's API)
* Author: Shuji Narazaki <narazaki@InetQ.or.jp>
* Time-stamp: <1998/04/11 19:46:08 narazaki@InetQ.or.jp>
* Time-stamp: <2000-01-09 15:50:46 yasuhiro>
* Version: 0.89a
*
* Copyright (C) 1996-1997 Shuji Narazaki <narazaki@InetQ.or.jp>
@ -31,16 +31,16 @@
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include <libgimp/gimpmath.h>
#include "libgimp/stdplugins-intl.h"
#define PLUG_IN_NAME "plug_in_vpropagate"
#define SHORT_NAME "vpropagate"
#define PROGRESS_NAME "value propagating..."
#define MENU_POSITION "<Image>/Filters/Distorts/Value Propagate..."
typedef guchar CH;
#define VP_RGB (1 << 0)
@ -187,21 +187,21 @@ typedef struct
#define num_mode 8
static ModeParam modes[num_mode] =
{
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA | VP_WO_ALPHA, "more white (larger value)",
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA | VP_WO_ALPHA, N_("more white (larger value)"),
initialize_white, propagate_white, set_value, FALSE},
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA | VP_WO_ALPHA, "more black (smaller value)",
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA | VP_WO_ALPHA, N_("more black (smaller value)"),
initialize_black, propagate_black, set_value, FALSE},
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA | VP_WO_ALPHA, "middle value to peaks",
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA | VP_WO_ALPHA, N_("middle value to peaks"),
initialize_middle, propagate_middle, set_middle_to_peak, FALSE},
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA | VP_WO_ALPHA, "foreground to peaks",
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA | VP_WO_ALPHA, N_("foreground to peaks"),
initialize_middle, propagate_middle, set_foreground_to_peak, FALSE},
{ VP_RGB | VP_WITH_ALPHA | VP_WO_ALPHA, "only foreground",
{ VP_RGB | VP_WITH_ALPHA | VP_WO_ALPHA, N_("only foreground"),
initialize_foreground, propagate_a_color, set_value, FALSE},
{ VP_RGB | VP_WITH_ALPHA | VP_WO_ALPHA, "only background",
{ VP_RGB | VP_WITH_ALPHA | VP_WO_ALPHA, N_("only background"),
initialize_background, propagate_a_color, set_value, FALSE},
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA, "more opaque",
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA, N_("more opaque"),
NULL, propagate_opaque, set_value, FALSE},
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA, "more transparent",
{ VP_RGB | VP_GRAY | VP_WITH_ALPHA, N_("more transparent"),
NULL, propagate_transparent, set_value, FALSE}
};
@ -233,14 +233,16 @@ query ()
static GParamDef *return_vals = NULL;
static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure (PLUG_IN_NAME,
"Propagate values of the layer",
"Propagate values of the layer",
_("Propagate values of the layer"),
_("Propagate values of the layer"),
"Shuji Narazaki (narazaki@InetQ.or.jp)",
"Shuji Narazaki",
"1996-1997",
MENU_POSITION,
N_("<Image>/Filters/Distorts/Value Propagate..."),
"RGB*,GRAY*",
PROC_PLUG_IN,
nargs, nreturn_vals,
@ -270,6 +272,7 @@ run (char *name,
switch ( run_mode )
{
case RUN_INTERACTIVE:
INIT_I18N_UI();
gimp_get_data (PLUG_IN_NAME, &vpvals);
/* building the values of dialog variables from vpvals. */
modes[vpvals.propagate_mode].selected = TRUE;
@ -287,6 +290,7 @@ run (char *name,
return;
break;
case RUN_NONINTERACTIVE:
INIT_I18N();
vpvals.propagate_mode = param[3].data.d_int32;
vpvals.propagating_channel = param[4].data.d_int32;
vpvals.propagating_rate = param[5].data.d_float;
@ -295,6 +299,7 @@ run (char *name,
vpvals.upper_limit = param[8].data.d_int32;
break;
case RUN_WITH_LAST_VALS:
INIT_I18N();
gimp_get_data (PLUG_IN_NAME, &vpvals);
break;
}
@ -385,7 +390,7 @@ value_propagate_body (gint drawable_id)
best = (guchar *) malloc (bytes);
gimp_progress_init (PROGRESS_NAME);
gimp_progress_init ( _("value propagating..."));
gimp_palette_get_foreground (fore+0, fore+1, fore+2);
/* start real job */
@ -955,16 +960,14 @@ vpropagate_dialog (GImageType image_type)
gtk_init (&argc, &argv);
gtk_rc_parse (gimp_gtkrc ());
dlg = gimp_dialog_new ("Value Propagate", "vpropagate",
dlg = gimp_dialog_new ( _("Value Propagate"), "vpropagate",
gimp_plugin_help_func, "filters/vpropagate.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
"OK", vpropagate_ok_callback,
_("OK"), vpropagate_ok_callback,
NULL, NULL, NULL, TRUE, FALSE,
"Cancel", gtk_widget_destroy,
_("Cancel"), gtk_widget_destroy,
NULL, 1, NULL, FALSE, TRUE,
NULL);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
@ -980,11 +983,11 @@ vpropagate_dialog (GImageType image_type)
GSList *group = NULL;
gint index = 0;
frame = gtkW_frame_new ("Propagate Mode", hbox);
frame = gtkW_frame_new ( _("Propagate Mode"), hbox);
toggle_vbox = gtkW_vbox_new (frame);
for (index = 0; index < num_mode ; index++ )
group = gtkW_vbox_add_radio_button (toggle_vbox, modes[index].name, group,
group = gtkW_vbox_add_radio_button (toggle_vbox, gettext(modes[index].name), group,
(GtkSignalFunc) gtkW_toggle_update,
&modes[index].selected);
gtk_widget_show (toggle_vbox);
@ -992,19 +995,19 @@ vpropagate_dialog (GImageType image_type)
}
/* Parameter settings */
frame = gtkW_frame_new ("Parameter Settings", hbox);
frame = gtkW_frame_new ( _("Parameter Settings"), hbox);
table = gtk_table_new (9,2, FALSE); /* 4 raw, 2 columns(name and value) */
gtk_container_border_width (GTK_CONTAINER (table), 10);
gtk_container_add (GTK_CONTAINER (frame), table);
gtkW_table_add_gint (table, "Lower threshold", 0, 0,
gtkW_table_add_gint (table, _("Lower threshold"), 0, 0,
(GtkSignalFunc) gtkW_gint_update,
&vpvals.lower_limit, buffer[0]);
gtkW_table_add_gint (table, "Upper threshold", 0, 1,
gtkW_table_add_gint (table, _("Upper threshold"), 0, 1,
(GtkSignalFunc) gtkW_gint_update,
&vpvals.upper_limit, buffer[1]);
gtkW_table_add_scale (table, "Propagating Rate", 0, 2,
gtkW_table_add_scale (table, _("Propagating Rate"), 0, 2,
(GtkSignalFunc) gtkW_scale_update,
&vpvals.propagating_rate, 0.0, 1.0, 0.01);
@ -1012,16 +1015,16 @@ vpropagate_dialog (GImageType image_type)
gtk_table_attach (GTK_TABLE (table), sep, 0, 2, 3, 4, GTK_FILL, 0, 0, 0);
gtk_widget_show (sep);
gtkW_table_add_toggle (table, "to Left", 0, 1, 4,
gtkW_table_add_toggle (table, _("to Left"), 0, 1, 4,
(GtkSignalFunc) gtkW_toggle_update,
&direction_mask_vec[Right2Left]);
gtkW_table_add_toggle (table, "to Right", 1, 2, 4,
gtkW_table_add_toggle (table, _("to Right"), 1, 2, 4,
(GtkSignalFunc) gtkW_toggle_update,
&direction_mask_vec[Left2Right]);
gtkW_table_add_toggle (table, "to Top", 0, 1, 5,
gtkW_table_add_toggle (table, _("to Top"), 0, 1, 5,
(GtkSignalFunc) gtkW_toggle_update,
&direction_mask_vec[Bottom2Top]);
gtkW_table_add_toggle (table, "to Bottom", 1, 2, 5,
gtkW_table_add_toggle (table, _("to Bottom"), 1, 2, 5,
(GtkSignalFunc) gtkW_toggle_update,
&direction_mask_vec[Top2Bottom]);
if ((image_type == RGBA_IMAGE) | (image_type == GRAYA_IMAGE))
@ -1035,7 +1038,7 @@ vpropagate_dialog (GImageType image_type)
{
GtkWidget *toggle;
toggle = gtkW_table_add_toggle (table, "Propagating Alpha Channel",
toggle = gtkW_table_add_toggle (table, _("Propagating Alpha Channel"),
0, 2, 7,
(GtkSignalFunc) gtkW_toggle_update,
&propagate_alpha);
@ -1045,7 +1048,7 @@ vpropagate_dialog (GImageType image_type)
gtk_widget_set_sensitive (toggle, FALSE);
}
}
gtkW_table_add_toggle (table, "Propagating Value Channel", 0, 2, 8,
gtkW_table_add_toggle (table, _("Propagating Value Channel"), 0, 2, 8,
(GtkSignalFunc) gtkW_toggle_update,
&propagate_value);
}

View File

@ -25,7 +25,9 @@
#ifdef __EMX__
#include <process.h>
#endif
#include "config.h"
#include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
/* Author: Josh MacDonald. */
@ -65,9 +67,11 @@ query ()
static int nload_args = sizeof (load_args) / sizeof (load_args[0]);
static int nload_return_vals = sizeof (load_return_vals) / sizeof (load_return_vals[0]);
INIT_I18N();
gimp_install_procedure ("file_url_load",
"loads files given a URL",
"You need to have GNU Wget installed.",
_("loads files given a URL"),
_("You need to have GNU Wget installed."),
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1997",

View File

@ -25,7 +25,9 @@
#ifdef __EMX__
#include <process.h>
#endif
#include "config.h"
#include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
/* Author: Josh MacDonald. */
@ -65,9 +67,11 @@ query ()
static int nload_args = sizeof (load_args) / sizeof (load_args[0]);
static int nload_return_vals = sizeof (load_return_vals) / sizeof (load_return_vals[0]);
INIT_I18N();
gimp_install_procedure ("file_url_load",
"loads files given a URL",
"You need to have GNU Wget installed.",
_("loads files given a URL"),
_("You need to have GNU Wget installed."),
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1997",

View File

@ -111,7 +111,16 @@ plug-ins/common/sparkle.c
plug-ins/common/spheredesigner.c
plug-ins/common/spread.c
plug-ins/common/sunras.c
plug-ins/common/tga.c
plug-ins/common/tiff.c
plug-ins/common/threshold_alpha.c
plug-ins/common/tile.c
plug-ins/common/tileit.c
plug-ins/common/tiler.c
plug-ins/common/url.c
plug-ins/common/video.c
plug-ins/common/vinvert.c
plug-ins/common/vpropagate.c
plug-ins/common/warp.c
plug-ins/common/winprint.c
plug-ins/common/xbm.c