[gimp] app: Always use gimp_object_get_name()
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] app: Always use gimp_object_get_name()
- Date: Sat, 29 Aug 2009 10:38:34 +0000 (UTC)
commit 957cf2cfa9846901670121f549e740fbaef7f745
Author: Martin Nordholts <martinn src gnome org>
Date: Sat Aug 29 12:40:40 2009 +0200
app: Always use gimp_object_get_name()
Begin to consider GimpObject::name as private and always use
gimp_object_get_name(). Change gimp_object_get_name() to take an
untyped pointer so we don't have to do so awfully many casts. There is
a runtime check for the type inside the function anyway.
app/actions/data-commands.c | 4 +-
app/actions/file-actions.c | 2 +-
app/actions/file-commands.c | 4 +-
app/actions/gradients-commands.c | 2 +-
app/actions/plug-in-actions.c | 12 ++++----
app/actions/templates-commands.c | 2 +-
app/actions/tool-options-commands.c | 2 +-
app/core/gimp-templates.c | 2 +-
app/core/gimpbrush.c | 2 +-
app/core/gimpbrushgenerated.c | 2 +-
app/core/gimpbuffer.c | 2 +-
app/core/gimpcontext.c | 40 +++++++++++++-------------
app/core/gimpcurve.c | 2 +-
app/core/gimpdrawable.c | 2 +-
app/core/gimpgradient-save.c | 2 +-
app/core/gimpimage-undo-push.c | 2 +-
app/core/gimplist.c | 2 +-
app/core/gimpobject.c | 7 +++--
app/core/gimpobject.h | 5 +--
app/core/gimppalette-save.c | 2 +-
app/core/gimppalette.c | 2 +-
app/core/gimppattern.c | 2 +-
app/core/gimptooloptions.c | 4 +-
app/core/gimptoolpresets.c | 4 +-
app/dialogs/convert-dialog.c | 2 +-
app/dialogs/palette-import-dialog.c | 6 ++--
app/display/gimpdisplayshell-layer-select.c | 4 +-
app/file/file-open.c | 4 +-
app/file/file-save.c | 2 +-
app/menus/plug-in-menus.c | 10 +++---
app/paint/gimppaintoptions.c | 2 +-
app/pdb/fileops-cmds.c | 4 +-
app/pdb/gimppdb-query.c | 2 +-
app/plug-in/gimpplugin.c | 2 +-
app/plug-in/gimpplugindef.c | 2 +-
app/plug-in/gimppluginmanager-query.c | 2 +-
app/plug-in/gimppluginmanager-restore.c | 8 +++---
app/plug-in/gimppluginmanager.c | 6 ++--
app/plug-in/gimppluginprocedure.c | 12 ++++----
app/vectors/gimpstroke.c | 2 +-
app/widgets/gimpbrushselect.c | 2 +-
app/widgets/gimpdialogfactory.c | 6 ++--
app/widgets/gimpfontselect.c | 2 +-
app/widgets/gimpgradientselect.c | 2 +-
app/widgets/gimppaletteselect.c | 2 +-
app/widgets/gimppatternselect.c | 2 +-
app/widgets/gimptemplateeditor.c | 2 +-
app/widgets/gimptooldialog.c | 4 +-
48 files changed, 102 insertions(+), 102 deletions(-)
---
diff --git a/app/actions/data-commands.c b/app/actions/data-commands.c
index d8ef64a..f9b9d35 100644
--- a/app/actions/data-commands.c
+++ b/app/actions/data-commands.c
@@ -253,11 +253,11 @@ data_delete_cmd_callback (GtkAction *action,
gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("Delete '%s'?"),
- GIMP_OBJECT (data)->name);
+ gimp_object_get_name (data));
gimp_message_box_set_text(GIMP_MESSAGE_DIALOG (dialog)->box,
_("Are you sure you want to remove '%s' "
"from the list and delete it on disk?"),
- GIMP_OBJECT (data)->name);
+ gimp_object_get_name (data));
gtk_widget_show (dialog);
}
diff --git a/app/actions/file-actions.c b/app/actions/file-actions.c
index 83dc749..1fbe93e 100644
--- a/app/actions/file-actions.c
+++ b/app/actions/file-actions.c
@@ -277,7 +277,7 @@ file_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("file-save", image && drawable);
SET_SENSITIVE ("file-save-as", image && drawable);
SET_SENSITIVE ("file-save-a-copy", image && drawable);
- SET_SENSITIVE ("file-revert", image && (GIMP_OBJECT (image)->name || source));
+ SET_SENSITIVE ("file-revert", image && (gimp_object_get_name (image) || source));
SET_SENSITIVE ("file-export-to", export_to);
SET_VISIBLE ("file-export-to", export_to || ! show_overwrite);
SET_SENSITIVE ("file-overwrite", show_overwrite);
diff --git a/app/actions/file-commands.c b/app/actions/file-commands.c
index cbc8b66..d573932 100644
--- a/app/actions/file-commands.c
+++ b/app/actions/file-commands.c
@@ -181,13 +181,13 @@ file_open_recent_cmd_callback (GtkAction *action,
image = file_open_with_display (gimp, action_data_get_context (data),
progress,
- GIMP_OBJECT (imagefile)->name, FALSE,
+ gimp_object_get_name (imagefile), FALSE,
&status, &error);
if (! image && status != GIMP_PDB_CANCEL)
{
gchar *filename =
- file_utils_uri_display_name (GIMP_OBJECT (imagefile)->name);
+ file_utils_uri_display_name (gimp_object_get_name (imagefile));
gimp_message (gimp, G_OBJECT (display), GIMP_MESSAGE_ERROR,
_("Opening '%s' failed:\n\n%s"),
diff --git a/app/actions/gradients-commands.c b/app/actions/gradients-commands.c
index 58ccd7c..d4f7347 100644
--- a/app/actions/gradients-commands.c
+++ b/app/actions/gradients-commands.c
@@ -63,7 +63,7 @@ gradients_save_as_pov_ray_cmd_callback (GtkAction *action,
return;
title = g_strdup_printf (_("Save '%s' as POV-Ray"),
- GIMP_OBJECT (gradient)->name);
+ gimp_object_get_name (gradient));
chooser = GTK_FILE_CHOOSER
(gtk_file_chooser_dialog_new (title, NULL,
diff --git a/app/actions/plug-in-actions.c b/app/actions/plug-in-actions.c
index 0a0149b..6add059 100644
--- a/app/actions/plug-in-actions.c
+++ b/app/actions/plug-in-actions.c
@@ -258,7 +258,7 @@ plug_in_actions_update (GimpActionGroup *group,
drawable);
gimp_action_group_set_action_sensitive (group,
- GIMP_OBJECT (proc)->name,
+ gimp_object_get_name (proc),
sensitive);
}
}
@@ -374,7 +374,7 @@ plug_in_actions_unregister_procedure (GimpPDB *pdb,
#endif
action = gtk_action_group_get_action (GTK_ACTION_GROUP (group),
- GIMP_OBJECT (procedure)->name);
+ gimp_object_get_name (procedure));
if (action)
gtk_action_group_remove_action (GTK_ACTION_GROUP (group), action);
@@ -444,7 +444,7 @@ plug_in_actions_add_proc (GimpActionGroup *group,
label = p2 + 1;
}
- entry.name = GIMP_OBJECT (proc)->name;
+ entry.name = gimp_object_get_name (proc);
entry.stock_id = gimp_plug_in_procedure_get_stock_id (proc);
entry.label = label;
entry.accelerator = NULL;
@@ -454,7 +454,7 @@ plug_in_actions_add_proc (GimpActionGroup *group,
#if 0
g_print ("adding plug-in action '%s' (%s)\n",
- GIMP_OBJECT (proc)->name, label);
+ gimp_object_get_name (proc), label);
#endif
gimp_action_group_add_plug_in_actions (group, &entry, 1,
@@ -511,7 +511,7 @@ plug_in_actions_history_changed (GimpPlugInManager *manager,
* all images' actions. See bug #517683.
*/
actual_action = gtk_action_group_get_action (GTK_ACTION_GROUP (group),
- GIMP_OBJECT (proc)->name);
+ gimp_object_get_name (proc));
if (actual_action)
sensitive = gtk_action_get_sensitive (actual_action);
@@ -566,7 +566,7 @@ plug_in_actions_history_changed (GimpPlugInManager *manager,
/* see comment above */
actual_action = gtk_action_group_get_action (GTK_ACTION_GROUP (group),
- GIMP_OBJECT (proc)->name);
+ gimp_object_get_name (proc));
if (actual_action)
sensitive = gtk_action_get_sensitive (actual_action);
diff --git a/app/actions/templates-commands.c b/app/actions/templates-commands.c
index a9a5873..045d814 100644
--- a/app/actions/templates-commands.c
+++ b/app/actions/templates-commands.c
@@ -239,7 +239,7 @@ templates_delete_cmd_callback (GtkAction *action,
_("Are you sure you want to delete "
"template '%s' from the list and "
"from disk?"),
- GIMP_OBJECT (template)->name);
+ gimp_object_get_name (template));
gtk_widget_show (dialog);
}
}
diff --git a/app/actions/tool-options-commands.c b/app/actions/tool-options-commands.c
index 7176b7e..0dad7a0 100644
--- a/app/actions/tool-options-commands.c
+++ b/app/actions/tool-options-commands.c
@@ -140,7 +140,7 @@ tool_options_rename_saved_cmd_callback (GtkAction *action,
gimp_standard_help_func,
GIMP_HELP_TOOL_OPTIONS_DIALOG,
_("Enter a new name for the saved options"),
- GIMP_OBJECT (options)->name,
+ gimp_object_get_name (options),
NULL, NULL,
tool_options_rename_callback, options);
gtk_widget_show (dialog);
diff --git a/app/core/gimp-templates.c b/app/core/gimp-templates.c
index 1bec9a2..9925e0e 100644
--- a/app/core/gimp-templates.c
+++ b/app/core/gimp-templates.c
@@ -127,7 +127,7 @@ gimp_templates_migrate_get_child_by_name (const GimpContainer *container,
for (glist = list->list; glist; glist = g_list_next (glist))
{
GimpObject *object = glist->data;
- gchar *str1 = g_ascii_strdown (object->name, -1);
+ gchar *str1 = g_ascii_strdown (gimp_object_get_name (object), -1);
gchar *str2 = g_ascii_strdown (name, -1);
if (! strcmp (str1, str2))
diff --git a/app/core/gimpbrush.c b/app/core/gimpbrush.c
index 9059519..90fa78d 100644
--- a/app/core/gimpbrush.c
+++ b/app/core/gimpbrush.c
@@ -344,7 +344,7 @@ gimp_brush_get_description (GimpViewable *viewable,
GimpBrush *brush = GIMP_BRUSH (viewable);
return g_strdup_printf ("%s (%d Ã? %d)",
- GIMP_OBJECT (brush)->name,
+ gimp_object_get_name (brush),
brush->mask->width,
brush->mask->height);
}
diff --git a/app/core/gimpbrushgenerated.c b/app/core/gimpbrushgenerated.c
index 2977aff..e18b096 100644
--- a/app/core/gimpbrushgenerated.c
+++ b/app/core/gimpbrushgenerated.c
@@ -279,7 +279,7 @@ gimp_brush_generated_duplicate (GimpData *data)
{
GimpBrushGenerated *brush = GIMP_BRUSH_GENERATED (data);
- return gimp_brush_generated_new (GIMP_OBJECT (brush)->name,
+ return gimp_brush_generated_new (gimp_object_get_name (brush),
brush->shape,
brush->radius,
brush->spikes,
diff --git a/app/core/gimpbuffer.c b/app/core/gimpbuffer.c
index 6440243..bec8f68 100644
--- a/app/core/gimpbuffer.c
+++ b/app/core/gimpbuffer.c
@@ -210,7 +210,7 @@ gimp_buffer_get_description (GimpViewable *viewable,
GimpBuffer *buffer = GIMP_BUFFER (viewable);
return g_strdup_printf ("%s (%d Ã? %d)",
- GIMP_OBJECT (buffer)->name,
+ gimp_object_get_name (buffer),
gimp_buffer_get_width (buffer),
gimp_buffer_get_height (buffer));
}
diff --git a/app/core/gimpcontext.c b/app/core/gimpcontext.c
index 2014e60..202f1d3 100644
--- a/app/core/gimpcontext.c
+++ b/app/core/gimpcontext.c
@@ -1836,7 +1836,7 @@ gimp_context_tool_dirty (GimpToolInfo *tool_info,
GimpContext *context)
{
g_free (context->tool_name);
- context->tool_name = g_strdup (GIMP_OBJECT (tool_info)->name);
+ context->tool_name = g_strdup (gimp_object_get_name (tool_info));
}
/* the global tool list is there again after refresh */
@@ -1913,7 +1913,7 @@ gimp_context_real_set_tool (GimpContext *context,
0);
if (tool_info != standard_tool_info)
- context->tool_name = g_strdup (GIMP_OBJECT (tool_info)->name);
+ context->tool_name = g_strdup (gimp_object_get_name (tool_info));
if (tool_info->paint_info)
gimp_context_real_set_paint_info (context, tool_info->paint_info);
@@ -1962,7 +1962,7 @@ gimp_context_paint_info_dirty (GimpPaintInfo *paint_info,
GimpContext *context)
{
g_free (context->paint_name);
- context->paint_name = g_strdup (GIMP_OBJECT (paint_info)->name);
+ context->paint_name = g_strdup (gimp_object_get_name (paint_info));
}
/* the global paint info list is there again after refresh */
@@ -2039,7 +2039,7 @@ gimp_context_real_set_paint_info (GimpContext *context,
0);
if (paint_info != standard_paint_info)
- context->paint_name = g_strdup (GIMP_OBJECT (paint_info)->name);
+ context->paint_name = g_strdup (gimp_object_get_name (paint_info));
}
g_object_notify (G_OBJECT (context), "paint-info");
@@ -2319,7 +2319,7 @@ gimp_context_brush_dirty (GimpBrush *brush,
GimpContext *context)
{
g_free (context->brush_name);
- context->brush_name = g_strdup (GIMP_OBJECT (brush)->name);
+ context->brush_name = g_strdup (gimp_object_get_name (brush));
}
/* the global brush list is there again after refresh */
@@ -2396,7 +2396,7 @@ gimp_context_real_set_brush (GimpContext *context,
0);
if (brush != standard_brush)
- context->brush_name = g_strdup (GIMP_OBJECT (brush)->name);
+ context->brush_name = g_strdup (gimp_object_get_name (brush));
}
g_object_notify (G_OBJECT (context), "brush");
@@ -2441,7 +2441,7 @@ gimp_context_pattern_dirty (GimpPattern *pattern,
GimpContext *context)
{
g_free (context->pattern_name);
- context->pattern_name = g_strdup (GIMP_OBJECT (pattern)->name);
+ context->pattern_name = g_strdup (gimp_object_get_name (pattern));
}
/* the global pattern list is there again after refresh */
@@ -2518,7 +2518,7 @@ gimp_context_real_set_pattern (GimpContext *context,
0);
if (pattern != standard_pattern)
- context->pattern_name = g_strdup (GIMP_OBJECT (pattern)->name);
+ context->pattern_name = g_strdup (gimp_object_get_name (pattern));
}
g_object_notify (G_OBJECT (context), "pattern");
@@ -2563,7 +2563,7 @@ gimp_context_gradient_dirty (GimpGradient *gradient,
GimpContext *context)
{
g_free (context->gradient_name);
- context->gradient_name = g_strdup (GIMP_OBJECT (gradient)->name);
+ context->gradient_name = g_strdup (gimp_object_get_name (gradient));
}
/* the global gradient list is there again after refresh */
@@ -2640,7 +2640,7 @@ gimp_context_real_set_gradient (GimpContext *context,
0);
if (gradient != standard_gradient)
- context->gradient_name = g_strdup (GIMP_OBJECT (gradient)->name);
+ context->gradient_name = g_strdup (gimp_object_get_name (gradient));
}
g_object_notify (G_OBJECT (context), "gradient");
@@ -2685,7 +2685,7 @@ gimp_context_palette_dirty (GimpPalette *palette,
GimpContext *context)
{
g_free (context->palette_name);
- context->palette_name = g_strdup (GIMP_OBJECT (palette)->name);
+ context->palette_name = g_strdup (gimp_object_get_name (palette));
}
/* the global palette list is there again after refresh */
@@ -2762,7 +2762,7 @@ gimp_context_real_set_palette (GimpContext *context,
0);
if (palette != standard_palette)
- context->palette_name = g_strdup (GIMP_OBJECT (palette)->name);
+ context->palette_name = g_strdup (gimp_object_get_name (palette));
}
g_object_notify (G_OBJECT (context), "palette");
@@ -2829,7 +2829,7 @@ gimp_context_font_dirty (GimpFont *font,
GimpContext *context)
{
g_free (context->font_name);
- context->font_name = g_strdup (GIMP_OBJECT (font)->name);
+ context->font_name = g_strdup (gimp_object_get_name (font));
}
/* the global font list is there again after refresh */
@@ -2906,7 +2906,7 @@ gimp_context_real_set_font (GimpContext *context,
0);
if (font != standard_font)
- context->font_name = g_strdup (GIMP_OBJECT (font)->name);
+ context->font_name = g_strdup (gimp_object_get_name (font));
}
g_object_notify (G_OBJECT (context), "font");
@@ -2955,7 +2955,7 @@ gimp_context_buffer_dirty (GimpBuffer *buffer,
GimpContext *context)
{
g_free (context->buffer_name);
- context->buffer_name = g_strdup (GIMP_OBJECT (buffer)->name);
+ context->buffer_name = g_strdup (gimp_object_get_name (buffer));
}
/* the global buffer list is there again after refresh */
@@ -3046,7 +3046,7 @@ gimp_context_real_set_buffer (GimpContext *context,
/*
if (buffer != standard_buffer)
*/
- context->buffer_name = g_strdup (GIMP_OBJECT (buffer)->name);
+ context->buffer_name = g_strdup (gimp_object_get_name (buffer));
}
g_object_notify (G_OBJECT (context), "buffer");
@@ -3095,7 +3095,7 @@ gimp_context_imagefile_dirty (GimpImagefile *imagefile,
GimpContext *context)
{
g_free (context->imagefile_name);
- context->imagefile_name = g_strdup (GIMP_OBJECT (imagefile)->name);
+ context->imagefile_name = g_strdup (gimp_object_get_name (imagefile));
}
/* the global imagefile list is there again after refresh */
@@ -3186,7 +3186,7 @@ gimp_context_real_set_imagefile (GimpContext *context,
/*
if (imagefile != standard_imagefile)
*/
- context->imagefile_name = g_strdup (GIMP_OBJECT (imagefile)->name);
+ context->imagefile_name = g_strdup (gimp_object_get_name (imagefile));
}
g_object_notify (G_OBJECT (context), "imagefile");
@@ -3235,7 +3235,7 @@ gimp_context_template_dirty (GimpTemplate *template,
GimpContext *context)
{
g_free (context->template_name);
- context->template_name = g_strdup (GIMP_OBJECT (template)->name);
+ context->template_name = g_strdup (gimp_object_get_name (template));
}
/* the global template list is there again after refresh */
@@ -3326,7 +3326,7 @@ gimp_context_real_set_template (GimpContext *context,
/*
if (template != standard_template)
*/
- context->template_name = g_strdup (GIMP_OBJECT (template)->name);
+ context->template_name = g_strdup (gimp_object_get_name (template));
}
g_object_notify (G_OBJECT (context), "template");
diff --git a/app/core/gimpcurve.c b/app/core/gimpcurve.c
index 2528dbd..faeb7cf 100644
--- a/app/core/gimpcurve.c
+++ b/app/core/gimpcurve.c
@@ -410,7 +410,7 @@ gimp_curve_get_description (GimpViewable *viewable,
{
GimpCurve *curve = GIMP_CURVE (viewable);
- return g_strdup_printf ("%s", GIMP_OBJECT (curve)->name);
+ return g_strdup_printf ("%s", gimp_object_get_name (curve));
}
static void
diff --git a/app/core/gimpdrawable.c b/app/core/gimpdrawable.c
index 6e1c695..93d437f 100644
--- a/app/core/gimpdrawable.c
+++ b/app/core/gimpdrawable.c
@@ -405,7 +405,7 @@ gimp_drawable_duplicate (GimpItem *item,
gimp_item_get_width (item),
gimp_item_get_height (item),
gimp_drawable_type (drawable),
- GIMP_OBJECT (new_drawable)->name);
+ gimp_object_get_name (new_drawable));
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
0, 0,
diff --git a/app/core/gimpgradient-save.c b/app/core/gimpgradient-save.c
index e47bacb..2e97488 100644
--- a/app/core/gimpgradient-save.c
+++ b/app/core/gimpgradient-save.c
@@ -65,7 +65,7 @@ gimp_gradient_save (GimpData *data,
fprintf (file, "GIMP Gradient\n");
- fprintf (file, "Name: %s\n", GIMP_OBJECT (gradient)->name);
+ fprintf (file, "Name: %s\n", gimp_object_get_name (gradient));
/* Count number of segments */
num_segments = 0;
diff --git a/app/core/gimpimage-undo-push.c b/app/core/gimpimage-undo-push.c
index 1fc5f4f..3098db2 100644
--- a/app/core/gimpimage-undo-push.c
+++ b/app/core/gimpimage-undo-push.c
@@ -835,7 +835,7 @@ undo_pop_cantundo (GimpUndo *undo,
{
case GIMP_UNDO_MODE_UNDO:
gimp_message (undo->image->gimp, NULL, GIMP_MESSAGE_WARNING,
- _("Can't undo %s"), GIMP_OBJECT (undo)->name);
+ _("Can't undo %s"), gimp_object_get_name (undo));
break;
case GIMP_UNDO_MODE_REDO:
diff --git a/app/core/gimplist.c b/app/core/gimplist.c
index ad461ad..ed48888 100644
--- a/app/core/gimplist.c
+++ b/app/core/gimplist.c
@@ -304,7 +304,7 @@ gimp_list_get_child_by_name (const GimpContainer *container,
{
GimpObject *object = glist->data;
- if (! strcmp (object->name, name))
+ if (! strcmp (gimp_object_get_name (object), name))
return object;
}
diff --git a/app/core/gimpobject.c b/app/core/gimpobject.c
index e41b650..66f616c 100644
--- a/app/core/gimpobject.c
+++ b/app/core/gimpobject.c
@@ -272,11 +272,12 @@ gimp_object_take_name (GimpObject *object,
* Return value: a pointer to the @object's name
**/
const gchar *
-gimp_object_get_name (const GimpObject *object)
+gimp_object_get_name (gconstpointer object)
{
- g_return_val_if_fail (GIMP_IS_OBJECT (object), NULL);
+ const GimpObject *object_typed = object;
+ g_return_val_if_fail (GIMP_IS_OBJECT (object_typed), NULL);
- return object->name;
+ return object_typed->name;
}
/**
diff --git a/app/core/gimpobject.h b/app/core/gimpobject.h
index a7272a6..a61c5e2 100644
--- a/app/core/gimpobject.h
+++ b/app/core/gimpobject.h
@@ -33,9 +33,8 @@ struct _GimpObject
{
GObject parent_instance;
- gchar *name;
-
/*< private >*/
+ gchar *name;
gchar *normalized;
guint static_name : 1;
guint disconnected : 1;
@@ -65,7 +64,7 @@ void gimp_object_set_static_name (GimpObject *object,
const gchar *name);
void gimp_object_take_name (GimpObject *object,
gchar *name);
-const gchar * gimp_object_get_name (const GimpObject *object);
+const gchar * gimp_object_get_name (gconstpointer object);
void gimp_object_name_changed (GimpObject *object);
void gimp_object_name_free (GimpObject *object);
diff --git a/app/core/gimppalette-save.c b/app/core/gimppalette-save.c
index af7ba75..0d9ef4e 100644
--- a/app/core/gimppalette-save.c
+++ b/app/core/gimppalette-save.c
@@ -59,7 +59,7 @@ gimp_palette_save (GimpData *data,
}
fprintf (file, "GIMP Palette\n");
- fprintf (file, "Name: %s\n", GIMP_OBJECT (palette)->name);
+ fprintf (file, "Name: %s\n", gimp_object_get_name (palette));
fprintf (file, "Columns: %d\n#\n", CLAMP (palette->n_columns, 0, 256));
for (list = palette->colors; list; list = g_list_next (list))
diff --git a/app/core/gimppalette.c b/app/core/gimppalette.c
index 6721e33..26a0200 100644
--- a/app/core/gimppalette.c
+++ b/app/core/gimppalette.c
@@ -267,7 +267,7 @@ gimp_palette_get_description (GimpViewable *viewable,
GimpPalette *palette = GIMP_PALETTE (viewable);
return g_strdup_printf ("%s (%d)",
- GIMP_OBJECT (palette)->name,
+ gimp_object_get_name (palette),
palette->n_colors);
}
diff --git a/app/core/gimppattern.c b/app/core/gimppattern.c
index 0ec51d4..a5da6f1 100644
--- a/app/core/gimppattern.c
+++ b/app/core/gimppattern.c
@@ -167,7 +167,7 @@ gimp_pattern_get_description (GimpViewable *viewable,
GimpPattern *pattern = GIMP_PATTERN (viewable);
return g_strdup_printf ("%s (%d Ã? %d)",
- GIMP_OBJECT (pattern)->name,
+ gimp_object_get_name (pattern),
pattern->mask->width,
pattern->mask->height);
}
diff --git a/app/core/gimptooloptions.c b/app/core/gimptooloptions.c
index adf0c93..325a139 100644
--- a/app/core/gimptooloptions.c
+++ b/app/core/gimptooloptions.c
@@ -169,9 +169,9 @@ gimp_tool_options_serialize (GimpToolOptions *tool_options,
g_print ("Writing '%s'\n", gimp_filename_to_utf8 (filename));
header = g_strdup_printf ("GIMP %s options",
- GIMP_OBJECT (tool_options->tool_info)->name);
+ gimp_object_get_name (tool_options->tool_info));
footer = g_strdup_printf ("end of %s options",
- GIMP_OBJECT (tool_options->tool_info)->name);
+ gimp_object_get_name (tool_options->tool_info));
retval = gimp_config_serialize_to_file (GIMP_CONFIG (tool_options),
filename,
diff --git a/app/core/gimptoolpresets.c b/app/core/gimptoolpresets.c
index 662cd42..a93d4fc 100644
--- a/app/core/gimptoolpresets.c
+++ b/app/core/gimptoolpresets.c
@@ -256,10 +256,10 @@ gimp_tool_presets_save (GimpToolPresets *presets,
gimp_tool_options_create_folder ();
- footer = g_strdup_printf ("end of %s", GIMP_OBJECT (presets)->name);
+ footer = g_strdup_printf ("end of %s", gimp_object_get_name (presets));
retval = gimp_config_serialize_to_file (GIMP_CONFIG (presets), filename,
- GIMP_OBJECT (presets)->name,
+ gimp_object_get_name (presets),
footer,
NULL, error);
diff --git a/app/dialogs/convert-dialog.c b/app/dialogs/convert-dialog.c
index 7b6cbb7..27b32f7 100644
--- a/app/dialogs/convert-dialog.c
+++ b/app/dialogs/convert-dialog.c
@@ -361,7 +361,7 @@ convert_dialog_palette_box (IndexedDialog *dialog)
/* Preferentially, the initial default is 'Web' if available */
if (web_palette == NULL &&
- g_ascii_strcasecmp (GIMP_OBJECT (palette)->name, "Web") == 0)
+ g_ascii_strcasecmp (gimp_object_get_name (palette), "Web") == 0)
{
web_palette = palette;
}
diff --git a/app/dialogs/palette-import-dialog.c b/app/dialogs/palette-import-dialog.c
index 602d9c6..eb9d916 100644
--- a/app/dialogs/palette-import-dialog.c
+++ b/app/dialogs/palette-import-dialog.c
@@ -314,7 +314,7 @@ palette_import_dialog_new (GimpContext *context)
dialog->entry = gtk_entry_new ();
gtk_entry_set_text (GTK_ENTRY (dialog->entry),
gradient ?
- GIMP_OBJECT (gradient)->name : _("New import"));
+ gimp_object_get_name (gradient) : _("New import"));
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("Palette _name:"), 0.0, 0.5,
dialog->entry, 2, FALSE);
@@ -476,7 +476,7 @@ palette_import_gradient_changed (GimpContext *context,
if (gradient && dialog->import_type == GRADIENT_IMPORT)
{
gtk_entry_set_text (GTK_ENTRY (dialog->entry),
- GIMP_OBJECT (gradient)->name);
+ gimp_object_get_name (gradient));
palette_import_make_palette (dialog);
}
@@ -654,7 +654,7 @@ palette_import_grad_callback (GtkWidget *widget,
gradient = gimp_context_get_gradient (dialog->context);
gtk_entry_set_text (GTK_ENTRY (dialog->entry),
- GIMP_OBJECT (gradient)->name);
+ gimp_object_get_name (gradient));
palette_import_set_sensitive (dialog);
diff --git a/app/display/gimpdisplayshell-layer-select.c b/app/display/gimpdisplayshell-layer-select.c
index d9052f1..305e3d8 100644
--- a/app/display/gimpdisplayshell-layer-select.c
+++ b/app/display/gimpdisplayshell-layer-select.c
@@ -159,7 +159,7 @@ layer_select_new (GimpImage *image,
gtk_widget_show (alignment);
/* the layer name label */
- layer_select->label = gtk_label_new (GIMP_OBJECT (layer)->name);
+ layer_select->label = gtk_label_new (gimp_object_get_name (layer));
gtk_box_pack_start (GTK_BOX (hbox), layer_select->label, FALSE, FALSE, 0);
gtk_widget_show (layer_select->label);
@@ -224,7 +224,7 @@ layer_select_advance (LayerSelect *layer_select,
gimp_view_set_viewable (GIMP_VIEW (layer_select->view),
GIMP_VIEWABLE (current_layer));
gtk_label_set_text (GTK_LABEL (layer_select->label),
- GIMP_OBJECT (current_layer)->name);
+ gimp_object_get_name (current_layer));
}
}
}
diff --git a/app/file/file-open.c b/app/file/file-open.c
index 073093d..a9dd77b 100644
--- a/app/file/file-open.c
+++ b/app/file/file-open.c
@@ -154,7 +154,7 @@ file_open_image (Gimp *gimp,
return_vals =
gimp_pdb_execute_procedure_by_name (gimp->pdb,
context, progress, error,
- GIMP_OBJECT (file_proc)->name,
+ gimp_object_get_name (file_proc),
GIMP_TYPE_INT32, run_mode,
G_TYPE_STRING, filename,
G_TYPE_STRING, entered_filename,
@@ -293,7 +293,7 @@ file_open_thumbnail (Gimp *gimp,
return_vals =
gimp_pdb_execute_procedure_by_name (gimp->pdb,
context, progress, error,
- GIMP_OBJECT (procedure)->name,
+ gimp_object_get_name (procedure),
G_TYPE_STRING, filename,
GIMP_TYPE_INT32, size,
G_TYPE_NONE);
diff --git a/app/file/file-save.c b/app/file/file-save.c
index fb4dbda..ea1f10a 100644
--- a/app/file/file-save.c
+++ b/app/file/file-save.c
@@ -138,7 +138,7 @@ file_save (Gimp *gimp,
gimp_pdb_execute_procedure_by_name (image->gimp->pdb,
gimp_get_user_context (gimp),
progress, error,
- GIMP_OBJECT (file_proc)->name,
+ gimp_object_get_name (file_proc),
GIMP_TYPE_INT32, run_mode,
GIMP_TYPE_IMAGE_ID, image_ID,
GIMP_TYPE_DRAWABLE_ID, drawable_ID,
diff --git a/app/menus/plug-in-menus.c b/app/menus/plug-in-menus.c
index 1f0ff1f..65b109f 100644
--- a/app/menus/plug-in-menus.c
+++ b/app/menus/plug-in-menus.c
@@ -259,7 +259,7 @@ plug_in_menus_unregister_procedure (GimpPDB *pdb,
guint merge_id;
merge_key = g_strdup_printf ("%s-merge-id",
- GIMP_OBJECT (plug_in_proc)->name);
+ gimp_object_get_name (plug_in_proc));
merge_id = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (manager),
merge_key));
g_free (merge_key);
@@ -386,7 +386,7 @@ plug_in_menus_add_proc (GimpUIManager *manager,
*p = '\0';
}
- merge_key = g_strdup_printf ("%s-merge-id", GIMP_OBJECT (proc)->name);
+ merge_key = g_strdup_printf ("%s-merge-id", gimp_object_get_name (proc));
merge_id = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (manager),
merge_key));
@@ -422,12 +422,12 @@ plug_in_menus_add_proc (GimpUIManager *manager,
}
GIMP_LOG (MENUS, "adding menu item for '%s' (@ %s)",
- GIMP_OBJECT (proc)->name, action_path);
+ gimp_object_get_name (proc), action_path);
gtk_ui_manager_add_ui (GTK_UI_MANAGER (manager), merge_id,
action_path,
- GIMP_OBJECT (proc)->name,
- GIMP_OBJECT (proc)->name,
+ gimp_object_get_name (proc),
+ gimp_object_get_name (proc),
GTK_UI_MANAGER_MENUITEM,
FALSE);
diff --git a/app/paint/gimppaintoptions.c b/app/paint/gimppaintoptions.c
index 96dd741..926c958 100644
--- a/app/paint/gimppaintoptions.c
+++ b/app/paint/gimppaintoptions.c
@@ -1197,7 +1197,7 @@ gimp_paint_options_new (GimpPaintInfo *paint_info)
options = g_object_new (paint_info->paint_options_type,
"gimp", paint_info->gimp,
- "name", GIMP_OBJECT (paint_info)->name,
+ "name", gimp_object_get_name (paint_info),
"paint-info", paint_info,
NULL);
diff --git a/app/pdb/fileops-cmds.c b/app/pdb/fileops-cmds.c
index a9c817e..b331c12 100644
--- a/app/pdb/fileops-cmds.c
+++ b/app/pdb/fileops-cmds.c
@@ -91,7 +91,7 @@ file_load_invoker (GimpProcedure *procedure,
return_vals =
gimp_pdb_execute_procedure_by_name_args (gimp->pdb,
context, progress, error,
- GIMP_OBJECT (proc)->name,
+ gimp_object_get_name (proc),
new_args);
g_value_array_free (new_args);
@@ -280,7 +280,7 @@ file_save_invoker (GimpProcedure *procedure,
return_vals =
gimp_pdb_execute_procedure_by_name_args (gimp->pdb,
context, progress, error,
- GIMP_OBJECT (proc)->name,
+ gimp_object_get_name (proc),
new_args);
g_value_array_free (new_args);
diff --git a/app/pdb/gimppdb-query.c b/app/pdb/gimppdb-query.c
index a17a232..9dc9377 100644
--- a/app/pdb/gimppdb-query.c
+++ b/app/pdb/gimppdb-query.c
@@ -579,7 +579,7 @@ gimp_pdb_get_strings (PDBStrings *strings,
if (compat)
{
strings->blurb = g_strdup_printf (COMPAT_BLURB,
- GIMP_OBJECT (procedure)->name);
+ gimp_object_get_name (procedure));
strings->help = g_strdup (strings->blurb);
strings->author = NULL;
strings->copyright = NULL;
diff --git a/app/plug-in/gimpplugin.c b/app/plug-in/gimpplugin.c
index 211c347..05a16e8 100644
--- a/app/plug-in/gimpplugin.c
+++ b/app/plug-in/gimpplugin.c
@@ -983,7 +983,7 @@ gimp_plug_in_add_temp_proc (GimpPlugIn *plug_in,
g_return_if_fail (GIMP_IS_TEMPORARY_PROCEDURE (proc));
overridden = gimp_plug_in_procedure_find (plug_in->temp_procedures,
- GIMP_OBJECT (proc)->name);
+ gimp_object_get_name (proc));
if (overridden)
gimp_plug_in_remove_temp_proc (plug_in,
diff --git a/app/plug-in/gimpplugindef.c b/app/plug-in/gimpplugindef.c
index 9487439..15983d1 100644
--- a/app/plug-in/gimpplugindef.c
+++ b/app/plug-in/gimpplugindef.c
@@ -119,7 +119,7 @@ gimp_plug_in_def_add_procedure (GimpPlugInDef *plug_in_def,
g_return_if_fail (GIMP_IS_PLUG_IN_PROCEDURE (proc));
overridden = gimp_plug_in_procedure_find (plug_in_def->procedures,
- GIMP_OBJECT (proc)->name);
+ gimp_object_get_name (proc));
if (overridden)
gimp_plug_in_def_remove_procedure (plug_in_def, overridden);
diff --git a/app/plug-in/gimppluginmanager-query.c b/app/plug-in/gimppluginmanager-query.c
index 70c275e..0d193e4 100644
--- a/app/plug-in/gimppluginmanager-query.c
+++ b/app/plug-in/gimppluginmanager-query.c
@@ -144,7 +144,7 @@ gimp_plug_in_manager_query (GimpPlugInManager *manager,
(*accel_strs)[i] = NULL;
(*prog_strs)[i] = g_strdup (proc->prog);
(*types_strs)[i] = g_strdup (proc->image_types);
- (*realname_strs)[i] = g_strdup (GIMP_OBJECT (proc)->name);
+ (*realname_strs)[i] = g_strdup (gimp_object_get_name (proc));
(*time_ints)[i] = proc->mtime;
g_free (name);
diff --git a/app/plug-in/gimppluginmanager-restore.c b/app/plug-in/gimppluginmanager-restore.c
index 9077698..551271e 100644
--- a/app/plug-in/gimppluginmanager-restore.c
+++ b/app/plug-in/gimppluginmanager-restore.c
@@ -438,9 +438,9 @@ gimp_plug_in_manager_run_extensions (GimpPlugInManager *manager,
GError *error = NULL;
if (gimp->be_verbose)
- g_print ("Starting extension: '%s'\n", GIMP_OBJECT (proc)->name);
+ g_print ("Starting extension: '%s'\n", gimp_object_get_name (proc));
- status_callback (NULL, GIMP_OBJECT (proc)->name,
+ status_callback (NULL, gimp_object_get_name (proc),
(gdouble) nth / (gdouble) n_extensions);
args = g_value_array_new (0);
@@ -633,7 +633,7 @@ gimp_plug_in_manager_add_to_db (GimpPlugInManager *manager,
gimp_pdb_execute_procedure_by_name (manager->gimp->pdb,
context, NULL, &error,
"gimp-register-save-handler",
- G_TYPE_STRING, GIMP_OBJECT (proc)->name,
+ G_TYPE_STRING, gimp_object_get_name (proc),
G_TYPE_STRING, proc->extensions,
G_TYPE_STRING, proc->prefixes,
G_TYPE_NONE);
@@ -644,7 +644,7 @@ gimp_plug_in_manager_add_to_db (GimpPlugInManager *manager,
gimp_pdb_execute_procedure_by_name (manager->gimp->pdb,
context, NULL, &error,
"gimp-register-magic-load-handler",
- G_TYPE_STRING, GIMP_OBJECT (proc)->name,
+ G_TYPE_STRING, gimp_object_get_name (proc),
G_TYPE_STRING, proc->extensions,
G_TYPE_STRING, proc->prefixes,
G_TYPE_STRING, proc->magics,
diff --git a/app/plug-in/gimppluginmanager.c b/app/plug-in/gimppluginmanager.c
index 4121eb6..c5719b5 100644
--- a/app/plug-in/gimppluginmanager.c
+++ b/app/plug-in/gimppluginmanager.c
@@ -346,8 +346,8 @@ gimp_plug_in_manager_add_procedure (GimpPlugInManager *manager,
{
GimpPlugInProcedure *tmp_proc = list->data;
- if (strcmp (GIMP_OBJECT (procedure)->name,
- GIMP_OBJECT (tmp_proc)->name) == 0)
+ if (strcmp (gimp_object_get_name (procedure),
+ gimp_object_get_name (tmp_proc)) == 0)
{
GSList *list2;
@@ -355,7 +355,7 @@ gimp_plug_in_manager_add_procedure (GimpPlugInManager *manager,
g_printerr ("Removing duplicate PDB procedure '%s' "
"registered by '%s'\n",
- GIMP_OBJECT (tmp_proc)->name,
+ gimp_object_get_name (tmp_proc),
gimp_filename_to_utf8 (tmp_proc->prog));
/* search the plugin list to see if any plugins had references to
diff --git a/app/plug-in/gimppluginprocedure.c b/app/plug-in/gimppluginprocedure.c
index 694dd81..d2a6d72 100644
--- a/app/plug-in/gimppluginprocedure.c
+++ b/app/plug-in/gimppluginprocedure.c
@@ -280,7 +280,7 @@ gimp_plug_in_procedure_find (GSList *list,
{
GimpObject *object = l->data;
- if (! strcmp (proc_name, object->name))
+ if (! strcmp (proc_name, gimp_object_get_name (object)))
return GIMP_PLUG_IN_PROCEDURE (object);
}
@@ -358,7 +358,7 @@ gimp_plug_in_procedure_add_menu_path (GimpPlugInProcedure *proc,
"The menu path must look like either \"<Prefix>\" "
"or \"<Prefix>/path/to/item\".",
basename, gimp_filename_to_utf8 (proc->prog),
- GIMP_OBJECT (proc)->name,
+ gimp_object_get_name (proc),
menu_path);
goto failure;
}
@@ -481,7 +481,7 @@ gimp_plug_in_procedure_add_menu_path (GimpPlugInProcedure *proc,
"\"<Brushes>\", \"<Gradients>\", \"<Palettes>\", "
"\"<Patterns>\" or \"<Buffers>\".",
basename, gimp_filename_to_utf8 (proc->prog),
- GIMP_OBJECT (proc)->name,
+ gimp_object_get_name (proc),
menu_path);
goto failure;
}
@@ -513,7 +513,7 @@ gimp_plug_in_procedure_add_menu_path (GimpPlugInProcedure *proc,
"which does not take the standard %s Plug-In "
"arguments: (%s).",
basename, gimp_filename_to_utf8 (proc->prog),
- prefix, GIMP_OBJECT (proc)->name, prefix,
+ prefix, gimp_object_get_name (proc), prefix,
required);
g_free (prefix);
@@ -677,9 +677,9 @@ gimp_plug_in_procedure_get_help_id (const GimpPlugInProcedure *proc)
domain = gimp_plug_in_procedure_get_help_domain (proc);
if (domain)
- return g_strconcat (domain, "?", GIMP_OBJECT (proc)->name, NULL);
+ return g_strconcat (domain, "?", gimp_object_get_name (proc), NULL);
- return g_strdup (GIMP_OBJECT (proc)->name);
+ return g_strdup (gimp_object_get_name (proc));
}
gboolean
diff --git a/app/vectors/gimpstroke.c b/app/vectors/gimpstroke.c
index 811e4fe..deff85f 100644
--- a/app/vectors/gimpstroke.c
+++ b/app/vectors/gimpstroke.c
@@ -988,7 +988,7 @@ gimp_stroke_real_duplicate (const GimpStroke *stroke)
GList *list;
new_stroke = g_object_new (G_TYPE_FROM_INSTANCE (stroke),
- "name", GIMP_OBJECT (stroke)->name,
+ "name", gimp_object_get_name (stroke),
NULL);
new_stroke->anchors = g_list_copy (stroke->anchors);
diff --git a/app/widgets/gimpbrushselect.c b/app/widgets/gimpbrushselect.c
index 3088c6a..c730607 100644
--- a/app/widgets/gimpbrushselect.c
+++ b/app/widgets/gimpbrushselect.c
@@ -273,7 +273,7 @@ gimp_brush_select_run_callback (GimpPdbDialog *dialog,
dialog->caller_context,
NULL, error,
dialog->callback_name,
- G_TYPE_STRING, object->name,
+ G_TYPE_STRING, gimp_object_get_name (object),
G_TYPE_DOUBLE, gimp_context_get_opacity (dialog->context) * 100.0,
GIMP_TYPE_INT32, GIMP_BRUSH_SELECT (dialog)->spacing,
GIMP_TYPE_INT32, gimp_context_get_paint_mode (dialog->context),
diff --git a/app/widgets/gimpdialogfactory.c b/app/widgets/gimpdialogfactory.c
index aba5cbe..60f59e6 100644
--- a/app/widgets/gimpdialogfactory.c
+++ b/app/widgets/gimpdialogfactory.c
@@ -201,10 +201,10 @@ gimp_dialog_factory_dispose (GObject *object)
factory->session_infos = NULL;
}
- if (strcmp (GIMP_OBJECT (factory)->name, "toolbox") == 0)
+ if (strcmp (gimp_object_get_name (factory), "toolbox") == 0)
key = "";
else
- key = GIMP_OBJECT (factory)->name;
+ key = (gpointer)gimp_object_get_name (factory);
g_hash_table_remove (GIMP_DIALOG_FACTORY_GET_CLASS (object)->factories,
key);
@@ -270,7 +270,7 @@ gimp_dialog_factory_new (const gchar *name,
if (strcmp (name, "toolbox") == 0)
key = "";
else
- key = GIMP_OBJECT (factory)->name;
+ key = (gpointer)gimp_object_get_name (factory);
g_hash_table_insert (GIMP_DIALOG_FACTORY_GET_CLASS (factory)->factories,
key, factory);
diff --git a/app/widgets/gimpfontselect.c b/app/widgets/gimpfontselect.c
index a8fef8d..18477b1 100644
--- a/app/widgets/gimpfontselect.c
+++ b/app/widgets/gimpfontselect.c
@@ -112,7 +112,7 @@ gimp_font_select_run_callback (GimpPdbDialog *dialog,
dialog->caller_context,
NULL, error,
dialog->callback_name,
- G_TYPE_STRING, object->name,
+ G_TYPE_STRING, gimp_object_get_name (object),
GIMP_TYPE_INT32, closing,
G_TYPE_NONE);
}
diff --git a/app/widgets/gimpgradientselect.c b/app/widgets/gimpgradientselect.c
index b203035..5e08758 100644
--- a/app/widgets/gimpgradientselect.c
+++ b/app/widgets/gimpgradientselect.c
@@ -169,7 +169,7 @@ gimp_gradient_select_run_callback (GimpPdbDialog *dialog,
dialog->caller_context,
NULL, error,
dialog->callback_name,
- G_TYPE_STRING, object->name,
+ G_TYPE_STRING, gimp_object_get_name (object),
GIMP_TYPE_INT32, array->length / sizeof (gdouble),
GIMP_TYPE_FLOAT_ARRAY, array,
GIMP_TYPE_INT32, closing,
diff --git a/app/widgets/gimppaletteselect.c b/app/widgets/gimppaletteselect.c
index ca861f6..8d308a9 100644
--- a/app/widgets/gimppaletteselect.c
+++ b/app/widgets/gimppaletteselect.c
@@ -116,7 +116,7 @@ gimp_palette_select_run_callback (GimpPdbDialog *dialog,
dialog->caller_context,
NULL, error,
dialog->callback_name,
- G_TYPE_STRING, object->name,
+ G_TYPE_STRING, gimp_object_get_name (object),
GIMP_TYPE_INT32, palette->n_colors,
GIMP_TYPE_INT32, closing,
G_TYPE_NONE);
diff --git a/app/widgets/gimppatternselect.c b/app/widgets/gimppatternselect.c
index 3526c2f..51e221e 100644
--- a/app/widgets/gimppatternselect.c
+++ b/app/widgets/gimppatternselect.c
@@ -123,7 +123,7 @@ gimp_pattern_select_run_callback (GimpPdbDialog *dialog,
dialog->caller_context,
NULL, error,
dialog->callback_name,
- G_TYPE_STRING, object->name,
+ G_TYPE_STRING, gimp_object_get_name (object),
GIMP_TYPE_INT32, pattern->mask->width,
GIMP_TYPE_INT32, pattern->mask->height,
GIMP_TYPE_INT32, pattern->mask->bytes,
diff --git a/app/widgets/gimptemplateeditor.c b/app/widgets/gimptemplateeditor.c
index 134f8e2..7f2cca8 100644
--- a/app/widgets/gimptemplateeditor.c
+++ b/app/widgets/gimptemplateeditor.c
@@ -695,6 +695,6 @@ gimp_template_editor_icon_changed (GimpContext *context,
GimpTemplateEditor *editor)
{
g_object_set (editor->template,
- "stock-id", GIMP_OBJECT (template)->name,
+ "stock-id", gimp_object_get_name (template),
NULL);
}
diff --git a/app/widgets/gimptooldialog.c b/app/widgets/gimptooldialog.c
index 8994e98..e15df21 100644
--- a/app/widgets/gimptooldialog.c
+++ b/app/widgets/gimptooldialog.c
@@ -80,7 +80,7 @@ gimp_tool_dialog_new (GimpToolInfo *tool_info,
dialog = g_object_new (GIMP_TYPE_TOOL_DIALOG,
"title", tool_info->blurb,
- "role", GIMP_OBJECT (tool_info)->name,
+ "role", gimp_object_get_name (tool_info),
"help-func", gimp_standard_help_func,
"help-id", tool_info->help_id,
"stock-id", stock_id,
@@ -92,7 +92,7 @@ gimp_tool_dialog_new (GimpToolInfo *tool_info,
gimp_dialog_add_buttons_valist (GIMP_DIALOG (dialog), args);
va_end (args);
- identifier = g_strconcat (GIMP_OBJECT (tool_info)->name, "-dialog", NULL);
+ identifier = g_strconcat (gimp_object_get_name (tool_info), "-dialog", NULL);
gimp_dialog_factory_add_foreign (gimp_dialog_factory_from_name ("toplevel"),
identifier,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]