mirror of https://github.com/GNOME/gimp.git
gimp_message. libgimp also overrides g_message for all plugins. Converted
* redid the error message handling. g_message now calls message_box or prints to console depending on whether the no_interface is set or not. gimp-message is also exported to the PDB as a wrapper to g_message, and libgimp has a new API: gimp_message. libgimp also overrides g_message for all plugins. Converted lots of messages in app/* to g_message. Made script-fu a little friendlier. * updated the regex code from grep 2.2 * said goodbye to the old script-fu logo in script-fu.h -Yosh
This commit is contained in:
parent
36e02fc79d
commit
1d95a05af0
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
Thu May 28 01:16:26 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* redid the error message handling. g_message now calls
|
||||
message_box or prints to console depending on whether the
|
||||
no_interface is set or not. gimp-message is also exported
|
||||
to the PDB as a wrapper to g_message, and libgimp has a new
|
||||
API: gimp_message. libgimp also overrides g_message for all
|
||||
plugins. Converted lots of messages in app/* to g_message.
|
||||
Made script-fu a little friendlier.
|
||||
|
||||
* updated the regex code from grep 2.2
|
||||
|
||||
Wed May 27 11:22:46 MEST 1998 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/ifscompose/ifscompose.h: removed definition of TRUE
|
||||
|
|
|
@ -564,29 +564,25 @@ file_prefs_ok_callback (GtkWidget *widget,
|
|||
|
||||
if (levels_of_undo < 0)
|
||||
{
|
||||
message_box("Error: Levels of undo must be zero or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Levels of undo must be zero or greater.");
|
||||
levels_of_undo = old_levels_of_undo;
|
||||
return;
|
||||
}
|
||||
if (marching_speed < 50)
|
||||
{
|
||||
message_box("Error: Marching speed must be 50 or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Marching speed must be 50 or greater.");
|
||||
marching_speed = old_marching_speed;
|
||||
return;
|
||||
}
|
||||
if (default_width < 1)
|
||||
{
|
||||
message_box("Error: Default width must be one or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Default width must be one or greater.");
|
||||
default_width = old_default_width;
|
||||
return;
|
||||
}
|
||||
if (default_height < 1)
|
||||
{
|
||||
message_box("Error: Default height must be one or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Default height must be one or greater.");
|
||||
default_height = old_default_height;
|
||||
return;
|
||||
}
|
||||
|
@ -752,7 +748,7 @@ file_prefs_save_callback (GtkWidget *widget,
|
|||
gradient_path = save_gradient_path;
|
||||
|
||||
if (restart_notification)
|
||||
message_box("You will need to restart GIMP for these changes to take effect.", NULL, NULL);
|
||||
g_message ("You will need to restart GIMP for these changes to take effect.");
|
||||
|
||||
g_list_free (update);
|
||||
g_list_free (remove);
|
||||
|
@ -2486,7 +2482,7 @@ image_resize_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box("Resize Error: Both width and height must be greater than zero.", NULL, NULL);
|
||||
g_message ("Resize Error: Both width and height must be greater than zero.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -2516,7 +2512,7 @@ image_scale_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box("Scale Error: Both width and height must be greater than zero.", NULL, NULL);
|
||||
g_message ("Scale Error: Both width and height must be greater than zero.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#include <sys/param.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "appenv.h"
|
||||
#include "app_procs.h"
|
||||
#include "batch.h"
|
||||
|
@ -53,7 +55,7 @@
|
|||
#include "tools.h"
|
||||
#include "undo.h"
|
||||
#include "xcf.h"
|
||||
#include <gtk/gtk.h>
|
||||
#include "errors.h"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
@ -514,6 +516,7 @@ app_init (void)
|
|||
render_setup (transparency_type, transparency_size);
|
||||
tools_options_dialog_new ();
|
||||
tools_select (RECT_SELECT);
|
||||
g_set_message_handler (&message_box_func);
|
||||
}
|
||||
|
||||
color_transfer_init ();
|
||||
|
|
|
@ -320,7 +320,7 @@ color_balance_initialize (void *gdisp_ptr)
|
|||
|
||||
if (! drawable_color (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Color balance operates only on RGB color drawables.", NULL, NULL);
|
||||
g_message ("Color balance operates only on RGB color drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ curves_initialize (void *gdisp_ptr)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Curves for indexed drawables cannot be adjusted.", NULL, NULL);
|
||||
g_message ("Curves for indexed drawables cannot be adjusted.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -364,7 +364,7 @@ hue_saturation_initialize (void *gdisp_ptr)
|
|||
|
||||
if (! drawable_color (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Hue-Saturation operates only on RGB color drawables.", NULL, NULL);
|
||||
g_message ("Hue-Saturation operates only on RGB color drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -185,7 +185,7 @@ temp_buf_copy (src, dest)
|
|||
|
||||
if (!src)
|
||||
{
|
||||
warning ("trying to copy a temp buf which is NULL.");
|
||||
g_message ("trying to copy a temp buf which is NULL.");
|
||||
return dest;
|
||||
}
|
||||
|
||||
|
@ -195,7 +195,7 @@ temp_buf_copy (src, dest)
|
|||
{
|
||||
new = dest;
|
||||
if (dest->width != src->width || dest->height != src->height)
|
||||
warning ("In temp_buf_copy, the widths or heights don't match.");
|
||||
g_message ("In temp_buf_copy, the widths or heights don't match.");
|
||||
/* The temp buf is smart, and can translate between color and gray */
|
||||
/* (only necessary if not we allocated it */
|
||||
if (src->bytes != new->bytes)
|
||||
|
@ -205,7 +205,7 @@ temp_buf_copy (src, dest)
|
|||
else if (src->bytes == 2) /* grayscale */
|
||||
temp_buf_to_color (src, new);
|
||||
else
|
||||
warning ("Cannot convert from indexed color.");
|
||||
g_message ("Cannot convert from indexed color.");
|
||||
return new;
|
||||
}
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ temp_buf_copy_area (src, dest, x, y, w, h, border)
|
|||
|
||||
if (!src)
|
||||
{
|
||||
warning ("trying to copy a temp buf which is NULL.");
|
||||
g_message ("trying to copy a temp buf which is NULL.");
|
||||
return dest;
|
||||
}
|
||||
|
||||
|
@ -295,7 +295,7 @@ temp_buf_copy_area (src, dest, x, y, w, h, border)
|
|||
{
|
||||
new = dest;
|
||||
if (dest->bytes != src->bytes)
|
||||
warning ("In temp_buf_copy_area, the widths or heights or bytes don't match.");
|
||||
g_message ("In temp_buf_copy_area, the widths or heights or bytes don't match.");
|
||||
}
|
||||
|
||||
/* Set the offsets for the dest */
|
||||
|
@ -464,7 +464,7 @@ temp_buf_swap (buf)
|
|||
{
|
||||
if (stat_buf.st_mode & S_IFDIR)
|
||||
{
|
||||
warning ("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)",
|
||||
g_message ("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)",
|
||||
filename);
|
||||
g_free (filename);
|
||||
return;
|
||||
|
@ -480,7 +480,7 @@ temp_buf_swap (buf)
|
|||
else
|
||||
{
|
||||
perror ("Error in temp buf caching");
|
||||
warning ("Cannot write \"%s\"", filename);
|
||||
g_message ("Cannot write \"%s\"", filename);
|
||||
g_free (filename);
|
||||
return;
|
||||
}
|
||||
|
@ -537,7 +537,7 @@ temp_buf_unswap (buf)
|
|||
unlink (buf->filename);
|
||||
}
|
||||
if (!succ)
|
||||
warning ("Error in temp buf caching: information swapped to disk was lost!");
|
||||
g_message ("Error in temp buf caching: information swapped to disk was lost!");
|
||||
|
||||
g_free (buf->filename); /* free filename */
|
||||
buf->filename = NULL;
|
||||
|
@ -570,7 +570,7 @@ temp_buf_swap_free (buf)
|
|||
unlink (buf->filename);
|
||||
}
|
||||
else
|
||||
warning ("Error in temp buf disk swapping: information swapped to disk was lost!");
|
||||
g_message ("Error in temp buf disk swapping: information swapped to disk was lost!");
|
||||
|
||||
if (buf->filename)
|
||||
g_free (buf->filename); /* free filename */
|
||||
|
|
|
@ -343,7 +343,7 @@ threshold_initialize (void *gdisp_ptr)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Threshold does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Threshold does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1133,7 +1133,7 @@ bezier_convert (BezierSelect *bezier_sel,
|
|||
x = (long) list->data;
|
||||
list = list->next;
|
||||
if (!list)
|
||||
warning ("cannot properly scanline convert bezier curve: %d", i);
|
||||
g_message ("cannot properly scanline convert bezier curve: %d", i);
|
||||
else
|
||||
{
|
||||
/* bounds checking */
|
||||
|
|
|
@ -550,7 +550,7 @@ blend_button_press (Tool *tool,
|
|||
switch (drawable_type (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
case INDEXED_GIMAGE: case INDEXEDA_GIMAGE:
|
||||
message_box ("Blend: Invalid for indexed images.", NULL, NULL);
|
||||
g_message ("Blend: Invalid for indexed images.");
|
||||
return;
|
||||
|
||||
break;
|
||||
|
@ -622,7 +622,7 @@ blend_button_release (Tool *tool,
|
|||
if (return_vals[0].value.pdb_int == PDB_SUCCESS)
|
||||
gdisplays_flush ();
|
||||
else
|
||||
message_box ("Blend operation failed.", NULL, NULL);
|
||||
g_message ("Blend operation failed.");
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
|
|
@ -286,7 +286,7 @@ brightness_contrast_initialize (void *gdisp_ptr)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Brightness-Contrast does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Brightness-Contrast does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -269,8 +269,8 @@ load_brush(char *filename)
|
|||
}
|
||||
else
|
||||
{
|
||||
warning ("Unknown GIMP version #%d in \"%s\"\n", header.version,
|
||||
filename);
|
||||
g_message ("Unknown GIMP version #%d in \"%s\"\n", header.version,
|
||||
filename);
|
||||
fclose (fp);
|
||||
free_brush (brush);
|
||||
return;
|
||||
|
@ -287,7 +287,7 @@ load_brush(char *filename)
|
|||
brush->name = (char *) g_malloc (sizeof (char) * bn_size);
|
||||
if ((fread (brush->name, 1, bn_size, fp)) < bn_size)
|
||||
{
|
||||
warning ("Error in GIMP brush file...aborting.");
|
||||
g_message ("Error in GIMP brush file...aborting.");
|
||||
fclose (fp);
|
||||
free_brush (brush);
|
||||
return;
|
||||
|
@ -300,7 +300,7 @@ load_brush(char *filename)
|
|||
/* Read the image data */
|
||||
if ((fread (temp_buf_data (brush->mask), 1, header.width * header.height, fp)) <
|
||||
header.width * header.height)
|
||||
warning ("GIMP brush file appears to be truncated.");
|
||||
g_message ("GIMP brush file appears to be truncated.");
|
||||
|
||||
/* Clean up */
|
||||
fclose (fp);
|
||||
|
|
|
@ -327,7 +327,7 @@ bucket_fill_button_release (tool, bevent, gdisp_ptr)
|
|||
if (return_vals[0].value.pdb_int == PDB_SUCCESS)
|
||||
gdisplays_flush ();
|
||||
else
|
||||
message_box ("Bucket Fill operation failed.", NULL, NULL);
|
||||
g_message ("Bucket Fill operation failed.");
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
@ -424,7 +424,7 @@ bucket_fill (gimage, drawable, fill_mode, paint_mode,
|
|||
|
||||
if (!pattern)
|
||||
{
|
||||
message_box ("No available patterns for this operation.", NULL, NULL);
|
||||
g_message ("No available patterns for this operation.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -798,10 +798,10 @@ channel_list_events (GtkWidget *widget,
|
|||
switch (kevent->keyval)
|
||||
{
|
||||
case GDK_Up:
|
||||
printf ("up arrow\n");
|
||||
/* printf ("up arrow\n"); */
|
||||
break;
|
||||
case GDK_Down:
|
||||
printf ("down arrow\n");
|
||||
/* printf ("down arrow\n"); */
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
|
|
|
@ -228,7 +228,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||
|
||||
if (clone_options->type == PatternClone)
|
||||
if (!get_active_pattern ())
|
||||
message_box ("No patterns available for this operation.", NULL, NULL);
|
||||
g_message ("No patterns available for this operation.");
|
||||
break;
|
||||
|
||||
case FINISH_PAINT :
|
||||
|
|
|
@ -320,7 +320,7 @@ color_balance_initialize (void *gdisp_ptr)
|
|||
|
||||
if (! drawable_color (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Color balance operates only on RGB color drawables.", NULL, NULL);
|
||||
g_message ("Color balance operates only on RGB color drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -564,29 +564,25 @@ file_prefs_ok_callback (GtkWidget *widget,
|
|||
|
||||
if (levels_of_undo < 0)
|
||||
{
|
||||
message_box("Error: Levels of undo must be zero or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Levels of undo must be zero or greater.");
|
||||
levels_of_undo = old_levels_of_undo;
|
||||
return;
|
||||
}
|
||||
if (marching_speed < 50)
|
||||
{
|
||||
message_box("Error: Marching speed must be 50 or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Marching speed must be 50 or greater.");
|
||||
marching_speed = old_marching_speed;
|
||||
return;
|
||||
}
|
||||
if (default_width < 1)
|
||||
{
|
||||
message_box("Error: Default width must be one or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Default width must be one or greater.");
|
||||
default_width = old_default_width;
|
||||
return;
|
||||
}
|
||||
if (default_height < 1)
|
||||
{
|
||||
message_box("Error: Default height must be one or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Default height must be one or greater.");
|
||||
default_height = old_default_height;
|
||||
return;
|
||||
}
|
||||
|
@ -752,7 +748,7 @@ file_prefs_save_callback (GtkWidget *widget,
|
|||
gradient_path = save_gradient_path;
|
||||
|
||||
if (restart_notification)
|
||||
message_box("You will need to restart GIMP for these changes to take effect.", NULL, NULL);
|
||||
g_message ("You will need to restart GIMP for these changes to take effect.");
|
||||
|
||||
g_list_free (update);
|
||||
g_list_free (remove);
|
||||
|
@ -2486,7 +2482,7 @@ image_resize_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box("Resize Error: Both width and height must be greater than zero.", NULL, NULL);
|
||||
g_message ("Resize Error: Both width and height must be greater than zero.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -2516,7 +2512,7 @@ image_scale_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box("Scale Error: Both width and height must be greater than zero.", NULL, NULL);
|
||||
g_message ("Scale Error: Both width and height must be greater than zero.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -303,8 +303,7 @@ convert_to_indexed (void *gimage_ptr)
|
|||
dialog->num_cols = 255;
|
||||
if (!shown_message_already)
|
||||
{
|
||||
message_box ("Note: You are attempting to convert an image\nwith alpha/layers. It is recommended that you quantize\nto no more than 255 colors if you wish to make\na transparent or animated GIF from it.\n\nYou won't get this message again\nuntil the next time you run GIMP.\nHave a nice day!",
|
||||
NULL, NULL);
|
||||
g_message ("Note: You are attempting to convert an image\nwith alpha/layers. It is recommended that you quantize\nto no more than 255 colors if you wish to make\na transparent or animated GIF from it.\n\nYou won't get this message again\nuntil the next time you run GIMP.\nHave a nice day!");
|
||||
shown_message_already = True;
|
||||
}
|
||||
}
|
||||
|
@ -1015,7 +1014,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
|
||||
has_alpha = (gboolean) layer_has_alpha(layer);
|
||||
|
||||
g_print ("col_limit = %d, nfc = %d\n", col_limit, num_found_cols);
|
||||
/* g_print ("col_limit = %d, nfc = %d\n", col_limit, num_found_cols);*/
|
||||
|
||||
pixel_region_init (&srcPR, GIMP_DRAWABLE(layer)->tiles, 0, 0,
|
||||
GIMP_DRAWABLE(layer)->width,
|
||||
|
@ -1083,7 +1082,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
* quantizing at a later stage.
|
||||
*/
|
||||
needs_quantize = TRUE;
|
||||
g_print ("\nmax colours exceeded - needs quantize.\n");
|
||||
/* g_print ("\nmax colours exceeded - needs quantize.\n");*/
|
||||
goto already_found;
|
||||
}
|
||||
else
|
||||
|
@ -1102,7 +1101,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
}
|
||||
}
|
||||
|
||||
g_print ("O: col_limit = %d, nfc = %d\n", col_limit, num_found_cols);
|
||||
/* g_print ("O: col_limit = %d, nfc = %d\n", col_limit, num_found_cols);*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ datafiles_read_directories (char *path_str,
|
|||
dir = opendir(path);
|
||||
|
||||
if (!dir)
|
||||
warning("error reading datafiles directory \"%s\"", path);
|
||||
g_message ("error reading datafiles directory \"%s\"", path);
|
||||
else
|
||||
{
|
||||
while ((dir_ent = readdir(dir)))
|
||||
|
|
|
@ -550,7 +550,7 @@ blend_button_press (Tool *tool,
|
|||
switch (drawable_type (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
case INDEXED_GIMAGE: case INDEXEDA_GIMAGE:
|
||||
message_box ("Blend: Invalid for indexed images.", NULL, NULL);
|
||||
g_message ("Blend: Invalid for indexed images.");
|
||||
return;
|
||||
|
||||
break;
|
||||
|
@ -622,7 +622,7 @@ blend_button_release (Tool *tool,
|
|||
if (return_vals[0].value.pdb_int == PDB_SUCCESS)
|
||||
gdisplays_flush ();
|
||||
else
|
||||
message_box ("Blend operation failed.", NULL, NULL);
|
||||
g_message ("Blend operation failed.");
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ image_desaturate (gimage_ptr)
|
|||
|
||||
if (! drawable_color (drawable))
|
||||
{
|
||||
message_box ("Desaturate operates only on RGB color drawables.", NULL, NULL);
|
||||
g_message ("Desaturate operates only on RGB color drawables.");
|
||||
return;
|
||||
}
|
||||
desaturate (drawable);
|
||||
|
|
|
@ -42,7 +42,7 @@ image_equalize (gimage_ptr)
|
|||
|
||||
if (drawable_indexed (drawable))
|
||||
{
|
||||
message_box ("Equalize does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Equalize does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
equalize (gimage, drawable, mask_only);
|
||||
|
|
|
@ -42,7 +42,7 @@ image_invert (gimage_ptr)
|
|||
|
||||
if (drawable_indexed (drawable))
|
||||
{
|
||||
message_box ("Invert does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Invert does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ image_invert (gimage_ptr)
|
|||
PDB_END);
|
||||
|
||||
if (return_vals[0].value.pdb_int != PDB_SUCCESS)
|
||||
message_box ("Invert operation failed.", NULL, NULL);
|
||||
g_message ("Invert operation failed.");
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
|
|
@ -303,8 +303,7 @@ convert_to_indexed (void *gimage_ptr)
|
|||
dialog->num_cols = 255;
|
||||
if (!shown_message_already)
|
||||
{
|
||||
message_box ("Note: You are attempting to convert an image\nwith alpha/layers. It is recommended that you quantize\nto no more than 255 colors if you wish to make\na transparent or animated GIF from it.\n\nYou won't get this message again\nuntil the next time you run GIMP.\nHave a nice day!",
|
||||
NULL, NULL);
|
||||
g_message ("Note: You are attempting to convert an image\nwith alpha/layers. It is recommended that you quantize\nto no more than 255 colors if you wish to make\na transparent or animated GIF from it.\n\nYou won't get this message again\nuntil the next time you run GIMP.\nHave a nice day!");
|
||||
shown_message_already = True;
|
||||
}
|
||||
}
|
||||
|
@ -1015,7 +1014,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
|
||||
has_alpha = (gboolean) layer_has_alpha(layer);
|
||||
|
||||
g_print ("col_limit = %d, nfc = %d\n", col_limit, num_found_cols);
|
||||
/* g_print ("col_limit = %d, nfc = %d\n", col_limit, num_found_cols);*/
|
||||
|
||||
pixel_region_init (&srcPR, GIMP_DRAWABLE(layer)->tiles, 0, 0,
|
||||
GIMP_DRAWABLE(layer)->width,
|
||||
|
@ -1083,7 +1082,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
* quantizing at a later stage.
|
||||
*/
|
||||
needs_quantize = TRUE;
|
||||
g_print ("\nmax colours exceeded - needs quantize.\n");
|
||||
/* g_print ("\nmax colours exceeded - needs quantize.\n");*/
|
||||
goto already_found;
|
||||
}
|
||||
else
|
||||
|
@ -1102,7 +1101,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
}
|
||||
}
|
||||
|
||||
g_print ("O: col_limit = %d, nfc = %d\n", col_limit, num_found_cols);
|
||||
/* g_print ("O: col_limit = %d, nfc = %d\n", col_limit, num_found_cols);*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@ gimage_mask_extract (gimage, drawable, cut_gimage, keep_indexed)
|
|||
non_empty = drawable_mask_bounds (drawable, &x1, &y1, &x2, &y2);
|
||||
if (non_empty && (!(x2 - x1) || !(y2 - y1)))
|
||||
{
|
||||
message_box ("Unable to cut/copy because the selected\nregion is empty.", NULL, NULL);
|
||||
g_message ("Unable to cut/copy because the selected\nregion is empty.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -330,7 +330,7 @@ gimage_mask_float (gimage, drawable, off_x, off_y)
|
|||
non_empty = drawable_mask_bounds ( (drawable), &x1, &y1, &x2, &y2);
|
||||
if (! non_empty || (x2 - x1) == 0 || (y2 - y1) == 0)
|
||||
{
|
||||
message_box ("Float Selection: No selection to float.", NULL, NULL);
|
||||
g_message ("Float Selection: No selection to float.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -484,7 +484,7 @@ gimage_mask_layer_alpha (gimage, layer)
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box ("The active layer has no alpha channel\nto convert to a selection.", NULL, NULL);
|
||||
g_message ("The active layer has no alpha channel\nto convert to a selection.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -503,7 +503,7 @@ gimage_mask_layer_mask (gimage, layer)
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box ("The active layer has no mask\nto convert to a selection.", NULL, NULL);
|
||||
g_message ("The active layer has no mask\nto convert to a selection.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -552,7 +552,7 @@ gimage_mask_stroke (gimage, drawable)
|
|||
|
||||
if (! gimage_mask_boundary (gimage, &bs_in, &bs_out, &num_segs_in, &num_segs_out))
|
||||
{
|
||||
message_box ("No selection to stroke!", NULL, NULL);
|
||||
g_message ("No selection to stroke!");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -102,8 +102,7 @@ floating_sel_anchor (Layer *layer)
|
|||
return;
|
||||
if (! layer_is_floating_sel (layer))
|
||||
{
|
||||
message_box ("Cannot anchor this layer because\nit is not a floating selection.",
|
||||
NULL, NULL);
|
||||
g_message ("Cannot anchor this layer because\nit is not a floating selection.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -168,9 +167,9 @@ floating_sel_to_layer (Layer *layer)
|
|||
if (drawable_channel (layer->fs.drawable) ||
|
||||
drawable_layer_mask (layer->fs.drawable))
|
||||
{
|
||||
message_box ("Cannot create a new layer from the floating\n"
|
||||
"selection because it belongs to a\n"
|
||||
"layer mask or channel.", NULL, NULL);
|
||||
g_message ("Cannot create a new layer from the floating\n"
|
||||
"selection because it belongs to a\n"
|
||||
"layer mask or channel.", NULL, NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -235,7 +235,7 @@ layer_new (gimage_ID, width, height, type, name, opacity, mode)
|
|||
Layer * layer;
|
||||
|
||||
if (width == 0 || height == 0) {
|
||||
warning ("Zero width or height layers not allowed.");
|
||||
g_message ("Zero width or height layers not allowed.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -326,7 +326,7 @@ layer_copy (layer, add_alpha)
|
|||
new_layer = layer_new (GIMP_DRAWABLE(layer)->gimage_ID, GIMP_DRAWABLE(layer)->width, GIMP_DRAWABLE(layer)->height,
|
||||
new_type, layer_name, layer->opacity, layer->mode);
|
||||
if (!new_layer) {
|
||||
warning("layer_copy: could not allocate new layer");
|
||||
g_message ("layer_copy: could not allocate new layer");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
@ -399,7 +399,7 @@ layer_from_tiles (gimage_ptr, drawable, tiles, name, opacity, mode)
|
|||
layer_type, name, opacity, mode);
|
||||
|
||||
if (!new_layer) {
|
||||
warning("layer_from_tiles: could not allocate new layer");
|
||||
g_message ("layer_from_tiles: could not allocate new layer");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ curves_initialize (void *gdisp_ptr)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Curves for indexed drawables cannot be adjusted.", NULL, NULL);
|
||||
g_message ("Curves for indexed drawables cannot be adjusted.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ datafiles_read_directories (char *path_str,
|
|||
dir = opendir(path);
|
||||
|
||||
if (!dir)
|
||||
warning("error reading datafiles directory \"%s\"", path);
|
||||
g_message ("error reading datafiles directory \"%s\"", path);
|
||||
else
|
||||
{
|
||||
while ((dir_ent = readdir(dir)))
|
||||
|
|
|
@ -41,7 +41,7 @@ image_desaturate (gimage_ptr)
|
|||
|
||||
if (! drawable_color (drawable))
|
||||
{
|
||||
message_box ("Desaturate operates only on RGB color drawables.", NULL, NULL);
|
||||
g_message ("Desaturate operates only on RGB color drawables.");
|
||||
return;
|
||||
}
|
||||
desaturate (drawable);
|
||||
|
|
|
@ -231,7 +231,7 @@ drawable_fill (GimpDrawable *drawable, int fill_type)
|
|||
c[ALPHA_I_PIX] = a;
|
||||
break;
|
||||
default:
|
||||
warning ("Can't fill unknown image type.");
|
||||
g_message ("Can't fill unknown image type.");
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -631,7 +631,7 @@ gimp_drawable_configure (GimpDrawable *drawable,
|
|||
case INDEXEDA_GIMAGE:
|
||||
bpp = 2; alpha = 1; break;
|
||||
default:
|
||||
warning ("Layer type %d not supported.", type);
|
||||
g_message ("Layer type %d not supported.", type);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ image_equalize (gimage_ptr)
|
|||
|
||||
if (drawable_indexed (drawable))
|
||||
{
|
||||
message_box ("Equalize does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Equalize does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
equalize (gimage, drawable, mask_only);
|
||||
|
|
24
app/errors.c
24
app/errors.c
|
@ -24,36 +24,24 @@
|
|||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "app_procs.h"
|
||||
#include "interface.h"
|
||||
#include "errors.h"
|
||||
|
||||
extern char *prog_name;
|
||||
extern int use_debug_handler;
|
||||
|
||||
void
|
||||
message (char *fmt, ...)
|
||||
message_console_func (char *str)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start (args, fmt);
|
||||
printf ("%s: ", prog_name);
|
||||
vprintf (fmt, args);
|
||||
printf ("\n");
|
||||
va_end (args);
|
||||
g_print ("%s: %s\n", prog_name, str);
|
||||
}
|
||||
|
||||
void
|
||||
warning (char *fmt, ...)
|
||||
message_box_func (char *str)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start (args, fmt);
|
||||
printf ("%s warning: ", prog_name);
|
||||
vprintf (fmt, args);
|
||||
printf ("\n");
|
||||
va_end (args);
|
||||
message_box (str, NULL, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
#ifndef __ERRORS_H__
|
||||
#define __ERRORS_H__
|
||||
|
||||
void message (char *, ...);
|
||||
void warning (char *, ...);
|
||||
void message_console_func (char *);
|
||||
void message_box_func (char *);
|
||||
void fatal_error (char *, ...);
|
||||
void terminate (char *, ...);
|
||||
|
||||
|
|
|
@ -102,8 +102,7 @@ floating_sel_anchor (Layer *layer)
|
|||
return;
|
||||
if (! layer_is_floating_sel (layer))
|
||||
{
|
||||
message_box ("Cannot anchor this layer because\nit is not a floating selection.",
|
||||
NULL, NULL);
|
||||
g_message ("Cannot anchor this layer because\nit is not a floating selection.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -168,9 +167,9 @@ floating_sel_to_layer (Layer *layer)
|
|||
if (drawable_channel (layer->fs.drawable) ||
|
||||
drawable_layer_mask (layer->fs.drawable))
|
||||
{
|
||||
message_box ("Cannot create a new layer from the floating\n"
|
||||
"selection because it belongs to a\n"
|
||||
"layer mask or channel.", NULL, NULL);
|
||||
g_message ("Cannot create a new layer from the floating\n"
|
||||
"selection because it belongs to a\n"
|
||||
"layer mask or channel.", NULL, NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -212,7 +212,7 @@ scan_convert (int gimage_ID, int num_pts, FreeSelectPoint *pts,
|
|||
x = (long) list->data;
|
||||
list = g_slist_next(list);
|
||||
if (!list)
|
||||
warning ("Cannot properly scanline convert polygon!\n");
|
||||
g_message ("Cannot properly scanline convert polygon!\n");
|
||||
else
|
||||
{
|
||||
/* bounds checking */
|
||||
|
|
37
app/gimage.c
37
app/gimage.c
|
@ -153,7 +153,7 @@ gimage_allocate_projection (GImage *gimage)
|
|||
gimage->proj_type = GRAYA_GIMAGE;
|
||||
break;
|
||||
default:
|
||||
warning ("gimage type unsupported.\n");
|
||||
g_message ("gimage type unsupported.\n");
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -270,7 +270,7 @@ gimage_resize (GImage *gimage, int new_width, int new_height,
|
|||
|
||||
if (new_width <= 0 || new_height <= 0)
|
||||
{
|
||||
warning("gimage_resize: width and height must be positive");
|
||||
g_message ("gimage_resize: width and height must be positive");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -530,7 +530,7 @@ gimage_apply_image (GImage *gimage, GimpDrawable *drawable, PixelRegion *src2PR,
|
|||
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
|
||||
if (operation == -1)
|
||||
{
|
||||
warning ("gimage_apply_image sent illegal parameters\n");
|
||||
g_message ("gimage_apply_image sent illegal parameters");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -624,7 +624,7 @@ gimage_replace_image (GImage *gimage, GimpDrawable *drawable, PixelRegion *src2P
|
|||
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
|
||||
if (operation == -1)
|
||||
{
|
||||
warning ("gimage_apply_image sent illegal parameters\n");
|
||||
g_message ("gimage_apply_image sent illegal parameters");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -912,7 +912,7 @@ project_indexed (GImage *gimage, Layer *layer,
|
|||
initial_region (src, dest, NULL, gimage->cmap, layer->opacity,
|
||||
layer->mode, gimage->visible, INITIAL_INDEXED);
|
||||
else
|
||||
warning ("Unable to project indexed image.");
|
||||
g_message ("Unable to project indexed image.");
|
||||
}
|
||||
|
||||
|
||||
|
@ -1720,7 +1720,7 @@ gimage_raise_layer (GImage *gimage, Layer *layer_arg)
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box ("Layer cannot be raised any further", NULL, NULL);
|
||||
g_message ("Layer cannot be raised any further");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -1789,7 +1789,7 @@ gimage_lower_layer (GImage *gimage, Layer *layer_arg)
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box ("Layer cannot be lowered any further", NULL, NULL);
|
||||
g_message ("Layer cannot be lowered any further");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -1826,8 +1826,7 @@ gimage_merge_visible_layers (GImage *gimage, MergeType merge_type)
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box ("There are not enough visible layers for a merge.\nThere must be at least two.",
|
||||
NULL, NULL);
|
||||
g_message ("There are not enough visible layers for a merge.\nThere must be at least two.");
|
||||
g_slist_free (merge_list);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1962,7 +1961,7 @@ gimage_merge_layers (GImage *gimage, GSList *merge_list, MergeType merge_type)
|
|||
type, drawable_name (GIMP_DRAWABLE(layer)), OPAQUE_OPACITY, NORMAL_MODE);
|
||||
|
||||
if (!merge_layer) {
|
||||
warning("gimage_merge_layers: could not allocate merge layer");
|
||||
g_message ("gimage_merge_layers: could not allocate merge layer");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1992,7 +1991,7 @@ gimage_merge_layers (GImage *gimage, GSList *merge_list, MergeType merge_type)
|
|||
layer->opacity, layer->mode);
|
||||
|
||||
if (!merge_layer) {
|
||||
warning("gimage_merge_layers: could not allocate merge layer");
|
||||
g_message ("gimage_merge_layers: could not allocate merge layer");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -2031,7 +2030,7 @@ gimage_merge_layers (GImage *gimage, GSList *merge_list, MergeType merge_type)
|
|||
operation = valid_combinations [drawable_type (GIMP_DRAWABLE(merge_layer))][drawable_bytes (GIMP_DRAWABLE(layer))];
|
||||
if (operation == -1)
|
||||
{
|
||||
warning ("gimage_merge_layers attempting to merge incompatible layers\n");
|
||||
g_message ("gimage_merge_layers attempting to merge incompatible layers\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -2112,7 +2111,7 @@ gimage_add_layer (GImage *gimage, Layer *float_layer, int position)
|
|||
if (GIMP_DRAWABLE(float_layer)->gimage_ID != 0 &&
|
||||
GIMP_DRAWABLE(float_layer)->gimage_ID != gimage->ID)
|
||||
{
|
||||
warning("gimage_add_layer: attempt to add layer to wrong image");
|
||||
g_message ("gimage_add_layer: attempt to add layer to wrong image");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -2122,7 +2121,7 @@ gimage_add_layer (GImage *gimage, Layer *float_layer, int position)
|
|||
{
|
||||
if (ll->data == float_layer)
|
||||
{
|
||||
warning("gimage_add_layer: trying to add layer to image twice");
|
||||
g_message ("gimage_add_layer: trying to add layer to image twice");
|
||||
return NULL;
|
||||
}
|
||||
ll = g_slist_next(ll);
|
||||
|
@ -2242,7 +2241,7 @@ gimage_add_layer_mask (GImage *gimage, Layer *layer, LayerMask *mask)
|
|||
|
||||
if (error)
|
||||
{
|
||||
message_box (error, NULL, NULL);
|
||||
g_message (error);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -2344,7 +2343,7 @@ gimage_raise_channel (GImage *gimage, Channel * channel_arg)
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box ("Channel cannot be raised any further", NULL, NULL);
|
||||
g_message ("Channel cannot be raised any further");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -2391,7 +2390,7 @@ gimage_lower_channel (GImage *gimage, Channel *channel_arg)
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box ("Channel cannot be lowered any further", NULL, NULL);
|
||||
g_message ("Channel cannot be lowered any further");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -2411,7 +2410,7 @@ gimage_add_channel (GImage *gimage, Channel *channel, int position)
|
|||
if (GIMP_DRAWABLE(channel)->gimage_ID != 0 &&
|
||||
GIMP_DRAWABLE(channel)->gimage_ID != gimage->ID)
|
||||
{
|
||||
warning("gimage_add_channel: attempt to add channel to wrong image");
|
||||
g_message ("gimage_add_channel: attempt to add channel to wrong image");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -2421,7 +2420,7 @@ gimage_add_channel (GImage *gimage, Channel *channel, int position)
|
|||
{
|
||||
if (cc->data == channel)
|
||||
{
|
||||
warning("gimage_add_channel: trying to add channel to image twice");
|
||||
g_message ("gimage_add_channel: trying to add channel to image twice");
|
||||
return NULL;
|
||||
}
|
||||
cc = g_slist_next (cc);
|
||||
|
|
|
@ -207,7 +207,7 @@ gimage_mask_extract (gimage, drawable, cut_gimage, keep_indexed)
|
|||
non_empty = drawable_mask_bounds (drawable, &x1, &y1, &x2, &y2);
|
||||
if (non_empty && (!(x2 - x1) || !(y2 - y1)))
|
||||
{
|
||||
message_box ("Unable to cut/copy because the selected\nregion is empty.", NULL, NULL);
|
||||
g_message ("Unable to cut/copy because the selected\nregion is empty.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -330,7 +330,7 @@ gimage_mask_float (gimage, drawable, off_x, off_y)
|
|||
non_empty = drawable_mask_bounds ( (drawable), &x1, &y1, &x2, &y2);
|
||||
if (! non_empty || (x2 - x1) == 0 || (y2 - y1) == 0)
|
||||
{
|
||||
message_box ("Float Selection: No selection to float.", NULL, NULL);
|
||||
g_message ("Float Selection: No selection to float.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -484,7 +484,7 @@ gimage_mask_layer_alpha (gimage, layer)
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box ("The active layer has no alpha channel\nto convert to a selection.", NULL, NULL);
|
||||
g_message ("The active layer has no alpha channel\nto convert to a selection.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -503,7 +503,7 @@ gimage_mask_layer_mask (gimage, layer)
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box ("The active layer has no mask\nto convert to a selection.", NULL, NULL);
|
||||
g_message ("The active layer has no mask\nto convert to a selection.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -552,7 +552,7 @@ gimage_mask_stroke (gimage, drawable)
|
|||
|
||||
if (! gimage_mask_boundary (gimage, &bs_in, &bs_out, &num_segs_in, &num_segs_out))
|
||||
{
|
||||
message_box ("No selection to stroke!", NULL, NULL);
|
||||
g_message ("No selection to stroke!");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ image_desaturate (gimage_ptr)
|
|||
|
||||
if (! drawable_color (drawable))
|
||||
{
|
||||
message_box ("Desaturate operates only on RGB color drawables.", NULL, NULL);
|
||||
g_message ("Desaturate operates only on RGB color drawables.");
|
||||
return;
|
||||
}
|
||||
desaturate (drawable);
|
||||
|
|
|
@ -42,7 +42,7 @@ image_equalize (gimage_ptr)
|
|||
|
||||
if (drawable_indexed (drawable))
|
||||
{
|
||||
message_box ("Equalize does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Equalize does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
equalize (gimage, drawable, mask_only);
|
||||
|
|
|
@ -42,7 +42,7 @@ image_invert (gimage_ptr)
|
|||
|
||||
if (drawable_indexed (drawable))
|
||||
{
|
||||
message_box ("Invert does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Invert does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ image_invert (gimage_ptr)
|
|||
PDB_END);
|
||||
|
||||
if (return_vals[0].value.pdb_int != PDB_SUCCESS)
|
||||
message_box ("Invert operation failed.", NULL, NULL);
|
||||
g_message ("Invert operation failed.");
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
|
|
@ -303,8 +303,7 @@ convert_to_indexed (void *gimage_ptr)
|
|||
dialog->num_cols = 255;
|
||||
if (!shown_message_already)
|
||||
{
|
||||
message_box ("Note: You are attempting to convert an image\nwith alpha/layers. It is recommended that you quantize\nto no more than 255 colors if you wish to make\na transparent or animated GIF from it.\n\nYou won't get this message again\nuntil the next time you run GIMP.\nHave a nice day!",
|
||||
NULL, NULL);
|
||||
g_message ("Note: You are attempting to convert an image\nwith alpha/layers. It is recommended that you quantize\nto no more than 255 colors if you wish to make\na transparent or animated GIF from it.\n\nYou won't get this message again\nuntil the next time you run GIMP.\nHave a nice day!");
|
||||
shown_message_already = True;
|
||||
}
|
||||
}
|
||||
|
@ -1015,7 +1014,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
|
||||
has_alpha = (gboolean) layer_has_alpha(layer);
|
||||
|
||||
g_print ("col_limit = %d, nfc = %d\n", col_limit, num_found_cols);
|
||||
/* g_print ("col_limit = %d, nfc = %d\n", col_limit, num_found_cols);*/
|
||||
|
||||
pixel_region_init (&srcPR, GIMP_DRAWABLE(layer)->tiles, 0, 0,
|
||||
GIMP_DRAWABLE(layer)->width,
|
||||
|
@ -1083,7 +1082,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
* quantizing at a later stage.
|
||||
*/
|
||||
needs_quantize = TRUE;
|
||||
g_print ("\nmax colours exceeded - needs quantize.\n");
|
||||
/* g_print ("\nmax colours exceeded - needs quantize.\n");*/
|
||||
goto already_found;
|
||||
}
|
||||
else
|
||||
|
@ -1102,7 +1101,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
}
|
||||
}
|
||||
|
||||
g_print ("O: col_limit = %d, nfc = %d\n", col_limit, num_found_cols);
|
||||
/* g_print ("O: col_limit = %d, nfc = %d\n", col_limit, num_found_cols);*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -235,7 +235,7 @@ layer_new (gimage_ID, width, height, type, name, opacity, mode)
|
|||
Layer * layer;
|
||||
|
||||
if (width == 0 || height == 0) {
|
||||
warning ("Zero width or height layers not allowed.");
|
||||
g_message ("Zero width or height layers not allowed.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -326,7 +326,7 @@ layer_copy (layer, add_alpha)
|
|||
new_layer = layer_new (GIMP_DRAWABLE(layer)->gimage_ID, GIMP_DRAWABLE(layer)->width, GIMP_DRAWABLE(layer)->height,
|
||||
new_type, layer_name, layer->opacity, layer->mode);
|
||||
if (!new_layer) {
|
||||
warning("layer_copy: could not allocate new layer");
|
||||
g_message ("layer_copy: could not allocate new layer");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
@ -399,7 +399,7 @@ layer_from_tiles (gimage_ptr, drawable, tiles, name, opacity, mode)
|
|||
layer_type, name, opacity, mode);
|
||||
|
||||
if (!new_layer) {
|
||||
warning("layer_from_tiles: could not allocate new layer");
|
||||
g_message ("layer_from_tiles: could not allocate new layer");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -389,8 +389,7 @@ save_gimprc (GList **updated_options,
|
|||
error_msg = open_backup_file (name, &fp_new, &fp_old);
|
||||
if (error_msg != NULL)
|
||||
{
|
||||
/* FIXME: show the error in a nice dialog box */
|
||||
g_warning (error_msg);
|
||||
g_message (error_msg);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1312,7 +1312,7 @@ ed_do_new_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer ca
|
|||
gradient_name = (char *) call_data;
|
||||
|
||||
if (!gradient_name) {
|
||||
warning("ed_do_new_gradient_callback(): oops, received NULL in call_data");
|
||||
g_message ("ed_do_new_gradient_callback(): oops, received NULL in call_data");
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
|
@ -1369,7 +1369,7 @@ ed_do_copy_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer c
|
|||
gradient_name = (char *) call_data;
|
||||
|
||||
if (!gradient_name) {
|
||||
warning("ed_do_copy_gradient_callback(): oops, received NULL in call_data");
|
||||
g_message ("ed_do_copy_gradient_callback(): oops, received NULL in call_data");
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
|
@ -1622,7 +1622,7 @@ ed_do_save_pov_callback(GtkWidget *widget, gpointer client_data)
|
|||
file = fopen(filename, "w");
|
||||
|
||||
if (!file)
|
||||
warning("ed_do_save_pov_callback(): oops, could not open \"%s\"", filename);
|
||||
g_message ("ed_do_save_pov_callback(): oops, could not open \"%s\"", filename);
|
||||
else {
|
||||
fprintf(file, "/* color_map file created by the GIMP */\n");
|
||||
fprintf(file, "/* http://www.gimp.org/ */\n");
|
||||
|
@ -2189,7 +2189,7 @@ control_do_hint(gint x, gint y)
|
|||
break;
|
||||
|
||||
default:
|
||||
warning("control_do_hint: oops, in_handle is true "
|
||||
g_message ("control_do_hint: oops, in_handle is true "
|
||||
"yet we got handle type %d", (int) handle);
|
||||
break;
|
||||
} /* switch */
|
||||
|
@ -2293,7 +2293,7 @@ control_button_press(gint x, gint y, guint button, guint state)
|
|||
return;
|
||||
|
||||
default:
|
||||
warning("control_button_press(): oops, in_handle is true "
|
||||
g_message ("control_button_press(): oops, in_handle is true "
|
||||
"yet we got handle type %d", (int) handle);
|
||||
return;
|
||||
} /* switch */
|
||||
|
@ -2337,7 +2337,7 @@ control_point_in_handle(gint x, gint y, grad_segment_t *seg, control_drag_mode_t
|
|||
break;
|
||||
|
||||
default:
|
||||
warning("control_point_in_handle(): oops, can not handle drag mode %d",
|
||||
g_message ("control_point_in_handle(): oops, can not handle drag mode %d",
|
||||
(int) handle);
|
||||
return 0;
|
||||
} /* switch */
|
||||
|
@ -5290,7 +5290,7 @@ grad_load_gradient(char *filename)
|
|||
num_segments = atoi(line);
|
||||
|
||||
if (num_segments < 1) {
|
||||
warning("grad_load_gradient(): invalid number of segments in \"%s\"", filename);
|
||||
g_message ("grad_load_gradient(): invalid number of segments in \"%s\"", filename);
|
||||
g_free(grad);
|
||||
return;
|
||||
} /* if */
|
||||
|
@ -5313,9 +5313,9 @@ grad_load_gradient(char *filename)
|
|||
&(seg->r0), &(seg->g0), &(seg->b0), &(seg->a0),
|
||||
&(seg->r1), &(seg->g1), &(seg->b1), &(seg->a1),
|
||||
&type, &color) != 13) {
|
||||
warning("grad_load_gradient(): badly formatted "
|
||||
"gradient segment %d in \"%s\" --- bad things may "
|
||||
"happen soon", i, filename);
|
||||
g_message ("grad_load_gradient(): badly formatted "
|
||||
"gradient segment %d in \"%s\" --- bad things may "
|
||||
"happen soon", i, filename);
|
||||
} else {
|
||||
seg->type = (grad_type_t) type;
|
||||
seg->color = (grad_color_t) color;
|
||||
|
@ -5347,13 +5347,13 @@ grad_save_gradient(gradient_t *grad, char *filename)
|
|||
g_assert(grad != NULL);
|
||||
|
||||
if (!filename) {
|
||||
warning("grad_save_gradient(): can not save gradient with NULL filename");
|
||||
g_message ("grad_save_gradient(): can not save gradient with NULL filename");
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
file = fopen(filename, "w");
|
||||
if (!file) {
|
||||
warning("grad_save_gradient(): can't open \"%s\"", filename);
|
||||
g_message ("grad_save_gradient(): can't open \"%s\"", filename);
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
|
|
|
@ -1312,7 +1312,7 @@ ed_do_new_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer ca
|
|||
gradient_name = (char *) call_data;
|
||||
|
||||
if (!gradient_name) {
|
||||
warning("ed_do_new_gradient_callback(): oops, received NULL in call_data");
|
||||
g_message ("ed_do_new_gradient_callback(): oops, received NULL in call_data");
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
|
@ -1369,7 +1369,7 @@ ed_do_copy_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer c
|
|||
gradient_name = (char *) call_data;
|
||||
|
||||
if (!gradient_name) {
|
||||
warning("ed_do_copy_gradient_callback(): oops, received NULL in call_data");
|
||||
g_message ("ed_do_copy_gradient_callback(): oops, received NULL in call_data");
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
|
@ -1622,7 +1622,7 @@ ed_do_save_pov_callback(GtkWidget *widget, gpointer client_data)
|
|||
file = fopen(filename, "w");
|
||||
|
||||
if (!file)
|
||||
warning("ed_do_save_pov_callback(): oops, could not open \"%s\"", filename);
|
||||
g_message ("ed_do_save_pov_callback(): oops, could not open \"%s\"", filename);
|
||||
else {
|
||||
fprintf(file, "/* color_map file created by the GIMP */\n");
|
||||
fprintf(file, "/* http://www.gimp.org/ */\n");
|
||||
|
@ -2189,7 +2189,7 @@ control_do_hint(gint x, gint y)
|
|||
break;
|
||||
|
||||
default:
|
||||
warning("control_do_hint: oops, in_handle is true "
|
||||
g_message ("control_do_hint: oops, in_handle is true "
|
||||
"yet we got handle type %d", (int) handle);
|
||||
break;
|
||||
} /* switch */
|
||||
|
@ -2293,7 +2293,7 @@ control_button_press(gint x, gint y, guint button, guint state)
|
|||
return;
|
||||
|
||||
default:
|
||||
warning("control_button_press(): oops, in_handle is true "
|
||||
g_message ("control_button_press(): oops, in_handle is true "
|
||||
"yet we got handle type %d", (int) handle);
|
||||
return;
|
||||
} /* switch */
|
||||
|
@ -2337,7 +2337,7 @@ control_point_in_handle(gint x, gint y, grad_segment_t *seg, control_drag_mode_t
|
|||
break;
|
||||
|
||||
default:
|
||||
warning("control_point_in_handle(): oops, can not handle drag mode %d",
|
||||
g_message ("control_point_in_handle(): oops, can not handle drag mode %d",
|
||||
(int) handle);
|
||||
return 0;
|
||||
} /* switch */
|
||||
|
@ -5290,7 +5290,7 @@ grad_load_gradient(char *filename)
|
|||
num_segments = atoi(line);
|
||||
|
||||
if (num_segments < 1) {
|
||||
warning("grad_load_gradient(): invalid number of segments in \"%s\"", filename);
|
||||
g_message ("grad_load_gradient(): invalid number of segments in \"%s\"", filename);
|
||||
g_free(grad);
|
||||
return;
|
||||
} /* if */
|
||||
|
@ -5313,9 +5313,9 @@ grad_load_gradient(char *filename)
|
|||
&(seg->r0), &(seg->g0), &(seg->b0), &(seg->a0),
|
||||
&(seg->r1), &(seg->g1), &(seg->b1), &(seg->a1),
|
||||
&type, &color) != 13) {
|
||||
warning("grad_load_gradient(): badly formatted "
|
||||
"gradient segment %d in \"%s\" --- bad things may "
|
||||
"happen soon", i, filename);
|
||||
g_message ("grad_load_gradient(): badly formatted "
|
||||
"gradient segment %d in \"%s\" --- bad things may "
|
||||
"happen soon", i, filename);
|
||||
} else {
|
||||
seg->type = (grad_type_t) type;
|
||||
seg->color = (grad_color_t) color;
|
||||
|
@ -5347,13 +5347,13 @@ grad_save_gradient(gradient_t *grad, char *filename)
|
|||
g_assert(grad != NULL);
|
||||
|
||||
if (!filename) {
|
||||
warning("grad_save_gradient(): can not save gradient with NULL filename");
|
||||
g_message ("grad_save_gradient(): can not save gradient with NULL filename");
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
file = fopen(filename, "w");
|
||||
if (!file) {
|
||||
warning("grad_save_gradient(): can't open \"%s\"", filename);
|
||||
g_message ("grad_save_gradient(): can't open \"%s\"", filename);
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
|
|
|
@ -798,10 +798,10 @@ channel_list_events (GtkWidget *widget,
|
|||
switch (kevent->keyval)
|
||||
{
|
||||
case GDK_Up:
|
||||
printf ("up arrow\n");
|
||||
/* printf ("up arrow\n"); */
|
||||
break;
|
||||
case GDK_Down:
|
||||
printf ("down arrow\n");
|
||||
/* printf ("down arrow\n"); */
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
|
|
|
@ -564,29 +564,25 @@ file_prefs_ok_callback (GtkWidget *widget,
|
|||
|
||||
if (levels_of_undo < 0)
|
||||
{
|
||||
message_box("Error: Levels of undo must be zero or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Levels of undo must be zero or greater.");
|
||||
levels_of_undo = old_levels_of_undo;
|
||||
return;
|
||||
}
|
||||
if (marching_speed < 50)
|
||||
{
|
||||
message_box("Error: Marching speed must be 50 or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Marching speed must be 50 or greater.");
|
||||
marching_speed = old_marching_speed;
|
||||
return;
|
||||
}
|
||||
if (default_width < 1)
|
||||
{
|
||||
message_box("Error: Default width must be one or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Default width must be one or greater.");
|
||||
default_width = old_default_width;
|
||||
return;
|
||||
}
|
||||
if (default_height < 1)
|
||||
{
|
||||
message_box("Error: Default height must be one or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Default height must be one or greater.");
|
||||
default_height = old_default_height;
|
||||
return;
|
||||
}
|
||||
|
@ -752,7 +748,7 @@ file_prefs_save_callback (GtkWidget *widget,
|
|||
gradient_path = save_gradient_path;
|
||||
|
||||
if (restart_notification)
|
||||
message_box("You will need to restart GIMP for these changes to take effect.", NULL, NULL);
|
||||
g_message ("You will need to restart GIMP for these changes to take effect.");
|
||||
|
||||
g_list_free (update);
|
||||
g_list_free (remove);
|
||||
|
@ -2486,7 +2482,7 @@ image_resize_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box("Resize Error: Both width and height must be greater than zero.", NULL, NULL);
|
||||
g_message ("Resize Error: Both width and height must be greater than zero.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -2516,7 +2512,7 @@ image_scale_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box("Scale Error: Both width and height must be greater than zero.", NULL, NULL);
|
||||
g_message ("Scale Error: Both width and height must be greater than zero.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1312,7 +1312,7 @@ ed_do_new_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer ca
|
|||
gradient_name = (char *) call_data;
|
||||
|
||||
if (!gradient_name) {
|
||||
warning("ed_do_new_gradient_callback(): oops, received NULL in call_data");
|
||||
g_message ("ed_do_new_gradient_callback(): oops, received NULL in call_data");
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
|
@ -1369,7 +1369,7 @@ ed_do_copy_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer c
|
|||
gradient_name = (char *) call_data;
|
||||
|
||||
if (!gradient_name) {
|
||||
warning("ed_do_copy_gradient_callback(): oops, received NULL in call_data");
|
||||
g_message ("ed_do_copy_gradient_callback(): oops, received NULL in call_data");
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
|
@ -1622,7 +1622,7 @@ ed_do_save_pov_callback(GtkWidget *widget, gpointer client_data)
|
|||
file = fopen(filename, "w");
|
||||
|
||||
if (!file)
|
||||
warning("ed_do_save_pov_callback(): oops, could not open \"%s\"", filename);
|
||||
g_message ("ed_do_save_pov_callback(): oops, could not open \"%s\"", filename);
|
||||
else {
|
||||
fprintf(file, "/* color_map file created by the GIMP */\n");
|
||||
fprintf(file, "/* http://www.gimp.org/ */\n");
|
||||
|
@ -2189,7 +2189,7 @@ control_do_hint(gint x, gint y)
|
|||
break;
|
||||
|
||||
default:
|
||||
warning("control_do_hint: oops, in_handle is true "
|
||||
g_message ("control_do_hint: oops, in_handle is true "
|
||||
"yet we got handle type %d", (int) handle);
|
||||
break;
|
||||
} /* switch */
|
||||
|
@ -2293,7 +2293,7 @@ control_button_press(gint x, gint y, guint button, guint state)
|
|||
return;
|
||||
|
||||
default:
|
||||
warning("control_button_press(): oops, in_handle is true "
|
||||
g_message ("control_button_press(): oops, in_handle is true "
|
||||
"yet we got handle type %d", (int) handle);
|
||||
return;
|
||||
} /* switch */
|
||||
|
@ -2337,7 +2337,7 @@ control_point_in_handle(gint x, gint y, grad_segment_t *seg, control_drag_mode_t
|
|||
break;
|
||||
|
||||
default:
|
||||
warning("control_point_in_handle(): oops, can not handle drag mode %d",
|
||||
g_message ("control_point_in_handle(): oops, can not handle drag mode %d",
|
||||
(int) handle);
|
||||
return 0;
|
||||
} /* switch */
|
||||
|
@ -5290,7 +5290,7 @@ grad_load_gradient(char *filename)
|
|||
num_segments = atoi(line);
|
||||
|
||||
if (num_segments < 1) {
|
||||
warning("grad_load_gradient(): invalid number of segments in \"%s\"", filename);
|
||||
g_message ("grad_load_gradient(): invalid number of segments in \"%s\"", filename);
|
||||
g_free(grad);
|
||||
return;
|
||||
} /* if */
|
||||
|
@ -5313,9 +5313,9 @@ grad_load_gradient(char *filename)
|
|||
&(seg->r0), &(seg->g0), &(seg->b0), &(seg->a0),
|
||||
&(seg->r1), &(seg->g1), &(seg->b1), &(seg->a1),
|
||||
&type, &color) != 13) {
|
||||
warning("grad_load_gradient(): badly formatted "
|
||||
"gradient segment %d in \"%s\" --- bad things may "
|
||||
"happen soon", i, filename);
|
||||
g_message ("grad_load_gradient(): badly formatted "
|
||||
"gradient segment %d in \"%s\" --- bad things may "
|
||||
"happen soon", i, filename);
|
||||
} else {
|
||||
seg->type = (grad_type_t) type;
|
||||
seg->color = (grad_color_t) color;
|
||||
|
@ -5347,13 +5347,13 @@ grad_save_gradient(gradient_t *grad, char *filename)
|
|||
g_assert(grad != NULL);
|
||||
|
||||
if (!filename) {
|
||||
warning("grad_save_gradient(): can not save gradient with NULL filename");
|
||||
g_message ("grad_save_gradient(): can not save gradient with NULL filename");
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
file = fopen(filename, "w");
|
||||
if (!file) {
|
||||
warning("grad_save_gradient(): can't open \"%s\"", filename);
|
||||
g_message ("grad_save_gradient(): can't open \"%s\"", filename);
|
||||
return;
|
||||
} /* if */
|
||||
|
||||
|
|
|
@ -564,29 +564,25 @@ file_prefs_ok_callback (GtkWidget *widget,
|
|||
|
||||
if (levels_of_undo < 0)
|
||||
{
|
||||
message_box("Error: Levels of undo must be zero or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Levels of undo must be zero or greater.");
|
||||
levels_of_undo = old_levels_of_undo;
|
||||
return;
|
||||
}
|
||||
if (marching_speed < 50)
|
||||
{
|
||||
message_box("Error: Marching speed must be 50 or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Marching speed must be 50 or greater.");
|
||||
marching_speed = old_marching_speed;
|
||||
return;
|
||||
}
|
||||
if (default_width < 1)
|
||||
{
|
||||
message_box("Error: Default width must be one or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Default width must be one or greater.");
|
||||
default_width = old_default_width;
|
||||
return;
|
||||
}
|
||||
if (default_height < 1)
|
||||
{
|
||||
message_box("Error: Default height must be one or greater.",
|
||||
NULL, NULL);
|
||||
g_message ("Error: Default height must be one or greater.");
|
||||
default_height = old_default_height;
|
||||
return;
|
||||
}
|
||||
|
@ -752,7 +748,7 @@ file_prefs_save_callback (GtkWidget *widget,
|
|||
gradient_path = save_gradient_path;
|
||||
|
||||
if (restart_notification)
|
||||
message_box("You will need to restart GIMP for these changes to take effect.", NULL, NULL);
|
||||
g_message ("You will need to restart GIMP for these changes to take effect.");
|
||||
|
||||
g_list_free (update);
|
||||
g_list_free (remove);
|
||||
|
@ -2486,7 +2482,7 @@ image_resize_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box("Resize Error: Both width and height must be greater than zero.", NULL, NULL);
|
||||
g_message ("Resize Error: Both width and height must be greater than zero.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -2516,7 +2512,7 @@ image_scale_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
message_box("Scale Error: Both width and height must be greater than zero.", NULL, NULL);
|
||||
g_message ("Scale Error: Both width and height must be greater than zero.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1498,10 +1498,10 @@ layer_list_events (GtkWidget *widget,
|
|||
switch (kevent->keyval)
|
||||
{
|
||||
case GDK_Up:
|
||||
printf ("up arrow\n");
|
||||
/* printf ("up arrow\n"); */
|
||||
break;
|
||||
case GDK_Down:
|
||||
printf ("down arrow\n");
|
||||
/* printf ("down arrow\n"); */
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
|
@ -2939,7 +2939,7 @@ new_layer_query_ok_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
warning("new_layer_query_ok_callback: could not allocate new layer");
|
||||
g_message ("new_layer_query_ok_callback: could not allocate new layer");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3584,7 +3584,7 @@ scale_layer_query_ok_callback (GtkWidget *w,
|
|||
g_free (options);
|
||||
}
|
||||
else
|
||||
message_box ("Invalid width or height. Both must be positive.", NULL, NULL);
|
||||
g_message ("Invalid width or height. Both must be positive.");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -3705,7 +3705,7 @@ resize_layer_query_ok_callback (GtkWidget *w,
|
|||
g_free (options);
|
||||
}
|
||||
else
|
||||
message_box ("Invalid width or height. Both must be positive.", NULL, NULL);
|
||||
g_message ("Invalid width or height. Both must be positive.");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -608,7 +608,7 @@ palette_entries_save (PaletteEntriesP palette,
|
|||
/* Open the requested file */
|
||||
if (! (fp = fopen (filename, "w")))
|
||||
{
|
||||
warning ("can't save palette \"%s\"\n", filename);
|
||||
g_message ("can't save palette \"%s\"\n", filename);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -387,7 +387,7 @@ histogram_tool_initialize (void *gdisp_ptr)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Histogram does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Histogram does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -364,7 +364,7 @@ hue_saturation_initialize (void *gdisp_ptr)
|
|||
|
||||
if (! drawable_color (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Hue-Saturation operates only on RGB color drawables.", NULL, NULL);
|
||||
g_message ("Hue-Saturation operates only on RGB color drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ image_invert (gimage_ptr)
|
|||
|
||||
if (drawable_indexed (drawable))
|
||||
{
|
||||
message_box ("Invert does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Invert does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ image_invert (gimage_ptr)
|
|||
PDB_END);
|
||||
|
||||
if (return_vals[0].value.pdb_int != PDB_SUCCESS)
|
||||
message_box ("Invert operation failed.", NULL, NULL);
|
||||
g_message ("Invert operation failed.");
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
|
|
@ -509,10 +509,6 @@ iscissors_button_press (Tool *tool,
|
|||
iscissors = (Iscissors *) tool->private;
|
||||
drawable = gimage_active_drawable (gdisp->gimage);
|
||||
|
||||
/*message_box ("Intelligent Scissors is currently not enabled\nfor use with
|
||||
the tile-based GIMP\non anything but yosh's computer.", NULL, NULL);*/
|
||||
/* return;*/
|
||||
|
||||
gdisplay_untransform_coords (gdisp, bevent->x, bevent->y,
|
||||
&iscissors->x, &iscissors->y, FALSE, TRUE);
|
||||
|
||||
|
@ -1803,7 +1799,7 @@ bezierify_boundary (Tool *tool)
|
|||
|
||||
if (iscissors->num_pts < 4)
|
||||
{
|
||||
message_box ("Boundary contains < 4 points! Cannot bezierify.", NULL, NULL);
|
||||
g_message ("Boundary contains < 4 points! Cannot bezierify.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -235,7 +235,7 @@ layer_new (gimage_ID, width, height, type, name, opacity, mode)
|
|||
Layer * layer;
|
||||
|
||||
if (width == 0 || height == 0) {
|
||||
warning ("Zero width or height layers not allowed.");
|
||||
g_message ("Zero width or height layers not allowed.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -326,7 +326,7 @@ layer_copy (layer, add_alpha)
|
|||
new_layer = layer_new (GIMP_DRAWABLE(layer)->gimage_ID, GIMP_DRAWABLE(layer)->width, GIMP_DRAWABLE(layer)->height,
|
||||
new_type, layer_name, layer->opacity, layer->mode);
|
||||
if (!new_layer) {
|
||||
warning("layer_copy: could not allocate new layer");
|
||||
g_message ("layer_copy: could not allocate new layer");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
@ -399,7 +399,7 @@ layer_from_tiles (gimage_ptr, drawable, tiles, name, opacity, mode)
|
|||
layer_type, name, opacity, mode);
|
||||
|
||||
if (!new_layer) {
|
||||
warning("layer_from_tiles: could not allocate new layer");
|
||||
g_message ("layer_from_tiles: could not allocate new layer");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -1498,10 +1498,10 @@ layer_list_events (GtkWidget *widget,
|
|||
switch (kevent->keyval)
|
||||
{
|
||||
case GDK_Up:
|
||||
printf ("up arrow\n");
|
||||
/* printf ("up arrow\n"); */
|
||||
break;
|
||||
case GDK_Down:
|
||||
printf ("down arrow\n");
|
||||
/* printf ("down arrow\n"); */
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
|
@ -2939,7 +2939,7 @@ new_layer_query_ok_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
warning("new_layer_query_ok_callback: could not allocate new layer");
|
||||
g_message ("new_layer_query_ok_callback: could not allocate new layer");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3584,7 +3584,7 @@ scale_layer_query_ok_callback (GtkWidget *w,
|
|||
g_free (options);
|
||||
}
|
||||
else
|
||||
message_box ("Invalid width or height. Both must be positive.", NULL, NULL);
|
||||
g_message ("Invalid width or height. Both must be positive.");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -3705,7 +3705,7 @@ resize_layer_query_ok_callback (GtkWidget *w,
|
|||
g_free (options);
|
||||
}
|
||||
else
|
||||
message_box ("Invalid width or height. Both must be positive.", NULL, NULL);
|
||||
g_message ("Invalid width or height. Both must be positive.");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -425,7 +425,7 @@ levels_initialize (void *gdisp_ptr)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Levels for indexed drawables cannot be adjusted.", NULL, NULL);
|
||||
g_message ("Levels for indexed drawables cannot be adjusted.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -199,6 +199,9 @@ main (int argc, char **argv)
|
|||
if (show_version || show_help)
|
||||
exit (0);
|
||||
|
||||
/* Print to console at first */
|
||||
g_set_message_handler (&message_console_func);
|
||||
|
||||
/* Handle some signals */
|
||||
signal (SIGHUP, on_signal);
|
||||
signal (SIGINT, on_signal);
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -228,7 +228,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||
|
||||
if (clone_options->type == PatternClone)
|
||||
if (!get_active_pattern ())
|
||||
message_box ("No patterns available for this operation.", NULL, NULL);
|
||||
g_message ("No patterns available for this operation.");
|
||||
break;
|
||||
|
||||
case FINISH_PAINT :
|
||||
|
|
|
@ -228,7 +228,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||
|
||||
if (clone_options->type == PatternClone)
|
||||
if (!get_active_pattern ())
|
||||
message_box ("No patterns available for this operation.", NULL, NULL);
|
||||
g_message ("No patterns available for this operation.");
|
||||
break;
|
||||
|
||||
case FINISH_PAINT :
|
||||
|
|
|
@ -385,7 +385,7 @@ paint_core_init (paint_core, drawable, x, y)
|
|||
/* Each buffer is the same size as the maximum bounds of the active brush... */
|
||||
if (!(brush = get_active_brush ()))
|
||||
{
|
||||
warning ("No brushes available for use with this tool.");
|
||||
g_message ("No brushes available for use with this tool.");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -608,7 +608,7 @@ palette_entries_save (PaletteEntriesP palette,
|
|||
/* Open the requested file */
|
||||
if (! (fp = fopen (filename, "w")))
|
||||
{
|
||||
warning ("can't save palette \"%s\"\n", filename);
|
||||
g_message ("can't save palette \"%s\"\n", filename);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -199,8 +199,8 @@ load_pattern (char *filename)
|
|||
/* Check for correct version */
|
||||
if (header.version != FILE_VERSION)
|
||||
{
|
||||
warning ("Unknown GIMP version #%d in \"%s\"\n", header.version,
|
||||
filename);
|
||||
g_message ("Unknown GIMP version #%d in \"%s\"\n", header.version,
|
||||
filename);
|
||||
fclose (fp);
|
||||
free_pattern (pattern);
|
||||
return;
|
||||
|
@ -215,7 +215,7 @@ load_pattern (char *filename)
|
|||
pattern->name = (char *) g_malloc (sizeof (char) * bn_size);
|
||||
if ((fread (pattern->name, 1, bn_size, fp)) < bn_size)
|
||||
{
|
||||
warning ("Error in GIMP pattern file...aborting.");
|
||||
g_message ("Error in GIMP pattern file...aborting.");
|
||||
fclose (fp);
|
||||
free_pattern (pattern);
|
||||
return;
|
||||
|
@ -229,7 +229,7 @@ load_pattern (char *filename)
|
|||
if ((fread (temp_buf_data (pattern->mask), 1,
|
||||
header.width * header.height * header.bytes, fp)) <
|
||||
header.width * header.height * header.bytes)
|
||||
warning ("GIMP pattern file appears to be truncated.");
|
||||
g_message ("GIMP pattern file appears to be truncated.");
|
||||
|
||||
/* Clean up */
|
||||
fclose (fp);
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@ static void plug_in_args_destroy (Argument *args,
|
|||
static Argument* progress_init_invoker (Argument *args);
|
||||
static Argument* progress_update_invoker (Argument *args);
|
||||
|
||||
static Argument* message_invoker (Argument *args);
|
||||
|
||||
|
||||
static GSList *plug_in_defs = NULL;
|
||||
static GSList *gimprc_proc_defs = NULL;
|
||||
|
@ -184,6 +186,30 @@ static ProcRecord progress_update_proc =
|
|||
};
|
||||
|
||||
|
||||
static ProcArg message_args[] =
|
||||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
message_args,
|
||||
0,
|
||||
NULL,
|
||||
{ { message_invoker } },
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
plug_in_init ()
|
||||
{
|
||||
|
@ -198,6 +224,9 @@ plug_in_init ()
|
|||
procedural_db_register (&progress_init_proc);
|
||||
procedural_db_register (&progress_update_proc);
|
||||
|
||||
/* initialize the message box procedural db calls */
|
||||
procedural_db_register (&message_proc);
|
||||
|
||||
/* initialize the gimp protocol library and set the read and
|
||||
* write handlers.
|
||||
*/
|
||||
|
@ -652,7 +681,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
warning ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -732,7 +761,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
warning ("unable to open pipe");
|
||||
g_message ("unable to open pipe");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -780,7 +809,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
warning ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2973,3 +3002,10 @@ progress_update_invoker (Argument *args)
|
|||
|
||||
return procedural_db_return_args (&progress_update_proc, success);
|
||||
}
|
||||
|
||||
static Argument*
|
||||
message_invoker (Argument *args)
|
||||
{
|
||||
g_message (args[0].value.pdb_pointer, NULL, NULL);
|
||||
return procedural_db_return_args (&message_proc, TRUE);
|
||||
}
|
||||
|
|
|
@ -251,7 +251,7 @@ posterize_initialize (void *gdisp_ptr)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Posterize does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Posterize does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
43
app/regex.c
43
app/regex.c
|
@ -3,11 +3,11 @@
|
|||
(Implements POSIX draft P1003.2/D11.2, except for some of the
|
||||
internationalization features.)
|
||||
|
||||
Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||
|
||||
the C library, however. The master source lives in /gd/gnu/lib.
|
||||
|
||||
NOTE: The canonical source of this file is maintained with the
|
||||
NOTE: The canonical source of this file is maintained with the
|
||||
GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -21,7 +21,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* AIX requires this to be the first thing in the file. */
|
||||
|
@ -46,8 +46,9 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||
/* For platform which support the ISO C amendement 1 functionality we
|
||||
support user defined character classes. */
|
||||
#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H)
|
||||
# include <wctype.h>
|
||||
/* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
|
||||
# include <wchar.h>
|
||||
# include <wctype.h>
|
||||
#endif
|
||||
|
||||
/* This is for other GNU distributions with internationalized messages. */
|
||||
|
@ -188,6 +189,7 @@ init_syntax_once ()
|
|||
Defining isascii to 1 should let any compiler worth its salt
|
||||
eliminate the && through constant folding." */
|
||||
|
||||
#undef ISASCII
|
||||
#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))
|
||||
#define ISASCII(c) 1
|
||||
#else
|
||||
|
@ -205,6 +207,7 @@ init_syntax_once ()
|
|||
#define ISGRAPH(c) (ISASCII (c) && isprint (c) && !isspace (c))
|
||||
#endif
|
||||
|
||||
#undef ISPRINT
|
||||
#define ISPRINT(c) (ISASCII (c) && isprint (c))
|
||||
#define ISDIGIT(c) (ISASCII (c) && isdigit (c))
|
||||
#define ISALNUM(c) (ISASCII (c) && isalnum (c))
|
||||
|
@ -1690,7 +1693,7 @@ typedef struct
|
|||
|
||||
# define IS_CHAR_CLASS(string) wctype (string)
|
||||
#else
|
||||
# define CHAR_CLASS_MAX_LENGTH 6 /* Namely, `xdigit'. */
|
||||
# define CHAR_CLASS_MAX_LENGTH 256 /* Namely, `xdigit'. */
|
||||
|
||||
# define IS_CHAR_CLASS(string) \
|
||||
(STREQ (string, "alpha") || STREQ (string, "upper") \
|
||||
|
@ -2165,7 +2168,7 @@ regex_compile (pattern, size, syntax, bufp)
|
|||
for (;;)
|
||||
{
|
||||
PATFETCH (c);
|
||||
if (c == ':' || c == ']' || p == pend
|
||||
if ((c == ':' && *p == ']') || p == pend
|
||||
|| c1 == CHAR_CLASS_MAX_LENGTH)
|
||||
break;
|
||||
str[c1++] = c;
|
||||
|
@ -2378,13 +2381,13 @@ regex_compile (pattern, size, syntax, bufp)
|
|||
if (syntax & RE_NO_BK_PARENS) goto normal_backslash;
|
||||
|
||||
if (COMPILE_STACK_EMPTY)
|
||||
{
|
||||
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
|
||||
goto normal_backslash;
|
||||
else
|
||||
FREE_STACK_RETURN (REG_ERPAREN);
|
||||
}
|
||||
|
||||
{
|
||||
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
|
||||
goto normal_backslash;
|
||||
else
|
||||
FREE_STACK_RETURN (REG_ERPAREN);
|
||||
}
|
||||
|
||||
handle_close:
|
||||
if (fixup_alt_jump)
|
||||
{ /* Push a dummy failure point at the end of the
|
||||
|
@ -2400,13 +2403,13 @@ regex_compile (pattern, size, syntax, bufp)
|
|||
|
||||
/* See similar code for backslashed left paren above. */
|
||||
if (COMPILE_STACK_EMPTY)
|
||||
{
|
||||
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
|
||||
goto normal_char;
|
||||
else
|
||||
FREE_STACK_RETURN (REG_ERPAREN);
|
||||
}
|
||||
|
||||
{
|
||||
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
|
||||
goto normal_char;
|
||||
else
|
||||
FREE_STACK_RETURN (REG_ERPAREN);
|
||||
}
|
||||
|
||||
/* Since we just checked for an empty stack above, this
|
||||
``can't happen''. */
|
||||
assert (compile_stack.avail != 0);
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/* Definitions for data structures and routines for the regular
|
||||
expression library, version 0.12.
|
||||
Copyright (C) 1985,89,90,91,92,93,95,96,97 Free Software Foundation, Inc.
|
||||
Copyright (C) 1985,89,90,91,92,93,95,96,97, 98 Free Software Foundation, Inc.
|
||||
|
||||
the C library, however. The master source lives in /gd/gnu/lib.
|
||||
|
||||
NOTE: The canonical source of this file is maintained with the
|
||||
NOTE: The canonical source of this file is maintained with the
|
||||
GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -18,7 +18,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#ifndef _REGEX_H
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
(Implements POSIX draft P1003.2/D11.2, except for some of the
|
||||
internationalization features.)
|
||||
|
||||
Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||
|
||||
the C library, however. The master source lives in /gd/gnu/lib.
|
||||
|
||||
NOTE: The canonical source of this file is maintained with the
|
||||
NOTE: The canonical source of this file is maintained with the
|
||||
GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -21,7 +21,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* AIX requires this to be the first thing in the file. */
|
||||
|
@ -46,8 +46,9 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||
/* For platform which support the ISO C amendement 1 functionality we
|
||||
support user defined character classes. */
|
||||
#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H)
|
||||
# include <wctype.h>
|
||||
/* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
|
||||
# include <wchar.h>
|
||||
# include <wctype.h>
|
||||
#endif
|
||||
|
||||
/* This is for other GNU distributions with internationalized messages. */
|
||||
|
@ -188,6 +189,7 @@ init_syntax_once ()
|
|||
Defining isascii to 1 should let any compiler worth its salt
|
||||
eliminate the && through constant folding." */
|
||||
|
||||
#undef ISASCII
|
||||
#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))
|
||||
#define ISASCII(c) 1
|
||||
#else
|
||||
|
@ -205,6 +207,7 @@ init_syntax_once ()
|
|||
#define ISGRAPH(c) (ISASCII (c) && isprint (c) && !isspace (c))
|
||||
#endif
|
||||
|
||||
#undef ISPRINT
|
||||
#define ISPRINT(c) (ISASCII (c) && isprint (c))
|
||||
#define ISDIGIT(c) (ISASCII (c) && isdigit (c))
|
||||
#define ISALNUM(c) (ISASCII (c) && isalnum (c))
|
||||
|
@ -1690,7 +1693,7 @@ typedef struct
|
|||
|
||||
# define IS_CHAR_CLASS(string) wctype (string)
|
||||
#else
|
||||
# define CHAR_CLASS_MAX_LENGTH 6 /* Namely, `xdigit'. */
|
||||
# define CHAR_CLASS_MAX_LENGTH 256 /* Namely, `xdigit'. */
|
||||
|
||||
# define IS_CHAR_CLASS(string) \
|
||||
(STREQ (string, "alpha") || STREQ (string, "upper") \
|
||||
|
@ -2165,7 +2168,7 @@ regex_compile (pattern, size, syntax, bufp)
|
|||
for (;;)
|
||||
{
|
||||
PATFETCH (c);
|
||||
if (c == ':' || c == ']' || p == pend
|
||||
if ((c == ':' && *p == ']') || p == pend
|
||||
|| c1 == CHAR_CLASS_MAX_LENGTH)
|
||||
break;
|
||||
str[c1++] = c;
|
||||
|
@ -2378,13 +2381,13 @@ regex_compile (pattern, size, syntax, bufp)
|
|||
if (syntax & RE_NO_BK_PARENS) goto normal_backslash;
|
||||
|
||||
if (COMPILE_STACK_EMPTY)
|
||||
{
|
||||
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
|
||||
goto normal_backslash;
|
||||
else
|
||||
FREE_STACK_RETURN (REG_ERPAREN);
|
||||
}
|
||||
|
||||
{
|
||||
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
|
||||
goto normal_backslash;
|
||||
else
|
||||
FREE_STACK_RETURN (REG_ERPAREN);
|
||||
}
|
||||
|
||||
handle_close:
|
||||
if (fixup_alt_jump)
|
||||
{ /* Push a dummy failure point at the end of the
|
||||
|
@ -2400,13 +2403,13 @@ regex_compile (pattern, size, syntax, bufp)
|
|||
|
||||
/* See similar code for backslashed left paren above. */
|
||||
if (COMPILE_STACK_EMPTY)
|
||||
{
|
||||
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
|
||||
goto normal_char;
|
||||
else
|
||||
FREE_STACK_RETURN (REG_ERPAREN);
|
||||
}
|
||||
|
||||
{
|
||||
if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
|
||||
goto normal_char;
|
||||
else
|
||||
FREE_STACK_RETURN (REG_ERPAREN);
|
||||
}
|
||||
|
||||
/* Since we just checked for an empty stack above, this
|
||||
``can't happen''. */
|
||||
assert (compile_stack.avail != 0);
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/* Definitions for data structures and routines for the regular
|
||||
expression library, version 0.12.
|
||||
Copyright (C) 1985,89,90,91,92,93,95,96,97 Free Software Foundation, Inc.
|
||||
Copyright (C) 1985,89,90,91,92,93,95,96,97, 98 Free Software Foundation, Inc.
|
||||
|
||||
the C library, however. The master source lives in /gd/gnu/lib.
|
||||
|
||||
NOTE: The canonical source of this file is maintained with the
|
||||
NOTE: The canonical source of this file is maintained with the
|
||||
GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -18,7 +18,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#ifndef _REGEX_H
|
||||
|
|
|
@ -185,7 +185,7 @@ temp_buf_copy (src, dest)
|
|||
|
||||
if (!src)
|
||||
{
|
||||
warning ("trying to copy a temp buf which is NULL.");
|
||||
g_message ("trying to copy a temp buf which is NULL.");
|
||||
return dest;
|
||||
}
|
||||
|
||||
|
@ -195,7 +195,7 @@ temp_buf_copy (src, dest)
|
|||
{
|
||||
new = dest;
|
||||
if (dest->width != src->width || dest->height != src->height)
|
||||
warning ("In temp_buf_copy, the widths or heights don't match.");
|
||||
g_message ("In temp_buf_copy, the widths or heights don't match.");
|
||||
/* The temp buf is smart, and can translate between color and gray */
|
||||
/* (only necessary if not we allocated it */
|
||||
if (src->bytes != new->bytes)
|
||||
|
@ -205,7 +205,7 @@ temp_buf_copy (src, dest)
|
|||
else if (src->bytes == 2) /* grayscale */
|
||||
temp_buf_to_color (src, new);
|
||||
else
|
||||
warning ("Cannot convert from indexed color.");
|
||||
g_message ("Cannot convert from indexed color.");
|
||||
return new;
|
||||
}
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ temp_buf_copy_area (src, dest, x, y, w, h, border)
|
|||
|
||||
if (!src)
|
||||
{
|
||||
warning ("trying to copy a temp buf which is NULL.");
|
||||
g_message ("trying to copy a temp buf which is NULL.");
|
||||
return dest;
|
||||
}
|
||||
|
||||
|
@ -295,7 +295,7 @@ temp_buf_copy_area (src, dest, x, y, w, h, border)
|
|||
{
|
||||
new = dest;
|
||||
if (dest->bytes != src->bytes)
|
||||
warning ("In temp_buf_copy_area, the widths or heights or bytes don't match.");
|
||||
g_message ("In temp_buf_copy_area, the widths or heights or bytes don't match.");
|
||||
}
|
||||
|
||||
/* Set the offsets for the dest */
|
||||
|
@ -464,7 +464,7 @@ temp_buf_swap (buf)
|
|||
{
|
||||
if (stat_buf.st_mode & S_IFDIR)
|
||||
{
|
||||
warning ("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)",
|
||||
g_message ("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)",
|
||||
filename);
|
||||
g_free (filename);
|
||||
return;
|
||||
|
@ -480,7 +480,7 @@ temp_buf_swap (buf)
|
|||
else
|
||||
{
|
||||
perror ("Error in temp buf caching");
|
||||
warning ("Cannot write \"%s\"", filename);
|
||||
g_message ("Cannot write \"%s\"", filename);
|
||||
g_free (filename);
|
||||
return;
|
||||
}
|
||||
|
@ -537,7 +537,7 @@ temp_buf_unswap (buf)
|
|||
unlink (buf->filename);
|
||||
}
|
||||
if (!succ)
|
||||
warning ("Error in temp buf caching: information swapped to disk was lost!");
|
||||
g_message ("Error in temp buf caching: information swapped to disk was lost!");
|
||||
|
||||
g_free (buf->filename); /* free filename */
|
||||
buf->filename = NULL;
|
||||
|
@ -570,7 +570,7 @@ temp_buf_swap_free (buf)
|
|||
unlink (buf->filename);
|
||||
}
|
||||
else
|
||||
warning ("Error in temp buf disk swapping: information swapped to disk was lost!");
|
||||
g_message ("Error in temp buf disk swapping: information swapped to disk was lost!");
|
||||
|
||||
if (buf->filename)
|
||||
g_free (buf->filename); /* free filename */
|
||||
|
|
|
@ -293,8 +293,7 @@ text_button_press (Tool *tool,
|
|||
text_get_fonts ();
|
||||
if (nfonts == 0)
|
||||
{
|
||||
message_box ("Note: No fonts found. Text tool not available.",
|
||||
NULL, NULL);
|
||||
g_message ("Note: No fonts found. Text tool not available.");
|
||||
nfonts = -1;
|
||||
return;
|
||||
}
|
||||
|
@ -1599,11 +1598,9 @@ text_load_font (TextTool *text_tool)
|
|||
|
||||
if (gdk_error_code == -1)
|
||||
{
|
||||
char *buf;
|
||||
buf = g_malloc (strlen (family_str) + 87);
|
||||
sprintf(buf, "I'm sorry, but the font %s is corrupt.\nPlease ask the system adminstrator to replace it.", family_str);
|
||||
message_box (buf, NULL, NULL);
|
||||
g_free (buf);
|
||||
g_message ("I'm sorry, but the font %s is corrupt.\n"
|
||||
"Please ask the system adminstrator to replace it.",
|
||||
family_str);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -1923,7 +1920,7 @@ text_render (GImage *gimage,
|
|||
{
|
||||
if (newmask)
|
||||
{
|
||||
warning("text_render: could not allocate image");
|
||||
g_message ("text_render: could not allocate image");
|
||||
tile_manager_destroy (newmask);
|
||||
}
|
||||
layer = NULL;
|
||||
|
|
|
@ -343,7 +343,7 @@ threshold_initialize (void *gdisp_ptr)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Threshold does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Threshold does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1133,7 +1133,7 @@ bezier_convert (BezierSelect *bezier_sel,
|
|||
x = (long) list->data;
|
||||
list = list->next;
|
||||
if (!list)
|
||||
warning ("cannot properly scanline convert bezier curve: %d", i);
|
||||
g_message ("cannot properly scanline convert bezier curve: %d", i);
|
||||
else
|
||||
{
|
||||
/* bounds checking */
|
||||
|
|
|
@ -550,7 +550,7 @@ blend_button_press (Tool *tool,
|
|||
switch (drawable_type (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
case INDEXED_GIMAGE: case INDEXEDA_GIMAGE:
|
||||
message_box ("Blend: Invalid for indexed images.", NULL, NULL);
|
||||
g_message ("Blend: Invalid for indexed images.");
|
||||
return;
|
||||
|
||||
break;
|
||||
|
@ -622,7 +622,7 @@ blend_button_release (Tool *tool,
|
|||
if (return_vals[0].value.pdb_int == PDB_SUCCESS)
|
||||
gdisplays_flush ();
|
||||
else
|
||||
message_box ("Blend operation failed.", NULL, NULL);
|
||||
g_message ("Blend operation failed.");
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
|
|
@ -286,7 +286,7 @@ brightness_contrast_initialize (void *gdisp_ptr)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Brightness-Contrast does not operate on indexed drawables.", NULL, NULL);
|
||||
g_message ("Brightness-Contrast does not operate on indexed drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -327,7 +327,7 @@ bucket_fill_button_release (tool, bevent, gdisp_ptr)
|
|||
if (return_vals[0].value.pdb_int == PDB_SUCCESS)
|
||||
gdisplays_flush ();
|
||||
else
|
||||
message_box ("Bucket Fill operation failed.", NULL, NULL);
|
||||
g_message ("Bucket Fill operation failed.");
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
@ -424,7 +424,7 @@ bucket_fill (gimage, drawable, fill_mode, paint_mode,
|
|||
|
||||
if (!pattern)
|
||||
{
|
||||
message_box ("No available patterns for this operation.", NULL, NULL);
|
||||
g_message ("No available patterns for this operation.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||
|
||||
if (clone_options->type == PatternClone)
|
||||
if (!get_active_pattern ())
|
||||
message_box ("No patterns available for this operation.", NULL, NULL);
|
||||
g_message ("No patterns available for this operation.");
|
||||
break;
|
||||
|
||||
case FINISH_PAINT :
|
||||
|
|
|
@ -320,7 +320,7 @@ color_balance_initialize (void *gdisp_ptr)
|
|||
|
||||
if (! drawable_color (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Color balance operates only on RGB color drawables.", NULL, NULL);
|
||||
g_message ("Color balance operates only on RGB color drawables.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ curves_initialize (void *gdisp_ptr)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
message_box ("Curves for indexed drawables cannot be adjusted.", NULL, NULL);
|
||||
g_message ("Curves for indexed drawables cannot be adjusted.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue