mirror of https://github.com/GNOME/gimp.git
app/config/gimpconfig-deserialize.c app/config/gimpscanner.c
2004-05-12 Michael Natterer <mitch@gimp.org> * app/config/gimpconfig-deserialize.c * app/config/gimpscanner.c * app/core/gimp-edit.c * app/core/gimpchannel-combine.c * app/core/gimpcontainer.c * app/core/gimpdrawable-bucket-fill.c * app/core/gimpdrawable-combine.c * app/core/gimpdrawable.c * app/core/gimpgradient.c * app/core/gimpimage-flip.c * app/core/gimpimage-merge.c * app/core/gimpimage-projection.c * app/core/gimpimage.c * app/display/gimpdisplay-handlers.c * app/display/gimpdisplayshell-callbacks.c * app/display/gimpprogress.c * app/gui/info-dialog.c * app/gui/module-browser.c * app/gui/offset-dialog.c * app/plug-in/plug-in.c * app/tools/gimpdrawtool.c * app/tools/tool_manager.c * app/widgets/gimpactiongroup.c * app/widgets/gimpdialogfactory.c * app/widgets/gimpgradienteditor.c * app/widgets/gimpitemfactory.c * app/widgets/gimppropwidgets.c * app/widgets/gimpwidgets-utils.c * app/xcf/xcf-save.c * libgimp/gimpexport.c * libgimpwidgets/gimphelpui.c * libgimpwidgets/gimppixmap.c * libgimpwidgets/gimpunitmenu.c: replaced G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC and hardcoded function names in g_warning()s by G_STRFUNC.
This commit is contained in:
parent
e6342de9fa
commit
de7a940501
38
ChangeLog
38
ChangeLog
|
@ -1,3 +1,41 @@
|
|||
2004-05-12 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/config/gimpconfig-deserialize.c
|
||||
* app/config/gimpscanner.c
|
||||
* app/core/gimp-edit.c
|
||||
* app/core/gimpchannel-combine.c
|
||||
* app/core/gimpcontainer.c
|
||||
* app/core/gimpdrawable-bucket-fill.c
|
||||
* app/core/gimpdrawable-combine.c
|
||||
* app/core/gimpdrawable.c
|
||||
* app/core/gimpgradient.c
|
||||
* app/core/gimpimage-flip.c
|
||||
* app/core/gimpimage-merge.c
|
||||
* app/core/gimpimage-projection.c
|
||||
* app/core/gimpimage.c
|
||||
* app/display/gimpdisplay-handlers.c
|
||||
* app/display/gimpdisplayshell-callbacks.c
|
||||
* app/display/gimpprogress.c
|
||||
* app/gui/info-dialog.c
|
||||
* app/gui/module-browser.c
|
||||
* app/gui/offset-dialog.c
|
||||
* app/plug-in/plug-in.c
|
||||
* app/tools/gimpdrawtool.c
|
||||
* app/tools/tool_manager.c
|
||||
* app/widgets/gimpactiongroup.c
|
||||
* app/widgets/gimpdialogfactory.c
|
||||
* app/widgets/gimpgradienteditor.c
|
||||
* app/widgets/gimpitemfactory.c
|
||||
* app/widgets/gimppropwidgets.c
|
||||
* app/widgets/gimpwidgets-utils.c
|
||||
* app/xcf/xcf-save.c
|
||||
* libgimp/gimpexport.c
|
||||
* libgimpwidgets/gimphelpui.c
|
||||
* libgimpwidgets/gimppixmap.c
|
||||
* libgimpwidgets/gimpunitmenu.c: replaced G_GNUC_FUNCTION,
|
||||
G_GNUC_PRETTY_FUNCTION, G_STRLOC and hardcoded function names in
|
||||
g_warning()s by G_STRFUNC.
|
||||
|
||||
2004-05-12 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/actions/gradients-actions.c
|
||||
|
|
|
@ -314,7 +314,8 @@ gimp_config_deserialize_property (GimpConfig *config,
|
|||
#ifdef CONFIG_DEBUG
|
||||
else
|
||||
{
|
||||
g_warning ("couldn't deserialize property %s::%s of type %s",
|
||||
g_warning ("%s: couldn't deserialize property %s::%s of type %s",
|
||||
G_STRFUNC,
|
||||
g_type_name (G_TYPE_FROM_INSTANCE (config)),
|
||||
prop_spec->name,
|
||||
g_type_name (prop_spec->value_type));
|
||||
|
@ -731,7 +732,7 @@ gimp_config_deserialize_any (GValue *value,
|
|||
if (!g_value_type_transformable (G_TYPE_STRING, prop_spec->value_type))
|
||||
{
|
||||
g_warning ("%s: %s can not be transformed from a string",
|
||||
G_STRLOC, g_type_name (prop_spec->value_type));
|
||||
G_STRFUNC, g_type_name (prop_spec->value_type));
|
||||
return G_TOKEN_NONE;
|
||||
}
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ gimp_scanner_destroy (GScanner *scanner)
|
|||
{
|
||||
if (close (data->fd))
|
||||
g_warning ("%s: could not close file descriptor: %s",
|
||||
G_GNUC_PRETTY_FUNCTION, g_strerror (errno));
|
||||
G_STRFUNC, g_strerror (errno));
|
||||
}
|
||||
|
||||
g_free (data->name);
|
||||
|
|
|
@ -300,7 +300,7 @@ gimp_edit_fill (GimpImage *gimage,
|
|||
return TRUE; /* nothing to do, but the fill succeded */
|
||||
|
||||
default:
|
||||
g_warning ("%s: unknown fill type", G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: unknown fill type", G_STRFUNC);
|
||||
fill_type = GIMP_BACKGROUND_FILL;
|
||||
undo_desc = _("Fill with BG Color");
|
||||
break;
|
||||
|
|
|
@ -489,7 +489,7 @@ gimp_channel_combine_mask (GimpChannel *mask,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_warning ("%s: unknown operation type\n", G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: unknown operation type", G_STRFUNC);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -564,8 +564,8 @@ gimp_container_add (GimpContainer *container,
|
|||
|
||||
if (gimp_container_have (container, object))
|
||||
{
|
||||
g_warning ("%s(): container %p already contains object %p",
|
||||
G_GNUC_FUNCTION, container, object);
|
||||
g_warning ("%s: container %p already contains object %p",
|
||||
G_STRFUNC, container, object);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -618,8 +618,8 @@ gimp_container_remove (GimpContainer *container,
|
|||
|
||||
if (! gimp_container_have (container, object))
|
||||
{
|
||||
g_warning ("%s(): container %p does not contain object %p",
|
||||
G_GNUC_FUNCTION, container, object);
|
||||
g_warning ("%s: container %p does not contain object %p",
|
||||
G_STRFUNC, container, object);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -675,8 +675,8 @@ gimp_container_insert (GimpContainer *container,
|
|||
|
||||
if (gimp_container_have (container, object))
|
||||
{
|
||||
g_warning ("%s(): container %p already contains object %p",
|
||||
G_GNUC_FUNCTION, container, object);
|
||||
g_warning ("%s: container %p already contains object %p",
|
||||
G_STRFUNC, container, object);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -704,8 +704,8 @@ gimp_container_reorder (GimpContainer *container,
|
|||
|
||||
if (! gimp_container_have (container, object))
|
||||
{
|
||||
g_warning ("%s(): container %p does not contain object %p",
|
||||
G_GNUC_FUNCTION, container, object);
|
||||
g_warning ("%s: container %p does not contain object %p",
|
||||
G_STRFUNC, container, object);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -900,7 +900,7 @@ gimp_container_add_handler (GimpContainer *container,
|
|||
handler->callback_data = callback_data;
|
||||
handler->quark = g_quark_from_string (key);
|
||||
|
||||
D (g_print ("%s: key = %s, id = %d\n", G_GNUC_FUNCTION, key, handler->quark));
|
||||
D (g_print ("%s: key = %s, id = %d\n", G_STRFUNC, key, handler->quark));
|
||||
|
||||
g_free (key);
|
||||
|
||||
|
@ -951,11 +951,11 @@ gimp_container_remove_handler (GimpContainer *container,
|
|||
if (! list)
|
||||
{
|
||||
g_warning ("%s: tried to remove handler which unknown id %d",
|
||||
G_STRLOC, id);
|
||||
G_STRFUNC, id);
|
||||
return;
|
||||
}
|
||||
|
||||
D (g_print ("%s: id = %d\n", G_GNUC_FUNCTION, handler->quark));
|
||||
D (g_print ("%s: id = %d\n", G_STRFUNC, handler->quark));
|
||||
|
||||
gimp_container_foreach (container,
|
||||
(GFunc) gimp_container_remove_handler_foreach_func,
|
||||
|
|
|
@ -89,7 +89,7 @@ gimp_drawable_bucket_fill (GimpDrawable *drawable,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_warning ("%s: invalid fill_mode passed", G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: invalid fill_mode passed", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -158,7 +158,7 @@ gimp_drawable_bucket_fill_full (GimpDrawable *drawable,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_warning ("%s: invalid fill_mode passed", G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: invalid fill_mode passed", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ gimp_drawable_real_apply_region (GimpDrawable *drawable,
|
|||
src2PR->bytes);
|
||||
if (operation == -1)
|
||||
{
|
||||
g_warning ("%s: illegal parameters.", G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: illegal parameters.", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -193,7 +193,7 @@ gimp_drawable_real_replace_region (GimpDrawable *drawable,
|
|||
src2PR->bytes);
|
||||
if (operation == -1)
|
||||
{
|
||||
g_warning ("%s: illegal parameters.", G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: illegal parameters.", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -982,7 +982,7 @@ gimp_drawable_push_undo (GimpDrawable *drawable,
|
|||
gimp_item_height (item),
|
||||
&x, &y, &width, &height))
|
||||
{
|
||||
g_warning ("gimp_drawable_push_undo: tried to push empty region");
|
||||
g_warning ("%s: tried to push empty region", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1138,7 +1138,7 @@ gimp_drawable_fill_by_type (GimpDrawable *drawable,
|
|||
return;
|
||||
|
||||
default:
|
||||
g_warning ("%s: unknown fill type %d", G_GNUC_PRETTY_FUNCTION, fill_type);
|
||||
g_warning ("%s: unknown fill type %d", G_STRFUNC, fill_type);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -709,7 +709,7 @@ gimp_gradient_get_color_at (GimpGradient *gradient,
|
|||
|
||||
default:
|
||||
g_warning ("%s: Unknown gradient type %d.",
|
||||
G_GNUC_PRETTY_FUNCTION, seg->type);
|
||||
G_STRFUNC, seg->type);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -768,8 +768,8 @@ gimp_gradient_get_color_at (GimpGradient *gradient,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_warning ("%s(): Unknown coloring mode %d",
|
||||
G_GNUC_PRETTY_FUNCTION, (gint) seg->color);
|
||||
g_warning ("%s: Unknown coloring mode %d",
|
||||
G_STRFUNC, (gint) seg->color);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -821,8 +821,8 @@ gimp_gradient_get_segment_at (GimpGradient *gradient,
|
|||
}
|
||||
|
||||
/* Oops: we should have found a segment, but we didn't */
|
||||
g_warning ("%s(): no matching segment for position %0.15f",
|
||||
G_GNUC_PRETTY_FUNCTION, pos);
|
||||
g_warning ("%s: no matching segment for position %0.15f",
|
||||
G_STRFUNC, pos);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ gimp_image_flip (GimpImage *gimage,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_warning ("gimp_image_flip(): unknown flip_type");
|
||||
g_warning ("%s: unknown flip_type", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -325,8 +325,7 @@ gimp_image_merge_layers (GimpImage *gimage,
|
|||
GIMP_OPACITY_OPAQUE, GIMP_NORMAL_MODE);
|
||||
if (!merge_layer)
|
||||
{
|
||||
g_warning ("%s: could not allocate merge layer.",
|
||||
G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: could not allocate merge layer.", G_STRFUNC);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -365,8 +364,7 @@ gimp_image_merge_layers (GimpImage *gimage,
|
|||
|
||||
if (!merge_layer)
|
||||
{
|
||||
g_warning ("%s: could not allocate merge layer",
|
||||
G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: could not allocate merge layer", G_STRFUNC);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -417,8 +415,7 @@ gimp_image_merge_layers (GimpImage *gimage,
|
|||
|
||||
if (operation == -1)
|
||||
{
|
||||
g_warning ("%s: attempting to merge incompatible layers.",
|
||||
G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: attempting to merge incompatible layers.", G_STRFUNC);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -726,7 +726,7 @@ project_indexed (GimpImage *gimage,
|
|||
gimage->visible,
|
||||
INITIAL_INDEXED);
|
||||
else
|
||||
g_warning ("%s: unable to project indexed image.", G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: unable to project indexed image.", G_STRFUNC);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -2097,8 +2097,7 @@ gimp_image_get_new_tattoo (GimpImage *gimage)
|
|||
gimage->tattoo_state++;
|
||||
|
||||
if (gimage->tattoo_state <= 0)
|
||||
g_warning ("%s: Tattoo state corrupted (integer overflow).",
|
||||
G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: Tattoo state corrupted (integer overflow).", G_STRFUNC);
|
||||
|
||||
return gimage->tattoo_state;
|
||||
}
|
||||
|
@ -2526,15 +2525,13 @@ gimp_image_add_layer (GimpImage *gimage,
|
|||
if (GIMP_ITEM (layer)->gimage != NULL &&
|
||||
GIMP_ITEM (layer)->gimage != gimage)
|
||||
{
|
||||
g_warning ("%s: attempting to add layer to wrong image.",
|
||||
G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: attempting to add layer to wrong image.", G_STRFUNC);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (gimp_container_have (gimage->layers, GIMP_OBJECT (layer)))
|
||||
{
|
||||
g_warning ("%s: trying to add layer to image twice.",
|
||||
G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: trying to add layer to image twice.", G_STRFUNC);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -2543,8 +2540,7 @@ gimp_image_add_layer (GimpImage *gimage,
|
|||
if (floating_sel && gimp_layer_is_floating_sel (layer))
|
||||
{
|
||||
g_warning ("%s: trying to add floating layer to image which alyready "
|
||||
"has a floating selection.",
|
||||
G_GNUC_PRETTY_FUNCTION);
|
||||
"has a floating selection.", G_STRFUNC);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -2855,15 +2851,13 @@ gimp_image_add_channel (GimpImage *gimage,
|
|||
if (GIMP_ITEM (channel)->gimage != NULL &&
|
||||
GIMP_ITEM (channel)->gimage != gimage)
|
||||
{
|
||||
g_warning ("%s: attempting to add channel to wrong image.",
|
||||
G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: attempting to add channel to wrong image.", G_STRFUNC);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (gimp_container_have (gimage->channels, GIMP_OBJECT (channel)))
|
||||
{
|
||||
g_warning ("%s: trying to add channel to image twice.",
|
||||
G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: trying to add channel to image twice.", G_STRFUNC);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -3095,15 +3089,13 @@ gimp_image_add_vectors (GimpImage *gimage,
|
|||
if (GIMP_ITEM (vectors)->gimage != NULL &&
|
||||
GIMP_ITEM (vectors)->gimage != gimage)
|
||||
{
|
||||
g_warning ("%s: attempting to add vectors to wrong image.",
|
||||
G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: attempting to add vectors to wrong image.", G_STRFUNC);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (gimp_container_have (gimage->vectors, GIMP_OBJECT (vectors)))
|
||||
{
|
||||
g_warning ("%s: trying to add vectors to image twice.",
|
||||
G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: trying to add vectors to image twice.", G_STRFUNC);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -726,7 +726,7 @@ project_indexed (GimpImage *gimage,
|
|||
gimage->visible,
|
||||
INITIAL_INDEXED);
|
||||
else
|
||||
g_warning ("%s: unable to project indexed image.", G_GNUC_PRETTY_FUNCTION);
|
||||
g_warning ("%s: unable to project indexed image.", G_STRFUNC);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -475,7 +475,7 @@ info_dialog_update_field (InfoField *field)
|
|||
break;
|
||||
|
||||
default:
|
||||
g_warning ("%s: Unknown info_dialog field type.", G_STRLOC);
|
||||
g_warning ("%s: Unknown info_dialog field type.", G_STRFUNC);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -296,7 +296,7 @@ browser_autoload_toggled (GtkCellRendererToggle *celltoggle,
|
|||
path = gtk_tree_path_new_from_string (path_string);
|
||||
if (! gtk_tree_model_get_iter (GTK_TREE_MODEL (browser->list), &iter, path))
|
||||
{
|
||||
g_warning ("%s: bad tree path?", G_STRLOC);
|
||||
g_warning ("%s: bad tree path?", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
gtk_tree_path_free (path);
|
||||
|
@ -393,7 +393,7 @@ browser_info_remove (GimpModuleDB *db,
|
|||
while (gtk_tree_model_iter_next (GTK_TREE_MODEL (browser->list), &iter));
|
||||
|
||||
g_warning ("%s: Tried to remove a module not in the browser's list.",
|
||||
G_STRLOC);
|
||||
G_STRFUNC);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -101,7 +101,7 @@ offset_dialog_new (GimpDrawable *drawable,
|
|||
else if (GIMP_IS_CHANNEL (drawable))
|
||||
title = _("Offset Channel");
|
||||
else
|
||||
g_warning ("%s: unexpected drawable type", G_STRLOC);
|
||||
g_warning ("%s: unexpected drawable type", G_STRFUNC);
|
||||
|
||||
off_d->dlg = gimp_viewable_dialog_new (GIMP_VIEWABLE (drawable),
|
||||
_("Offset"), "gimp-drawable-offset",
|
||||
|
|
|
@ -63,7 +63,7 @@ gimp_display_connect (GimpDisplay *gdisp,
|
|||
|
||||
#if 0
|
||||
g_print ("%s: gimage->ref_count before refing: %d\n",
|
||||
G_GNUC_FUNCTION, G_OBJECT (gdisp->gimage)->ref_count);
|
||||
G_STRFUNC, G_OBJECT (gdisp->gimage)->ref_count);
|
||||
#endif
|
||||
|
||||
g_object_ref (gimage);
|
||||
|
@ -101,7 +101,7 @@ gimp_display_disconnect (GimpDisplay *gdisp)
|
|||
|
||||
#if 0
|
||||
g_print ("%s: gimage->ref_count before unrefing: %d\n",
|
||||
G_GNUC_FUNCTION, G_OBJECT (gdisp->gimage)->ref_count);
|
||||
G_STRFUNC, G_OBJECT (gdisp->gimage)->ref_count);
|
||||
#endif
|
||||
|
||||
/* set gdisp->gimage to NULL before unrefing because there may be code
|
||||
|
|
|
@ -453,7 +453,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
|
|||
|
||||
if (! canvas->window)
|
||||
{
|
||||
g_warning ("%s: called unrealized", G_STRLOC);
|
||||
g_warning ("%s: called unrealized", G_STRFUNC);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -791,7 +791,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
|
|||
if (shell->space_release_pending)
|
||||
{
|
||||
#ifdef DEBUG_MOVE_PUSH
|
||||
g_printerr ("%s: popping move tool\n", G_GNUC_FUNCTION);
|
||||
g_printerr ("%s: popping move tool\n", G_STRFUNC);
|
||||
#endif
|
||||
|
||||
gimp_context_set_tool (gimp_get_user_context (gimp),
|
||||
|
@ -1103,7 +1103,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
|
|||
if (GIMP_IS_TOOL_INFO (move_tool_info))
|
||||
{
|
||||
#ifdef DEBUG_MOVE_PUSH
|
||||
g_printerr ("%s: pushing move tool\n", G_GNUC_FUNCTION);
|
||||
g_printerr ("%s: pushing move tool\n", G_STRFUNC);
|
||||
#endif
|
||||
|
||||
space_shaded_tool = active_tool->tool_info;
|
||||
|
@ -1190,7 +1190,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
|
|||
if (shell->space_pressed)
|
||||
{
|
||||
#ifdef DEBUG_MOVE_PUSH
|
||||
g_printerr ("%s: popping move tool\n", G_GNUC_FUNCTION);
|
||||
g_printerr ("%s: popping move tool\n", G_STRFUNC);
|
||||
#endif
|
||||
|
||||
gimp_context_set_tool (gimp_get_user_context (gimp),
|
||||
|
|
|
@ -119,9 +119,8 @@ gimp_progress_start (GimpDisplay *gdisp,
|
|||
*/
|
||||
if (GIMP_STATUSBAR (shell->statusbar)->progressid)
|
||||
{
|
||||
g_warning ("gimp_progress_start(): "
|
||||
"%d progress bars already active for display %p",
|
||||
GIMP_STATUSBAR (shell->statusbar)->progressid,
|
||||
g_warning ("%s: %d progress bars already active for display %p",
|
||||
G_STRFUNC, GIMP_STATUSBAR (shell->statusbar)->progressid,
|
||||
gdisp);
|
||||
}
|
||||
|
||||
|
|
|
@ -475,7 +475,7 @@ info_dialog_update_field (InfoField *field)
|
|||
break;
|
||||
|
||||
default:
|
||||
g_warning ("%s: Unknown info_dialog field type.", G_STRLOC);
|
||||
g_warning ("%s: Unknown info_dialog field type.", G_STRFUNC);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -296,7 +296,7 @@ browser_autoload_toggled (GtkCellRendererToggle *celltoggle,
|
|||
path = gtk_tree_path_new_from_string (path_string);
|
||||
if (! gtk_tree_model_get_iter (GTK_TREE_MODEL (browser->list), &iter, path))
|
||||
{
|
||||
g_warning ("%s: bad tree path?", G_STRLOC);
|
||||
g_warning ("%s: bad tree path?", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
gtk_tree_path_free (path);
|
||||
|
@ -393,7 +393,7 @@ browser_info_remove (GimpModuleDB *db,
|
|||
while (gtk_tree_model_iter_next (GTK_TREE_MODEL (browser->list), &iter));
|
||||
|
||||
g_warning ("%s: Tried to remove a module not in the browser's list.",
|
||||
G_STRLOC);
|
||||
G_STRFUNC);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -101,7 +101,7 @@ offset_dialog_new (GimpDrawable *drawable,
|
|||
else if (GIMP_IS_CHANNEL (drawable))
|
||||
title = _("Offset Channel");
|
||||
else
|
||||
g_warning ("%s: unexpected drawable type", G_STRLOC);
|
||||
g_warning ("%s: unexpected drawable type", G_STRFUNC);
|
||||
|
||||
off_d->dlg = gimp_viewable_dialog_new (GIMP_VIEWABLE (drawable),
|
||||
_("Offset"), "gimp-drawable-offset",
|
||||
|
|
|
@ -874,7 +874,7 @@ plug_in_main_loop_quit (PlugIn *plug_in)
|
|||
|
||||
if (! plug_in->temp_main_loops)
|
||||
{
|
||||
g_warning ("plug_in_main_loop_quit: called without a temp main loop running");
|
||||
g_warning ("%s: called without a temp main loop running", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -874,7 +874,7 @@ plug_in_main_loop_quit (PlugIn *plug_in)
|
|||
|
||||
if (! plug_in->temp_main_loops)
|
||||
{
|
||||
g_warning ("plug_in_main_loop_quit: called without a temp main loop running");
|
||||
g_warning ("%s: called without a temp main loop running", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -296,8 +296,7 @@ gimp_draw_tool_resume (GimpDrawTool *draw_tool)
|
|||
}
|
||||
else
|
||||
{
|
||||
g_warning ("gimp_draw_tool_resume(): "
|
||||
"called with draw_tool->paused_count == 0");
|
||||
g_warning ("%s: called with draw_tool->paused_count == 0", G_STRFUNC);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -742,7 +741,7 @@ gimp_draw_tool_draw_handle (GimpDrawTool *draw_tool,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_warning ("%s: invalid handle type %d", G_GNUC_PRETTY_FUNCTION, type);
|
||||
g_warning ("%s: invalid handle type %d", G_STRFUNC, type);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -807,7 +806,7 @@ gimp_draw_tool_on_handle (GimpDrawTool *draw_tool,
|
|||
return ((SQR (handle_tx - tx) + SQR (handle_ty - ty)) < SQR (width));
|
||||
|
||||
default:
|
||||
g_warning ("%s: invalid handle type %d", G_GNUC_PRETTY_FUNCTION, type);
|
||||
g_warning ("%s: invalid handle type %d", G_STRFUNC, type);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -495,8 +495,8 @@ tool_manager_tool_changed (GimpContext *user_context,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_warning ("%s(): tool_info->tool_type is no GimpTool subclass",
|
||||
G_GNUC_FUNCTION);
|
||||
g_warning ("%s: tool_info->tool_type is no GimpTool subclass",
|
||||
G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -574,7 +574,7 @@ gimp_action_group_set_action_visible (GimpActionGroup *group,
|
|||
{
|
||||
g_warning ("%s: Unable to set visibility of action "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, action_name);
|
||||
G_STRFUNC, action_name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -597,7 +597,7 @@ gimp_action_group_set_action_sensitive (GimpActionGroup *group,
|
|||
{
|
||||
g_warning ("%s: Unable to set sensitivity of action "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, action_name);
|
||||
G_STRFUNC, action_name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -620,7 +620,7 @@ gimp_action_group_set_action_active (GimpActionGroup *group,
|
|||
{
|
||||
g_warning ("%s: Unable to set \"active\" of action "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, action_name);
|
||||
G_STRFUNC, action_name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -628,7 +628,7 @@ gimp_action_group_set_action_active (GimpActionGroup *group,
|
|||
{
|
||||
g_warning ("%s: Unable to set \"active\" of action "
|
||||
"which is not a GtkToggleAction: %s",
|
||||
G_STRLOC, action_name);
|
||||
G_STRFUNC, action_name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -652,7 +652,7 @@ gimp_action_group_set_action_label (GimpActionGroup *group,
|
|||
{
|
||||
g_warning ("%s: Unable to set label of action "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, action_name);
|
||||
G_STRFUNC, action_name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -678,7 +678,7 @@ gimp_action_group_set_action_color (GimpActionGroup *group,
|
|||
{
|
||||
g_warning ("%s: Unable to set color of action "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, action_name);
|
||||
G_STRFUNC, action_name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -763,7 +763,7 @@ gimp_action_group_set_action_viewable (GimpActionGroup *group,
|
|||
{
|
||||
g_warning ("%s: Unable to set viewable of action "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, action_name);
|
||||
G_STRFUNC, action_name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -836,7 +836,7 @@ gimp_action_group_set_action_important (GimpActionGroup *group,
|
|||
{
|
||||
g_warning ("%s: Unable to set \"is-important\" of action "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, action_name);
|
||||
G_STRFUNC, action_name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -181,7 +181,7 @@ gimp_dialog_factory_dispose (GObject *object)
|
|||
if (! list)
|
||||
{
|
||||
g_warning ("%s: stale non-toplevel entries in factory->open_dialogs",
|
||||
G_GNUC_FUNCTION);
|
||||
G_STRFUNC);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -241,7 +241,7 @@ gimp_dialog_factory_new (const gchar *name,
|
|||
if (gimp_dialog_factory_from_name (name))
|
||||
{
|
||||
g_warning ("%s: dialog factory \"%s\" already exists",
|
||||
G_GNUC_FUNCTION, name);
|
||||
G_STRFUNC, name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -384,14 +384,14 @@ gimp_dialog_factory_dialog_new_internal (GimpDialogFactory *factory,
|
|||
if (! entry)
|
||||
{
|
||||
g_warning ("%s: no entry registered for \"%s\"",
|
||||
G_GNUC_FUNCTION, identifier);
|
||||
G_STRFUNC, identifier);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (! entry->new_func)
|
||||
{
|
||||
g_warning ("%s: entry for \"%s\" has no constructor",
|
||||
G_GNUC_FUNCTION, identifier);
|
||||
G_STRFUNC, identifier);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -472,7 +472,7 @@ gimp_dialog_factory_dialog_new_internal (GimpDialogFactory *factory,
|
|||
g_warning ("%s: GimpDialogFactory is a dockable factory "
|
||||
"but constructor for \"%s\" did not return a "
|
||||
"GimpDockable",
|
||||
G_GNUC_FUNCTION, identifier);
|
||||
G_STRFUNC, identifier);
|
||||
|
||||
gtk_widget_destroy (dialog);
|
||||
gtk_widget_destroy (dock);
|
||||
|
@ -485,7 +485,7 @@ gimp_dialog_factory_dialog_new_internal (GimpDialogFactory *factory,
|
|||
else if (dock)
|
||||
{
|
||||
g_warning ("%s: constructor for \"%s\" returned NULL",
|
||||
G_GNUC_FUNCTION, identifier);
|
||||
G_STRFUNC, identifier);
|
||||
|
||||
gtk_widget_destroy (dock);
|
||||
|
||||
|
@ -724,7 +724,7 @@ gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
|
|||
|
||||
if (g_list_find (factory->open_dialogs, dialog))
|
||||
{
|
||||
g_warning ("%s: dialog already registered", G_GNUC_FUNCTION);
|
||||
g_warning ("%s: dialog already registered", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -733,14 +733,14 @@ gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
|
|||
if (! (dialog_factory && (entry || GIMP_IS_DOCK (dialog))))
|
||||
{
|
||||
g_warning ("%s: dialog was not created by a GimpDialogFactory",
|
||||
G_GNUC_FUNCTION);
|
||||
G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
if (dialog_factory != factory)
|
||||
{
|
||||
g_warning ("%s: dialog was created by a different GimpDialogFactory",
|
||||
G_GNUC_FUNCTION);
|
||||
G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -749,7 +749,7 @@ gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
|
|||
if (entry) /* dialog is a toplevel (but not a GimpDock) or a GimpDockable */
|
||||
{
|
||||
D (g_print ("%s: adding %s \"%s\"\n",
|
||||
G_GNUC_FUNCTION,
|
||||
G_STRFUNC,
|
||||
toplevel ? "toplevel" : "dockable",
|
||||
entry->identifier));
|
||||
|
||||
|
@ -765,10 +765,10 @@ gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
|
|||
if (entry->singleton)
|
||||
{
|
||||
g_warning ("%s: singleton dialog \"%s\" created twice",
|
||||
G_GNUC_FUNCTION, entry->identifier);
|
||||
G_STRFUNC, entry->identifier);
|
||||
|
||||
D (g_print ("%s: corrupt session info: %p (widget %p)\n",
|
||||
G_GNUC_FUNCTION,
|
||||
G_STRFUNC,
|
||||
info, info->widget));
|
||||
|
||||
return;
|
||||
|
@ -780,7 +780,7 @@ gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
|
|||
info->widget = dialog;
|
||||
|
||||
D (g_print ("%s: updating session info %p (widget %p) for %s \"%s\"\n",
|
||||
G_GNUC_FUNCTION,
|
||||
G_STRFUNC,
|
||||
info, info->widget,
|
||||
toplevel ? "toplevel" : "dockable",
|
||||
entry->identifier));
|
||||
|
@ -799,7 +799,7 @@ gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
|
|||
info->widget = dialog;
|
||||
|
||||
D (g_print ("%s: creating session info %p (widget %p) for %s \"%s\"\n",
|
||||
G_GNUC_FUNCTION,
|
||||
G_STRFUNC,
|
||||
info, info->widget,
|
||||
toplevel ? "toplevel" : "dockable",
|
||||
entry->identifier));
|
||||
|
@ -828,7 +828,7 @@ gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
|
|||
}
|
||||
else /* dialog is a GimpDock */
|
||||
{
|
||||
D (g_print ("%s: adding dock\n", G_GNUC_FUNCTION));
|
||||
D (g_print ("%s: adding dock\n", G_STRFUNC));
|
||||
|
||||
for (list = factory->session_infos; list; list = g_list_next (list))
|
||||
{
|
||||
|
@ -842,7 +842,7 @@ gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
|
|||
info->widget = dialog;
|
||||
|
||||
D (g_print ("%s: updating session info %p (widget %p) for dock\n",
|
||||
G_GNUC_FUNCTION,
|
||||
G_STRFUNC,
|
||||
info, info->widget));
|
||||
|
||||
gimp_session_info_set_geometry (info);
|
||||
|
@ -858,7 +858,7 @@ gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
|
|||
info->widget = dialog;
|
||||
|
||||
D (g_print ("%s: creating session info %p (widget %p) for dock\n",
|
||||
G_GNUC_FUNCTION,
|
||||
G_STRFUNC,
|
||||
info, info->widget));
|
||||
|
||||
/* if we create a new session info, we never call
|
||||
|
@ -906,7 +906,7 @@ gimp_dialog_factory_add_foreign (GimpDialogFactory *factory,
|
|||
if (dialog_factory || entry)
|
||||
{
|
||||
g_warning ("%s: dialog was created by a GimpDialogFactory",
|
||||
G_GNUC_FUNCTION);
|
||||
G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -915,14 +915,14 @@ gimp_dialog_factory_add_foreign (GimpDialogFactory *factory,
|
|||
if (! entry)
|
||||
{
|
||||
g_warning ("%s: no entry registered for \"%s\"",
|
||||
G_GNUC_FUNCTION, identifier);
|
||||
G_STRFUNC, identifier);
|
||||
return;
|
||||
}
|
||||
|
||||
if (entry->new_func)
|
||||
{
|
||||
g_warning ("%s: entry for \"%s\" has a constructor (is not foreign)",
|
||||
G_GNUC_FUNCTION, identifier);
|
||||
G_STRFUNC, identifier);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -945,7 +945,7 @@ gimp_dialog_factory_remove_dialog (GimpDialogFactory *factory,
|
|||
|
||||
if (! g_list_find (factory->open_dialogs, dialog))
|
||||
{
|
||||
g_warning ("%s: dialog not registered", G_GNUC_FUNCTION);
|
||||
g_warning ("%s: dialog not registered", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -956,19 +956,19 @@ gimp_dialog_factory_remove_dialog (GimpDialogFactory *factory,
|
|||
if (! (dialog_factory && (entry || GIMP_IS_DOCK (dialog))))
|
||||
{
|
||||
g_warning ("%s: dialog was not created by a GimpDialogFactory",
|
||||
G_GNUC_FUNCTION);
|
||||
G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
if (dialog_factory != factory)
|
||||
{
|
||||
g_warning ("%s: dialog was created by a different GimpDialogFactory",
|
||||
G_GNUC_FUNCTION);
|
||||
G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
D (g_print ("%s: removing \"%s\"\n",
|
||||
G_GNUC_FUNCTION,
|
||||
G_STRFUNC,
|
||||
entry ? entry->identifier : "dock"));
|
||||
|
||||
for (list = factory->session_infos; list; list = g_list_next (list))
|
||||
|
@ -978,7 +978,7 @@ gimp_dialog_factory_remove_dialog (GimpDialogFactory *factory,
|
|||
if (session_info->widget == dialog)
|
||||
{
|
||||
D (g_print ("%s: clearing session info %p (widget %p) for \"%s\"\n",
|
||||
G_GNUC_FUNCTION,
|
||||
G_STRFUNC,
|
||||
session_info, session_info->widget,
|
||||
entry ? entry->identifier : "dock"));
|
||||
|
||||
|
@ -1171,7 +1171,7 @@ gimp_dialog_factory_set_user_pos (GtkWidget *dialog,
|
|||
|
||||
if (entry)
|
||||
g_print ("%s: setting GDK_HINT_USER_POS for \"%s\"\n",
|
||||
G_GNUC_FUNCTION, entry->identifier);
|
||||
G_STRFUNC, entry->identifier);
|
||||
#endif /* DEBUG_FACTORY */
|
||||
|
||||
g_signal_handlers_disconnect_by_func (dialog,
|
||||
|
@ -1195,7 +1195,7 @@ gimp_dialog_factory_dialog_configure (GtkWidget *dialog,
|
|||
|
||||
if (! g_list_find (factory->open_dialogs, dialog))
|
||||
{
|
||||
g_warning ("%s: dialog not registered", G_GNUC_FUNCTION);
|
||||
g_warning ("%s: dialog not registered", G_STRFUNC);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -1204,14 +1204,14 @@ gimp_dialog_factory_dialog_configure (GtkWidget *dialog,
|
|||
if (! dialog_factory || ! entry)
|
||||
{
|
||||
g_warning ("%s: dialog was not created by a GimpDialogFactory",
|
||||
G_GNUC_FUNCTION);
|
||||
G_STRFUNC);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (dialog_factory != factory)
|
||||
{
|
||||
g_warning ("%s: dialog was created by a different GimpDialogFactory",
|
||||
G_GNUC_FUNCTION);
|
||||
G_STRFUNC);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -1222,7 +1222,7 @@ gimp_dialog_factory_dialog_configure (GtkWidget *dialog,
|
|||
if (session_info->widget == dialog)
|
||||
{
|
||||
D (g_print ("%s: updating session info for \"%s\" from window geometry\n",
|
||||
G_GNUC_FUNCTION, entry->identifier));
|
||||
G_STRFUNC, entry->identifier));
|
||||
|
||||
gimp_session_info_get_geometry (session_info);
|
||||
|
||||
|
|
|
@ -1107,7 +1107,7 @@ control_do_hint (GimpGradientEditor *editor,
|
|||
|
||||
default:
|
||||
g_warning ("%s: in_handle is true, but received handle type %d.",
|
||||
G_STRLOC, in_handle);
|
||||
G_STRFUNC, in_handle);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1242,7 +1242,7 @@ control_button_press (GimpGradientEditor *editor,
|
|||
|
||||
default:
|
||||
g_warning ("%s: in_handle is true, but received handle type %d.",
|
||||
G_STRLOC, in_handle);
|
||||
G_STRFUNC, in_handle);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1293,7 +1293,7 @@ control_point_in_handle (GimpGradientEditor *editor,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_warning ("%s: Cannot handle drag mode %d.", G_STRLOC, handle);
|
||||
g_warning ("%s: Cannot handle drag mode %d.", G_STRFUNC, handle);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -1392,7 +1392,7 @@ control_motion (GimpGradientEditor *editor,
|
|||
|
||||
default:
|
||||
g_warning ("%s: Attempting to move bogus handle %d.",
|
||||
G_STRLOC, editor->control_drag_mode);
|
||||
G_STRFUNC, editor->control_drag_mode);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -488,7 +488,7 @@ gimp_item_factory_set_active (GtkItemFactory *factory,
|
|||
{
|
||||
g_warning ("%s: Unable to set \"active\" for menu item "
|
||||
"of type \"%s\": %s",
|
||||
G_STRLOC,
|
||||
G_STRFUNC,
|
||||
g_type_name (G_TYPE_FROM_INSTANCE (widget)),
|
||||
path);
|
||||
}
|
||||
|
@ -497,7 +497,7 @@ gimp_item_factory_set_active (GtkItemFactory *factory,
|
|||
{
|
||||
g_warning ("%s: Unable to set \"active\" for menu item "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, path);
|
||||
G_STRFUNC, path);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -541,7 +541,7 @@ gimp_item_factory_set_color (GtkItemFactory *factory,
|
|||
{
|
||||
g_warning ("%s: Unable to set color of menu item "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, path);
|
||||
G_STRFUNC, path);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -650,7 +650,7 @@ gimp_item_factory_set_label (GtkItemFactory *factory,
|
|||
{
|
||||
g_warning ("%s: Unable to set label of menu item "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, path);
|
||||
G_STRFUNC, path);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -694,7 +694,7 @@ gimp_item_factory_set_sensitive (GtkItemFactory *factory,
|
|||
{
|
||||
g_warning ("%s: Unable to set sensitivity of menu item "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, path);
|
||||
G_STRFUNC, path);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -743,7 +743,7 @@ gimp_item_factory_set_visible (GtkItemFactory *factory,
|
|||
{
|
||||
g_warning ("%s: Unable to set visibility of menu item "
|
||||
"which doesn't exist: %s",
|
||||
G_STRLOC, path);
|
||||
G_STRFUNC, path);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -784,7 +784,7 @@ gimp_item_factory_tearoff_callback (GtkWidget *widget,
|
|||
if (! GTK_IS_WINDOW (toplevel))
|
||||
{
|
||||
g_warning ("%s: tearoff menu not in top level window",
|
||||
G_STRLOC);
|
||||
G_STRFUNC);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -805,7 +805,7 @@ gimp_item_factory_tearoff_callback (GtkWidget *widget,
|
|||
if (! toplevel)
|
||||
{
|
||||
g_warning ("%s: can't unregister tearoff menu top level window",
|
||||
G_STRLOC);
|
||||
G_STRFUNC);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1117,7 +1117,7 @@ gimp_item_factory_translate (const gchar *path,
|
|||
else
|
||||
{
|
||||
g_warning ("%s: bad translation for menupath: %s",
|
||||
G_STRLOC, full_path);
|
||||
G_STRFUNC, full_path);
|
||||
|
||||
retval = path;
|
||||
}
|
||||
|
@ -1165,7 +1165,7 @@ gimp_item_factory_translate (const gchar *path,
|
|||
else
|
||||
{
|
||||
g_warning ("%s: bad translation for menupath: %s",
|
||||
G_STRLOC, path);
|
||||
G_STRFUNC, path);
|
||||
|
||||
retval = path;
|
||||
}
|
||||
|
|
|
@ -97,7 +97,7 @@ gimp_prop_check_button_new (GObject *config,
|
|||
gboolean value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRLOC);
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -183,7 +183,7 @@ gimp_prop_enum_check_button_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -307,7 +307,7 @@ gimp_prop_enum_combo_box_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -404,7 +404,7 @@ gimp_prop_boolean_combo_box_new (GObject *config,
|
|||
gboolean value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRLOC);
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -485,7 +485,7 @@ gimp_prop_paint_mode_menu_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -575,7 +575,7 @@ gimp_prop_enum_radio_frame_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -628,7 +628,7 @@ gimp_prop_enum_radio_box_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -678,7 +678,7 @@ gimp_prop_boolean_radio_frame_new (GObject *config,
|
|||
gboolean value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRLOC);
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -720,7 +720,7 @@ gimp_prop_enum_stock_box_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -820,12 +820,12 @@ gimp_prop_spin_button_new (GObject *config,
|
|||
gdouble lower;
|
||||
gdouble upper;
|
||||
|
||||
param_spec = find_param_spec (config, property_name, G_STRLOC);
|
||||
param_spec = find_param_spec (config, property_name, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
if (! get_numeric_values (config,
|
||||
param_spec, &value, &lower, &upper, G_STRLOC))
|
||||
param_spec, &value, &lower, &upper, G_STRFUNC))
|
||||
return NULL;
|
||||
|
||||
if (! G_IS_PARAM_SPEC_DOUBLE (param_spec))
|
||||
|
@ -870,12 +870,12 @@ gimp_prop_scale_entry_new (GObject *config,
|
|||
gdouble lower;
|
||||
gdouble upper;
|
||||
|
||||
param_spec = find_param_spec (config, property_name, G_STRLOC);
|
||||
param_spec = find_param_spec (config, property_name, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
if (! get_numeric_values (config,
|
||||
param_spec, &value, &lower, &upper, G_STRLOC))
|
||||
param_spec, &value, &lower, &upper, G_STRFUNC))
|
||||
return NULL;
|
||||
|
||||
tooltip = gettext (g_param_spec_get_blurb (param_spec));
|
||||
|
@ -932,7 +932,7 @@ gimp_prop_opacity_entry_new (GObject *config,
|
|||
gdouble upper;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_DOUBLE, G_STRLOC);
|
||||
G_TYPE_PARAM_DOUBLE, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -1098,7 +1098,7 @@ gimp_prop_adjustment_notify (GObject *config,
|
|||
else
|
||||
{
|
||||
g_warning ("%s: unhandled param spec of type %s",
|
||||
G_STRLOC, G_PARAM_SPEC_TYPE_NAME (param_spec));
|
||||
G_STRFUNC, G_PARAM_SPEC_TYPE_NAME (param_spec));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1137,7 +1137,7 @@ gimp_prop_memsize_entry_new (GObject *config,
|
|||
guint64 value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
GIMP_TYPE_PARAM_MEMSIZE, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_MEMSIZE, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -1235,7 +1235,7 @@ gimp_prop_entry_new (GObject *config,
|
|||
gchar *value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_STRING, G_STRLOC);
|
||||
G_TYPE_PARAM_STRING, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -1335,7 +1335,7 @@ gimp_prop_text_buffer_new (GObject *config,
|
|||
gchar *value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_STRING, G_STRLOC);
|
||||
G_TYPE_PARAM_STRING, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -1464,7 +1464,7 @@ gimp_prop_file_entry_new (GObject *config,
|
|||
gchar *value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
GIMP_TYPE_PARAM_PATH, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_PATH, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -1581,14 +1581,14 @@ gimp_prop_path_editor_new (GObject *config,
|
|||
gchar *filename;
|
||||
|
||||
path_param_spec = check_param_spec (config, path_property_name,
|
||||
GIMP_TYPE_PARAM_PATH, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_PATH, G_STRFUNC);
|
||||
if (! path_param_spec)
|
||||
return NULL;
|
||||
|
||||
if (writable_property_name)
|
||||
{
|
||||
writable_param_spec = check_param_spec (config, writable_property_name,
|
||||
GIMP_TYPE_PARAM_PATH, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_PATH, G_STRFUNC);
|
||||
if (! writable_param_spec)
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1820,12 +1820,12 @@ gimp_prop_size_entry_new (GObject *config,
|
|||
gdouble upper;
|
||||
GimpUnit unit_value;
|
||||
|
||||
param_spec = find_param_spec (config, property_name, G_STRLOC);
|
||||
param_spec = find_param_spec (config, property_name, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
if (! get_numeric_values (config,
|
||||
param_spec, &value, &lower, &upper, G_STRLOC))
|
||||
param_spec, &value, &lower, &upper, G_STRFUNC))
|
||||
return NULL;
|
||||
|
||||
if (unit_property_name)
|
||||
|
@ -1833,7 +1833,7 @@ gimp_prop_size_entry_new (GObject *config,
|
|||
GValue value = { 0 };
|
||||
|
||||
unit_param_spec = check_param_spec (config, unit_property_name,
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRFUNC);
|
||||
if (! unit_param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -2111,24 +2111,24 @@ gimp_prop_coordinates_connect (GObject *config,
|
|||
g_return_val_if_fail (chainbutton == NULL ||
|
||||
GIMP_IS_CHAIN_BUTTON (chainbutton), FALSE);
|
||||
|
||||
x_param_spec = find_param_spec (config, x_property_name, G_STRLOC);
|
||||
x_param_spec = find_param_spec (config, x_property_name, G_STRFUNC);
|
||||
if (! x_param_spec)
|
||||
return FALSE;
|
||||
|
||||
y_param_spec = find_param_spec (config, y_property_name, G_STRLOC);
|
||||
y_param_spec = find_param_spec (config, y_property_name, G_STRFUNC);
|
||||
if (! y_param_spec)
|
||||
return FALSE;
|
||||
|
||||
if (! get_numeric_values (config, x_param_spec,
|
||||
&x_value, &x_lower, &x_upper, G_STRLOC) ||
|
||||
&x_value, &x_lower, &x_upper, G_STRFUNC) ||
|
||||
! get_numeric_values (config, y_param_spec,
|
||||
&y_value, &y_lower, &y_upper, G_STRLOC))
|
||||
&y_value, &y_lower, &y_upper, G_STRFUNC))
|
||||
return FALSE;
|
||||
|
||||
if (unit_property_name)
|
||||
{
|
||||
unit_param_spec = check_param_spec (config, unit_property_name,
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRFUNC);
|
||||
if (! unit_param_spec)
|
||||
return FALSE;
|
||||
|
||||
|
@ -2456,7 +2456,7 @@ gimp_prop_color_area_new (GObject *config,
|
|||
GimpRGB *value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
GIMP_TYPE_PARAM_COLOR, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_COLOR, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -2557,7 +2557,7 @@ gimp_prop_color_button_new (GObject *config,
|
|||
GimpRGB *value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
GIMP_TYPE_PARAM_COLOR, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_COLOR, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -2656,7 +2656,7 @@ gimp_prop_unit_menu_new (GObject *config,
|
|||
gboolean show_percent;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -2760,14 +2760,14 @@ gimp_prop_preview_new (GObject *config,
|
|||
GimpViewable *viewable;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_OBJECT, G_STRLOC);
|
||||
G_TYPE_PARAM_OBJECT, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
if (! g_type_is_a (param_spec->value_type, GIMP_TYPE_VIEWABLE))
|
||||
{
|
||||
g_warning ("%s: property '%s' of %s is not a GimpViewable",
|
||||
G_STRLOC, property_name,
|
||||
G_STRFUNC, property_name,
|
||||
g_type_name (G_TYPE_FROM_INSTANCE (config)));
|
||||
return NULL;
|
||||
}
|
||||
|
@ -2779,7 +2779,7 @@ gimp_prop_preview_new (GObject *config,
|
|||
if (! preview)
|
||||
{
|
||||
g_warning ("%s: cannot create preview for type '%s'",
|
||||
G_STRLOC, g_type_name (param_spec->value_type));
|
||||
G_STRFUNC, g_type_name (param_spec->value_type));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -2861,7 +2861,7 @@ gimp_prop_stock_image_new (GObject *config,
|
|||
gchar *stock_id;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_STRING, G_STRLOC);
|
||||
G_TYPE_PARAM_STRING, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
|
|
@ -417,8 +417,7 @@ gimp_button_menu_position (GtkWidget *button,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_warning ("gimp_button_menu_position: "
|
||||
"unhandled position (%d)", position);
|
||||
g_warning ("%s: unhandled position (%d)", G_STRFUNC, position);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -859,7 +859,8 @@ xcf_save_prop (XcfInfo *info,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_warning ("xcf_save_prop: skipping guide with bad orientation");
|
||||
g_warning ("%s: skipping guide with bad orientation",
|
||||
G_STRFUNC);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -674,7 +674,7 @@ gimp_export_image (gint32 *image_ID,
|
|||
else
|
||||
{
|
||||
/* this should not happen */
|
||||
g_warning ("gimp_export_image: unknown drawable type!");
|
||||
g_warning ("%s: unknown drawable type!", G_STRFUNC);
|
||||
}
|
||||
|
||||
/* cancel - the user can then select an appropriate layer to save */
|
||||
|
|
|
@ -314,7 +314,8 @@ gimp_config_deserialize_property (GimpConfig *config,
|
|||
#ifdef CONFIG_DEBUG
|
||||
else
|
||||
{
|
||||
g_warning ("couldn't deserialize property %s::%s of type %s",
|
||||
g_warning ("%s: couldn't deserialize property %s::%s of type %s",
|
||||
G_STRFUNC,
|
||||
g_type_name (G_TYPE_FROM_INSTANCE (config)),
|
||||
prop_spec->name,
|
||||
g_type_name (prop_spec->value_type));
|
||||
|
@ -731,7 +732,7 @@ gimp_config_deserialize_any (GValue *value,
|
|||
if (!g_value_type_transformable (G_TYPE_STRING, prop_spec->value_type))
|
||||
{
|
||||
g_warning ("%s: %s can not be transformed from a string",
|
||||
G_STRLOC, g_type_name (prop_spec->value_type));
|
||||
G_STRFUNC, g_type_name (prop_spec->value_type));
|
||||
return G_TOKEN_NONE;
|
||||
}
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ gimp_scanner_destroy (GScanner *scanner)
|
|||
{
|
||||
if (close (data->fd))
|
||||
g_warning ("%s: could not close file descriptor: %s",
|
||||
G_GNUC_PRETTY_FUNCTION, g_strerror (errno));
|
||||
G_STRFUNC, g_strerror (errno));
|
||||
}
|
||||
|
||||
g_free (data->name);
|
||||
|
|
|
@ -123,8 +123,8 @@ gimp_standard_help_func (const gchar *help_id,
|
|||
{
|
||||
if (! _gimp_standard_help_func)
|
||||
{
|
||||
g_warning ("gimp_standard_help_func(): you must call gimp_widgets_init() "
|
||||
"before using the help system");
|
||||
g_warning ("%s: you must call gimp_widgets_init() before using "
|
||||
"the help system", G_STRFUNC);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ gimp_pixmap_set (GimpPixmap *pixmap,
|
|||
|
||||
if (sscanf (xpm_data[0], "%d %d", &width, &height) != 2)
|
||||
{
|
||||
g_warning ("%s: passed pointer is no XPM data", G_STRLOC);
|
||||
g_warning ("%s: passed pointer is no XPM data", G_STRFUNC);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -97,7 +97,7 @@ gimp_prop_check_button_new (GObject *config,
|
|||
gboolean value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRLOC);
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -183,7 +183,7 @@ gimp_prop_enum_check_button_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -307,7 +307,7 @@ gimp_prop_enum_combo_box_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -404,7 +404,7 @@ gimp_prop_boolean_combo_box_new (GObject *config,
|
|||
gboolean value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRLOC);
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -485,7 +485,7 @@ gimp_prop_paint_mode_menu_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -575,7 +575,7 @@ gimp_prop_enum_radio_frame_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -628,7 +628,7 @@ gimp_prop_enum_radio_box_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -678,7 +678,7 @@ gimp_prop_boolean_radio_frame_new (GObject *config,
|
|||
gboolean value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRLOC);
|
||||
G_TYPE_PARAM_BOOLEAN, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -720,7 +720,7 @@ gimp_prop_enum_stock_box_new (GObject *config,
|
|||
gint value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_ENUM, G_STRLOC);
|
||||
G_TYPE_PARAM_ENUM, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -820,12 +820,12 @@ gimp_prop_spin_button_new (GObject *config,
|
|||
gdouble lower;
|
||||
gdouble upper;
|
||||
|
||||
param_spec = find_param_spec (config, property_name, G_STRLOC);
|
||||
param_spec = find_param_spec (config, property_name, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
if (! get_numeric_values (config,
|
||||
param_spec, &value, &lower, &upper, G_STRLOC))
|
||||
param_spec, &value, &lower, &upper, G_STRFUNC))
|
||||
return NULL;
|
||||
|
||||
if (! G_IS_PARAM_SPEC_DOUBLE (param_spec))
|
||||
|
@ -870,12 +870,12 @@ gimp_prop_scale_entry_new (GObject *config,
|
|||
gdouble lower;
|
||||
gdouble upper;
|
||||
|
||||
param_spec = find_param_spec (config, property_name, G_STRLOC);
|
||||
param_spec = find_param_spec (config, property_name, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
if (! get_numeric_values (config,
|
||||
param_spec, &value, &lower, &upper, G_STRLOC))
|
||||
param_spec, &value, &lower, &upper, G_STRFUNC))
|
||||
return NULL;
|
||||
|
||||
tooltip = gettext (g_param_spec_get_blurb (param_spec));
|
||||
|
@ -932,7 +932,7 @@ gimp_prop_opacity_entry_new (GObject *config,
|
|||
gdouble upper;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_DOUBLE, G_STRLOC);
|
||||
G_TYPE_PARAM_DOUBLE, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -1098,7 +1098,7 @@ gimp_prop_adjustment_notify (GObject *config,
|
|||
else
|
||||
{
|
||||
g_warning ("%s: unhandled param spec of type %s",
|
||||
G_STRLOC, G_PARAM_SPEC_TYPE_NAME (param_spec));
|
||||
G_STRFUNC, G_PARAM_SPEC_TYPE_NAME (param_spec));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1137,7 +1137,7 @@ gimp_prop_memsize_entry_new (GObject *config,
|
|||
guint64 value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
GIMP_TYPE_PARAM_MEMSIZE, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_MEMSIZE, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -1235,7 +1235,7 @@ gimp_prop_entry_new (GObject *config,
|
|||
gchar *value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_STRING, G_STRLOC);
|
||||
G_TYPE_PARAM_STRING, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -1335,7 +1335,7 @@ gimp_prop_text_buffer_new (GObject *config,
|
|||
gchar *value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_STRING, G_STRLOC);
|
||||
G_TYPE_PARAM_STRING, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -1464,7 +1464,7 @@ gimp_prop_file_entry_new (GObject *config,
|
|||
gchar *value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
GIMP_TYPE_PARAM_PATH, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_PATH, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -1581,14 +1581,14 @@ gimp_prop_path_editor_new (GObject *config,
|
|||
gchar *filename;
|
||||
|
||||
path_param_spec = check_param_spec (config, path_property_name,
|
||||
GIMP_TYPE_PARAM_PATH, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_PATH, G_STRFUNC);
|
||||
if (! path_param_spec)
|
||||
return NULL;
|
||||
|
||||
if (writable_property_name)
|
||||
{
|
||||
writable_param_spec = check_param_spec (config, writable_property_name,
|
||||
GIMP_TYPE_PARAM_PATH, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_PATH, G_STRFUNC);
|
||||
if (! writable_param_spec)
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1820,12 +1820,12 @@ gimp_prop_size_entry_new (GObject *config,
|
|||
gdouble upper;
|
||||
GimpUnit unit_value;
|
||||
|
||||
param_spec = find_param_spec (config, property_name, G_STRLOC);
|
||||
param_spec = find_param_spec (config, property_name, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
if (! get_numeric_values (config,
|
||||
param_spec, &value, &lower, &upper, G_STRLOC))
|
||||
param_spec, &value, &lower, &upper, G_STRFUNC))
|
||||
return NULL;
|
||||
|
||||
if (unit_property_name)
|
||||
|
@ -1833,7 +1833,7 @@ gimp_prop_size_entry_new (GObject *config,
|
|||
GValue value = { 0 };
|
||||
|
||||
unit_param_spec = check_param_spec (config, unit_property_name,
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRFUNC);
|
||||
if (! unit_param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -2111,24 +2111,24 @@ gimp_prop_coordinates_connect (GObject *config,
|
|||
g_return_val_if_fail (chainbutton == NULL ||
|
||||
GIMP_IS_CHAIN_BUTTON (chainbutton), FALSE);
|
||||
|
||||
x_param_spec = find_param_spec (config, x_property_name, G_STRLOC);
|
||||
x_param_spec = find_param_spec (config, x_property_name, G_STRFUNC);
|
||||
if (! x_param_spec)
|
||||
return FALSE;
|
||||
|
||||
y_param_spec = find_param_spec (config, y_property_name, G_STRLOC);
|
||||
y_param_spec = find_param_spec (config, y_property_name, G_STRFUNC);
|
||||
if (! y_param_spec)
|
||||
return FALSE;
|
||||
|
||||
if (! get_numeric_values (config, x_param_spec,
|
||||
&x_value, &x_lower, &x_upper, G_STRLOC) ||
|
||||
&x_value, &x_lower, &x_upper, G_STRFUNC) ||
|
||||
! get_numeric_values (config, y_param_spec,
|
||||
&y_value, &y_lower, &y_upper, G_STRLOC))
|
||||
&y_value, &y_lower, &y_upper, G_STRFUNC))
|
||||
return FALSE;
|
||||
|
||||
if (unit_property_name)
|
||||
{
|
||||
unit_param_spec = check_param_spec (config, unit_property_name,
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRFUNC);
|
||||
if (! unit_param_spec)
|
||||
return FALSE;
|
||||
|
||||
|
@ -2456,7 +2456,7 @@ gimp_prop_color_area_new (GObject *config,
|
|||
GimpRGB *value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
GIMP_TYPE_PARAM_COLOR, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_COLOR, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -2557,7 +2557,7 @@ gimp_prop_color_button_new (GObject *config,
|
|||
GimpRGB *value;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
GIMP_TYPE_PARAM_COLOR, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_COLOR, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -2656,7 +2656,7 @@ gimp_prop_unit_menu_new (GObject *config,
|
|||
gboolean show_percent;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRLOC);
|
||||
GIMP_TYPE_PARAM_UNIT, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
@ -2760,14 +2760,14 @@ gimp_prop_preview_new (GObject *config,
|
|||
GimpViewable *viewable;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_OBJECT, G_STRLOC);
|
||||
G_TYPE_PARAM_OBJECT, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
if (! g_type_is_a (param_spec->value_type, GIMP_TYPE_VIEWABLE))
|
||||
{
|
||||
g_warning ("%s: property '%s' of %s is not a GimpViewable",
|
||||
G_STRLOC, property_name,
|
||||
G_STRFUNC, property_name,
|
||||
g_type_name (G_TYPE_FROM_INSTANCE (config)));
|
||||
return NULL;
|
||||
}
|
||||
|
@ -2779,7 +2779,7 @@ gimp_prop_preview_new (GObject *config,
|
|||
if (! preview)
|
||||
{
|
||||
g_warning ("%s: cannot create preview for type '%s'",
|
||||
G_STRLOC, g_type_name (param_spec->value_type));
|
||||
G_STRFUNC, g_type_name (param_spec->value_type));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -2861,7 +2861,7 @@ gimp_prop_stock_image_new (GObject *config,
|
|||
gchar *stock_id;
|
||||
|
||||
param_spec = check_param_spec (config, property_name,
|
||||
G_TYPE_PARAM_STRING, G_STRLOC);
|
||||
G_TYPE_PARAM_STRING, G_STRFUNC);
|
||||
if (! param_spec)
|
||||
return NULL;
|
||||
|
||||
|
|
|
@ -506,7 +506,8 @@ gimp_unit_menu_build_string (const gchar *format,
|
|||
switch (*format)
|
||||
{
|
||||
case 0:
|
||||
g_warning ("unit-menu-format string ended within %%-sequence");
|
||||
g_warning ("%s: unit-menu-format string ended within %%-sequence",
|
||||
G_STRFUNC);
|
||||
break;
|
||||
|
||||
case '%':
|
||||
|
@ -539,9 +540,8 @@ gimp_unit_menu_build_string (const gchar *format,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_warning ("gimp_unit_menu_build_string(): "
|
||||
"unit-menu-format contains unknown format sequence "
|
||||
"'%%%c'", *format);
|
||||
g_warning ("%s: unit-menu-format contains unknown format "
|
||||
"sequence '%%%c'", G_STRFUNC, *format);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue