Commit 4467e1cd authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

let the private wire methods live in the GIMP namespace. Declare internal

2005-12-13  Sven Neumann  <sven@gimp.org>

        * libgimpbase/gimpwire.[ch]: let the private wire methods live in
        the GIMP namespace. Declare internal functions as such and prefix
        them with an underscore.

        * libgimp/gimp.c
        * libgimp/gimptile.c
        * libgimpbase/gimpbase.def
        * libgimpbase/gimpprotocol.c
        * app/plug-in/plug-in-message.[ch]
        * app/plug-in/plug-in-run.c
        * app/plug-in/plug-in.c: changed accordingly.
parent 8b8c784a
2005-12-13 Sven Neumann <sven@gimp.org>
* libgimpbase/gimpwire.[ch]: let the private wire methods live in
the GIMP namespace. Declare internal functions as such and prefix
them with an underscore.
* libgimp/gimp.c
* libgimp/gimptile.c
* libgimpbase/gimpbase.def
* libgimpbase/gimpprotocol.c
* app/plug-in/plug-in-message.[ch]
* app/plug-in/plug-in-run.c
* app/plug-in/plug-in.c: changed accordingly.
2005-12-13 Michael Natterer <mitch@gimp.org>
* app/tools/*.c: port to G_DEFINE_TYPE() and friends. Some related
......
......@@ -83,8 +83,8 @@ static GSList *blocked_plug_ins = NULL;
/* public functions */
void
plug_in_handle_message (PlugIn *plug_in,
WireMessage *msg)
plug_in_handle_message (PlugIn *plug_in,
GimpWireMessage *msg)
{
switch (msg->type)
{
......@@ -171,13 +171,13 @@ static void
plug_in_handle_tile_req (PlugIn *plug_in,
GPTileReq *tile_req)
{
GPTileData tile_data;
GPTileData *tile_info;
WireMessage msg;
GimpDrawable *drawable;
TileManager *tm;
Tile *tile;
gint shm_ID;
GPTileData tile_data;
GPTileData *tile_info;
GimpWireMessage msg;
GimpDrawable *drawable;
TileManager *tm;
Tile *tile;
gint shm_ID;
shm_ID = plug_in_shm_get_ID (plug_in->gimp);
......@@ -201,7 +201,7 @@ plug_in_handle_tile_req (PlugIn *plug_in,
return;
}
if (! wire_read_msg (plug_in->my_read, &msg, plug_in))
if (! gimp_wire_read_msg (plug_in->my_read, &msg, plug_in))
{
g_warning ("plug_in_handle_tile_req: ERROR");
plug_in_close (plug_in, TRUE);
......@@ -257,8 +257,8 @@ plug_in_handle_tile_req (PlugIn *plug_in,
tile_size (tile));
tile_release (tile, TRUE);
gimp_wire_destroy (&msg);
wire_destroy (&msg);
if (! gp_tile_ack_write (plug_in->my_write, plug_in))
{
g_warning ("plug_in_handle_tile_req: ERROR");
......@@ -324,7 +324,7 @@ plug_in_handle_tile_req (PlugIn *plug_in,
tile_release (tile, FALSE);
if (! wire_read_msg (plug_in->my_read, &msg, plug_in))
if (! gimp_wire_read_msg (plug_in->my_read, &msg, plug_in))
{
g_message ("plug_in_handle_tile_req: ERROR");
plug_in_close (plug_in, TRUE);
......@@ -338,7 +338,7 @@ plug_in_handle_tile_req (PlugIn *plug_in,
return;
}
wire_destroy (&msg);
gimp_wire_destroy (&msg);
}
}
......
......@@ -22,8 +22,8 @@
#define __PLUG_IN_MESSAGE_H__
void plug_in_handle_message (PlugIn *plug_in,
WireMessage *msg);
void plug_in_handle_message (PlugIn *plug_in,
GimpWireMessage *msg);
#endif /* __PLUG_IN_MESSAGE_H__ */
......@@ -115,8 +115,9 @@ plug_in_init (Gimp *gimp)
* write handlers.
*/
gp_init ();
wire_set_writer (plug_in_write);
wire_set_flusher (plug_in_flush);
gimp_wire_set_writer (plug_in_write);
gimp_wire_set_flusher (plug_in_flush);
/* allocate a piece of shared memory for use in transporting tiles
* to plug-ins. if we can't allocate a piece of shared memory then
......@@ -179,16 +180,16 @@ plug_in_call_query (Gimp *gimp,
{
while (plug_in->open)
{
WireMessage msg;
GimpWireMessage msg;
if (! wire_read_msg (plug_in->my_read, &msg, plug_in))
if (! gimp_wire_read_msg (plug_in->my_read, &msg, plug_in))
{
plug_in_close (plug_in, TRUE);
}
else
{
plug_in_handle_message (plug_in, &msg);
wire_destroy (&msg);
gimp_wire_destroy (&msg);
}
}
}
......@@ -220,16 +221,16 @@ plug_in_call_init (Gimp *gimp,
{
while (plug_in->open)
{
WireMessage msg;
GimpWireMessage msg;
if (! wire_read_msg (plug_in->my_read, &msg, plug_in))
if (! gimp_wire_read_msg (plug_in->my_read, &msg, plug_in))
{
plug_in_close (plug_in, TRUE);
}
else
{
plug_in_handle_message (plug_in, &msg);
wire_destroy (&msg);
gimp_wire_destroy (&msg);
}
}
}
......@@ -679,7 +680,7 @@ plug_in_close (PlugIn *plug_in,
plug_in->his_write = NULL;
}
wire_clear_error ();
gimp_wire_clear_error ();
for (list = plug_in->temp_proc_frames; list; list = g_list_next (list))
{
......@@ -747,11 +748,9 @@ plug_in_recv_message (GIOChannel *channel,
GIOCondition cond,
gpointer data)
{
PlugIn *plug_in;
PlugIn *plug_in = data;
gboolean got_message = FALSE;
plug_in = (PlugIn *) data;
#ifdef G_OS_WIN32
/* Workaround for GLib bug #137968: sometimes we are called for no
* reason...
......@@ -765,18 +764,18 @@ plug_in_recv_message (GIOChannel *channel,
if (cond & (G_IO_IN | G_IO_PRI))
{
WireMessage msg;
GimpWireMessage msg;
memset (&msg, 0, sizeof (WireMessage));
memset (&msg, 0, sizeof (GimpWireMessage));
if (! wire_read_msg (plug_in->my_read, &msg, plug_in))
if (! gimp_wire_read_msg (plug_in->my_read, &msg, plug_in))
{
plug_in_close (plug_in, TRUE);
}
else
{
plug_in_handle_message (plug_in, &msg);
wire_destroy (&msg);
gimp_wire_destroy (&msg);
got_message = TRUE;
}
}
......@@ -805,15 +804,13 @@ plug_in_recv_message (GIOChannel *channel,
static gboolean
plug_in_write (GIOChannel *channel,
guint8 *buf,
gulong count,
gpointer user_data)
guint8 *buf,
gulong count,
gpointer user_data)
{
PlugIn *plug_in;
PlugIn *plug_in = user_data;
gulong bytes;
plug_in = (PlugIn *) user_data;
while (count > 0)
{
if ((plug_in->write_buffer_index + count) >= WRITE_BUFFER_SIZE)
......@@ -822,7 +819,7 @@ plug_in_write (GIOChannel *channel,
memcpy (&plug_in->write_buffer[plug_in->write_buffer_index],
buf, bytes);
plug_in->write_buffer_index += bytes;
if (! wire_flush (channel, plug_in))
if (! gimp_wire_flush (channel, plug_in))
return FALSE;
}
else
......@@ -844,9 +841,7 @@ static gboolean
plug_in_flush (GIOChannel *channel,
gpointer user_data)
{
PlugIn *plug_in;
plug_in = (PlugIn *) user_data;
PlugIn *plug_in = user_data;
if (plug_in->write_buffer_index > 0)
{
......
......@@ -133,7 +133,7 @@ plug_in_run (Gimp *gimp,
if (! gp_config_write (plug_in->my_write, &config, plug_in) ||
! gp_proc_run_write (plug_in->my_write, &proc_run, plug_in) ||
! wire_flush (plug_in->my_write, plug_in))
! gimp_wire_flush (plug_in->my_write, plug_in))
{
return_vals = procedural_db_return_args (proc_rec, FALSE);
......@@ -261,7 +261,7 @@ plug_in_temp_run (ProcRecord *proc_rec,
proc_run.params = plug_in_args_to_params (args, argc, FALSE);
if (! gp_temp_proc_run_write (plug_in->my_write, &proc_run, plug_in) ||
! wire_flush (plug_in->my_write, plug_in))
! gimp_wire_flush (plug_in->my_write, plug_in))
{
return_vals = procedural_db_return_args (proc_rec, FALSE);
......
......@@ -133,7 +133,7 @@ plug_in_run (Gimp *gimp,
if (! gp_config_write (plug_in->my_write, &config, plug_in) ||
! gp_proc_run_write (plug_in->my_write, &proc_run, plug_in) ||
! wire_flush (plug_in->my_write, plug_in))
! gimp_wire_flush (plug_in->my_write, plug_in))
{
return_vals = procedural_db_return_args (proc_rec, FALSE);
......@@ -261,7 +261,7 @@ plug_in_temp_run (ProcRecord *proc_rec,
proc_run.params = plug_in_args_to_params (args, argc, FALSE);
if (! gp_temp_proc_run_write (plug_in->my_write, &proc_run, plug_in) ||
! wire_flush (plug_in->my_write, plug_in))
! gimp_wire_flush (plug_in->my_write, plug_in))
{
return_vals = procedural_db_return_args (proc_rec, FALSE);
......
......@@ -83,8 +83,8 @@ static GSList *blocked_plug_ins = NULL;
/* public functions */
void
plug_in_handle_message (PlugIn *plug_in,
WireMessage *msg)
plug_in_handle_message (PlugIn *plug_in,
GimpWireMessage *msg)
{
switch (msg->type)
{
......@@ -171,13 +171,13 @@ static void
plug_in_handle_tile_req (PlugIn *plug_in,
GPTileReq *tile_req)
{
GPTileData tile_data;
GPTileData *tile_info;
WireMessage msg;
GimpDrawable *drawable;
TileManager *tm;
Tile *tile;
gint shm_ID;
GPTileData tile_data;
GPTileData *tile_info;
GimpWireMessage msg;
GimpDrawable *drawable;
TileManager *tm;
Tile *tile;
gint shm_ID;
shm_ID = plug_in_shm_get_ID (plug_in->gimp);
......@@ -201,7 +201,7 @@ plug_in_handle_tile_req (PlugIn *plug_in,
return;
}
if (! wire_read_msg (plug_in->my_read, &msg, plug_in))
if (! gimp_wire_read_msg (plug_in->my_read, &msg, plug_in))
{
g_warning ("plug_in_handle_tile_req: ERROR");
plug_in_close (plug_in, TRUE);
......@@ -257,8 +257,8 @@ plug_in_handle_tile_req (PlugIn *plug_in,
tile_size (tile));
tile_release (tile, TRUE);
gimp_wire_destroy (&msg);
wire_destroy (&msg);
if (! gp_tile_ack_write (plug_in->my_write, plug_in))
{
g_warning ("plug_in_handle_tile_req: ERROR");
......@@ -324,7 +324,7 @@ plug_in_handle_tile_req (PlugIn *plug_in,
tile_release (tile, FALSE);
if (! wire_read_msg (plug_in->my_read, &msg, plug_in))
if (! gimp_wire_read_msg (plug_in->my_read, &msg, plug_in))
{
g_message ("plug_in_handle_tile_req: ERROR");
plug_in_close (plug_in, TRUE);
......@@ -338,7 +338,7 @@ plug_in_handle_tile_req (PlugIn *plug_in,
return;
}
wire_destroy (&msg);
gimp_wire_destroy (&msg);
}
}
......
......@@ -22,8 +22,8 @@
#define __PLUG_IN_MESSAGE_H__
void plug_in_handle_message (PlugIn *plug_in,
WireMessage *msg);
void plug_in_handle_message (PlugIn *plug_in,
GimpWireMessage *msg);
#endif /* __PLUG_IN_MESSAGE_H__ */
......@@ -133,7 +133,7 @@ plug_in_run (Gimp *gimp,
if (! gp_config_write (plug_in->my_write, &config, plug_in) ||
! gp_proc_run_write (plug_in->my_write, &proc_run, plug_in) ||
! wire_flush (plug_in->my_write, plug_in))
! gimp_wire_flush (plug_in->my_write, plug_in))
{
return_vals = procedural_db_return_args (proc_rec, FALSE);
......@@ -261,7 +261,7 @@ plug_in_temp_run (ProcRecord *proc_rec,
proc_run.params = plug_in_args_to_params (args, argc, FALSE);
if (! gp_temp_proc_run_write (plug_in->my_write, &proc_run, plug_in) ||
! wire_flush (plug_in->my_write, plug_in))
! gimp_wire_flush (plug_in->my_write, plug_in))
{
return_vals = procedural_db_return_args (proc_rec, FALSE);
......
......@@ -115,8 +115,9 @@ plug_in_init (Gimp *gimp)
* write handlers.
*/
gp_init ();
wire_set_writer (plug_in_write);
wire_set_flusher (plug_in_flush);
gimp_wire_set_writer (plug_in_write);
gimp_wire_set_flusher (plug_in_flush);
/* allocate a piece of shared memory for use in transporting tiles
* to plug-ins. if we can't allocate a piece of shared memory then
......@@ -179,16 +180,16 @@ plug_in_call_query (Gimp *gimp,
{
while (plug_in->open)
{
WireMessage msg;
GimpWireMessage msg;
if (! wire_read_msg (plug_in->my_read, &msg, plug_in))
if (! gimp_wire_read_msg (plug_in->my_read, &msg, plug_in))
{
plug_in_close (plug_in, TRUE);
}
else
{
plug_in_handle_message (plug_in, &msg);
wire_destroy (&msg);
gimp_wire_destroy (&msg);
}
}
}
......@@ -220,16 +221,16 @@ plug_in_call_init (Gimp *gimp,
{
while (plug_in->open)
{
WireMessage msg;
GimpWireMessage msg;
if (! wire_read_msg (plug_in->my_read, &msg, plug_in))
if (! gimp_wire_read_msg (plug_in->my_read, &msg, plug_in))
{
plug_in_close (plug_in, TRUE);
}
else
{
plug_in_handle_message (plug_in, &msg);
wire_destroy (&msg);
gimp_wire_destroy (&msg);
}
}
}
......@@ -679,7 +680,7 @@ plug_in_close (PlugIn *plug_in,
plug_in->his_write = NULL;
}
wire_clear_error ();
gimp_wire_clear_error ();
for (list = plug_in->temp_proc_frames; list; list = g_list_next (list))
{
......@@ -747,11 +748,9 @@ plug_in_recv_message (GIOChannel *channel,
GIOCondition cond,
gpointer data)
{
PlugIn *plug_in;
PlugIn *plug_in = data;
gboolean got_message = FALSE;
plug_in = (PlugIn *) data;
#ifdef G_OS_WIN32
/* Workaround for GLib bug #137968: sometimes we are called for no
* reason...
......@@ -765,18 +764,18 @@ plug_in_recv_message (GIOChannel *channel,
if (cond & (G_IO_IN | G_IO_PRI))
{
WireMessage msg;
GimpWireMessage msg;
memset (&msg, 0, sizeof (WireMessage));
memset (&msg, 0, sizeof (GimpWireMessage));
if (! wire_read_msg (plug_in->my_read, &msg, plug_in))
if (! gimp_wire_read_msg (plug_in->my_read, &msg, plug_in))
{
plug_in_close (plug_in, TRUE);
}
else
{
plug_in_handle_message (plug_in, &msg);
wire_destroy (&msg);
gimp_wire_destroy (&msg);
got_message = TRUE;
}
}
......@@ -805,15 +804,13 @@ plug_in_recv_message (GIOChannel *channel,
static gboolean
plug_in_write (GIOChannel *channel,
guint8 *buf,
gulong count,
gpointer user_data)
guint8 *buf,
gulong count,
gpointer user_data)
{
PlugIn *plug_in;
PlugIn *plug_in = user_data;
gulong bytes;
plug_in = (PlugIn *) user_data;
while (count > 0)
{
if ((plug_in->write_buffer_index + count) >= WRITE_BUFFER_SIZE)
......@@ -822,7 +819,7 @@ plug_in_write (GIOChannel *channel,
memcpy (&plug_in->write_buffer[plug_in->write_buffer_index],
buf, bytes);
plug_in->write_buffer_index += bytes;
if (! wire_flush (channel, plug_in))
if (! gimp_wire_flush (channel, plug_in))
return FALSE;
}
else
......@@ -844,9 +841,7 @@ static gboolean
plug_in_flush (GIOChannel *channel,
gpointer user_data)
{
PlugIn *plug_in;
plug_in = (PlugIn *) user_data;
PlugIn *plug_in = user_data;
if (plug_in->write_buffer_index > 0)
{
......
......@@ -125,8 +125,8 @@ typedef enum
#define WRITE_BUFFER_SIZE 1024
void gimp_read_expect_msg (WireMessage *msg,
gint type);
void gimp_read_expect_msg (GimpWireMessage *msg,
gint type);
static void gimp_close (void);
......@@ -138,24 +138,24 @@ static void gimp_message_func (const gchar *log_domain,
#ifndef G_OS_WIN32
static void gimp_plugin_sigfatal_handler (gint sig_num);
#endif
static gboolean gimp_plugin_io_error_handler (GIOChannel *channel,
GIOCondition cond,
gpointer data);
static gboolean gimp_write (GIOChannel *channel,
guint8 *buf,
gulong count,
gpointer user_data);
static gboolean gimp_flush (GIOChannel *channel,
gpointer user_data);
static gboolean gimp_plugin_io_error_handler (GIOChannel *channel,
GIOCondition cond,
gpointer data);
static gboolean gimp_write (GIOChannel *channel,
guint8 *buf,
gulong count,
gpointer user_data);
static gboolean gimp_flush (GIOChannel *channel,
gpointer user_data);
static void gimp_loop (void);
static void gimp_config (GPConfig *config);
static void gimp_proc_run (GPProcRun *proc_run);
static void gimp_temp_proc_run (GPProcRun *proc_run);
static void gimp_process_message (WireMessage *msg);
static void gimp_config (GPConfig *config);
static void gimp_proc_run (GPProcRun *proc_run);
static void gimp_temp_proc_run (GPProcRun *proc_run);
static void gimp_process_message (GimpWireMessage *msg);
static void gimp_single_message (void);
static gboolean gimp_extension_read (GIOChannel *channel,
GIOCondition condition,
gpointer data);
static gboolean gimp_extension_read (GIOChannel *channel,
GIOCondition condition,
gpointer data);
static GIOChannel *_readchannel = NULL;
......@@ -359,8 +359,9 @@ gimp_main (const GimpPlugInInfo *info,
g_io_channel_set_close_on_unref (_writechannel, TRUE);
gp_init ();
wire_set_writer (gimp_write);
wire_set_flusher (gimp_flush);
gimp_wire_set_writer (gimp_write);
gimp_wire_set_flusher (gimp_flush);
g_type_init ();
gimp_enums_init ();
......@@ -885,12 +886,12 @@ gimp_run_procedure (const gchar *name,
}
void
gimp_read_expect_msg (WireMessage *msg,
gint type)
gimp_read_expect_msg (GimpWireMessage *msg,
gint type)
{
while (TRUE)
{
if (! wire_read_msg (_readchannel, msg, NULL))
if (! gimp_wire_read_msg (_readchannel, msg, NULL))
gimp_quit ();
if (msg->type == type)
......@@ -905,7 +906,7 @@ gimp_read_expect_msg (WireMessage *msg,
g_error ("unexpected message: %d", msg->type);
}
wire_destroy (msg);
gimp_wire_destroy (msg);
}
}
......@@ -932,10 +933,10 @@ gimp_run_procedure2 (const gchar *name,
gint n_params,
const GimpParam *params)
{
GPProcRun proc_run;
GPProcReturn *proc_return;
WireMessage msg;
GimpParam *return_vals;
GPProcRun proc_run;
GPProcReturn *proc_return;
GimpWireMessage msg;
GimpParam *return_vals;
g_return_val_if_fail (name != NULL, NULL);
g_return_val_if_fail (n_return_vals != NULL, NULL);
......@@ -985,9 +986,9 @@ void
gimp_destroy_params (GimpParam *params,
gint n_params)
{
extern void _gp_params_destroy (GPParam *params, gint n_params);
extern void gp_params_destroy (GPParam *params, gint n_params);
_gp_params_destroy ((GPParam*) params, n_params);
gp_params_destroy ((GPParam *) params, n_params);
}
/**
......@@ -1535,7 +1536,7 @@ gimp_write (GIOChannel *channel,
bytes = WRITE_BUFFER_SIZE - write_buffer_index;
memcpy (&write_buffer[write_buffer_index], buf, bytes);
write_buffer_index += bytes;
if (! wire_flush (channel, NULL))
if (! gimp_wire_flush (channel, NULL))
return FALSE;
}
else
......@@ -1605,11 +1606,11 @@ gimp_flush (GIOChannel *channel,
static void
gimp_loop (void)
{
WireMessage msg;
GimpWireMessage msg;
while (TRUE)
{
if (! wire_read_msg (_readchannel, &msg, NULL))
if (! gimp_wire_read_msg (_readchannel, &msg, NULL))
{
gimp_close ();
return;
......@@ -1618,7 +1619,7 @@ gimp_loop (void)
switch (msg.type)
{
case GP_QUIT:
wire_destroy (&msg);
gimp_wire_destroy (&msg);
gimp_close ();
return;
......@@ -1634,7 +1635,7 @@ gimp_loop (void)
case GP_PROC_RUN:
gimp_proc_run (msg.data);
wire_destroy (&msg);
gimp_wire_destroy (&msg);
gimp_close ();
return;
......@@ -1659,7 +1660,7 @@ gimp_loop (void)
break;
}
wire_destroy (&msg);
gimp_wire_destroy (&msg);
}
}
......@@ -1798,7 +1799,7 @@ gimp_proc_run (GPProcRun *proc_run)
(* PLUG_IN_INFO.run_proc) (proc_run->name,
proc_run->nparams,
(GimpParam*) proc_run->params,
(GimpParam *) proc_run->params,
&n_return_vals,
&return_vals);
......@@ -1842,7 +1843,7 @@ gimp_temp_proc_run (GPProcRun *proc_run)
}
static void
gimp_process_message (WireMessage *msg)
gimp_process_message (GimpWireMessage *msg)
{
switch (msg->type)
{
......@@ -1881,15 +1882,15 @@ gimp_process_message (WireMessage *msg)
static void
gimp_single_message (void)
{
WireMessage msg;
GimpWireMessage msg;
/* Run a temp function */
if (! wire_read_msg (_readchannel, &msg, NULL))
if (! gimp_wire_read_msg (_readchannel, &msg, NULL))
gimp_quit ();
gimp_process_message (&msg);
wire_destroy (&msg);
gimp_wire_destroy (&msg);
}
static gboolean
......
......@@ -39,13 +39,13 @@
#define FREE_QUANTUM 0.1
void gimp_read_expect_msg (WireMessage *msg,
gint type);
void gimp_read_expect_msg (GimpWireMessage *msg,
gint type);
static void gimp_tile_get (GimpTile *tile);
static void gimp_tile_put (GimpTile *tile);
static void gimp_tile_cache_insert (GimpTile *tile);
static void gimp_tile_cache_flush (GimpTile *tile);
static void gimp_tile_get (GimpTile *tile);
static void gimp_tile_put (GimpTile *tile);
static void gimp_tile_cache_insert (GimpTile *tile);
static void gimp_tile_cache_flush (GimpTile *tile);
/* private variables */
......@@ -182,9 +182,9 @@ gimp_tile_get (GimpTile *tile)
{
extern GIOChannel *_writechannel;
GPTileReq tile_req;
GPTileData *tile_data;
WireMessage msg;
GPTileReq tile_req;
GPTileData *tile_data;
GimpWireMessage msg;
tile_req.drawable_ID = tile->drawable->drawable_id;
tile_req.tile_num = tile->tile_num;
......@@ -221,7 +221,7 @@ gimp_tile_get (GimpTile *tile)
if (! gp_tile_ack_write (_writechannel, NULL))
gimp_quit ();
wire_destroy (&msg);
gimp_wire_destroy (&msg);
}
static void
......@@ -229,10 +229,10 @@ gimp_tile_put (GimpTile *tile)
{
extern GIOChannel *_writechannel;
GPTileReq tile_req;
GPTileData tile_data;
GPTileData *tile_info;
WireMessage msg;
GPTileReq tile_req;
GPTileData tile_data;
GPTileData *tile_info;
GimpWireMessage msg;
tile_req.drawable_ID = -1;
tile_req.tile_num = 0;
......@@ -264,10 +264,10 @@ gimp_tile_put (GimpTile *tile)
if (! gp_tile_data_write (_writechannel, &tile_data, NULL))
gimp_quit ();