Commit f1d89048 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

removed an incomplete and unused function.

2005-06-24  Sven Neumann  <sven@gimp.org>

	* app/core/gimppdbprogress.[ch]: removed an incomplete and unused
	function.
parent dd44b9b9
2005-06-24 Sven Neumann <sven@gimp.org>
* app/core/gimppdbprogress.[ch]: removed an incomplete and unused
function.
2005-06-24 Sven Neumann <sven@gimp.org>
* app/pdb/procedural_db.c (procedural_db_execute): if we end up
......
......@@ -239,7 +239,7 @@ gimp_pdb_progress_run_callback (GimpPdbProgress *progress,
const gchar *text,
gdouble value)
{
if (! progress->callback_busy)
if (progress->callback_name && ! progress->callback_busy)
{
Argument *return_vals;
gint n_return_vals;
......@@ -256,8 +256,7 @@ gimp_pdb_progress_run_callback (GimpPdbProgress *progress,
GIMP_PDB_FLOAT, value,
GIMP_PDB_END);
if (! return_vals ||
return_vals[0].value.pdb_int != GIMP_PDB_SUCCESS)
if (! return_vals || return_vals[0].value.pdb_int != GIMP_PDB_SUCCESS)
{
g_message (_("Unable to run %s callback. "
"The corresponding plug-in may have crashed."),
......@@ -378,34 +377,9 @@ gimp_pdb_progress_get_by_callback (GimpPdbProgressClass *klass,
GimpPdbProgress *progress = list->data;
if (progress->callback_name &&
! strcmp (callback_name, progress->callback_name))
strcmp (callback_name, progress->callback_name) == 0)
return progress;
}
return NULL;
}
void
gimp_pdb_progresss_check_callback (GimpPdbProgressClass *klass)
{
GList *list;
g_return_if_fail (GIMP_IS_PDB_PROGRESS_CLASS (klass));
list = klass->progresses;
while (list)
{
GimpPdbProgress *progress = list->data;
list = g_list_next (list);
if (progress->callback_name)
{
if (! procedural_db_lookup (progress->context->gimp,
progress->callback_name))
{
}
}
}
}
......@@ -59,7 +59,6 @@ GType gimp_pdb_progress_get_type (void) G_GNUC_CONST;
GimpPdbProgress * gimp_pdb_progress_get_by_callback (GimpPdbProgressClass *klass,
const gchar *callback_name);
void gimp_pdb_progresss_check_callback (GimpPdbProgressClass *klass);
G_END_DECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment