Commit 49a0be73 authored by Martin Nordholts's avatar Martin Nordholts

app: s/gimp_drawable_is_text_layer/gimp_item_is_text_layer/g

parent 1e96a981
......@@ -572,7 +572,7 @@ layers_actions_update (GimpActionGroup *group,
}
}
text_layer = gimp_drawable_is_text_layer (GIMP_DRAWABLE (layer));
text_layer = gimp_item_is_text_layer (GIMP_DRAWABLE (layer));
}
}
......
......@@ -159,7 +159,7 @@ layers_text_tool_cmd_callback (GtkAction *action,
return_if_no_layer (image, layer, data);
return_if_no_widget (widget, data);
if (! gimp_drawable_is_text_layer (GIMP_DRAWABLE (layer)))
if (! gimp_item_is_text_layer (GIMP_DRAWABLE (layer)))
{
layers_edit_attributes_cmd_callback (action, data);
return;
......@@ -1049,7 +1049,7 @@ layers_edit_layer_response (GtkWidget *widget,
}
if (dialog->rename_toggle &&
gimp_drawable_is_text_layer (GIMP_DRAWABLE (layer)))
gimp_item_is_text_layer (GIMP_DRAWABLE (layer)))
{
g_object_set (layer,
"auto-rename",
......
......@@ -157,7 +157,7 @@ text_tool_actions_update (GimpActionGroup *group,
layer = gimp_image_get_active_layer (image);
if (layer)
text_layer = gimp_drawable_is_text_layer (GIMP_DRAWABLE (layer));
text_layer = gimp_item_is_text_layer (GIMP_DRAWABLE (layer));
vectors = gimp_image_get_active_vectors (image);
......
......@@ -211,7 +211,7 @@ layer_options_dialog_new (GimpImage *image,
else
{
/* For text layers add a toggle to control "auto-rename" */
if (gimp_drawable_is_text_layer (GIMP_DRAWABLE (layer)))
if (gimp_item_is_text_layer (GIMP_DRAWABLE (layer)))
{
options->rename_toggle =
gtk_check_button_new_with_mnemonic (_("Set name from _text"));
......@@ -240,7 +240,7 @@ layer_options_dialog_toggle_rename (GtkWidget *widget,
LayerOptionsDialog *options)
{
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)) &&
gimp_drawable_is_text_layer (GIMP_DRAWABLE (options->layer)))
gimp_item_is_text_layer (GIMP_DRAWABLE (options->layer)))
{
GimpTextLayer *text_layer = GIMP_TEXT_LAYER (options->layer);
GimpText *text = gimp_text_layer_get_text (text_layer);
......
......@@ -359,7 +359,7 @@ gimp_display_shell_dnd_bucket_fill (GimpDisplayShell *shell,
/* FIXME: there should be a virtual method for this that the
* GimpTextLayer can override.
*/
if (color && gimp_drawable_is_text_layer (drawable))
if (color && gimp_item_is_text_layer (drawable))
{
gimp_text_layer_set (GIMP_TEXT_LAYER (drawable), NULL,
"color", color,
......
......@@ -516,7 +516,7 @@ gimp_pdb_layer_is_text_layer (GimpLayer *layer,
g_return_val_if_fail (GIMP_IS_LAYER (layer), FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
if (! gimp_drawable_is_text_layer (GIMP_DRAWABLE (layer)))
if (! gimp_item_is_text_layer (GIMP_DRAWABLE (layer)))
{
g_set_error (error, GIMP_PDB_ERROR, GIMP_PDB_INVALID_ARGUMENT,
_("Layer '%s' (%d) cannot be used because it is not "
......
......@@ -197,7 +197,7 @@ item_is_text_layer_invoker (GimpProcedure *procedure,
if (success)
{
text_layer = (GIMP_IS_DRAWABLE (item) &&
gimp_drawable_is_text_layer (GIMP_DRAWABLE (item)));
gimp_item_is_text_layer (GIMP_DRAWABLE (item)));
}
return_vals = gimp_procedure_get_return_values (procedure, success,
......
......@@ -446,7 +446,7 @@ gimp_text_layer_set (GimpTextLayer *layer,
GimpText *text;
va_list var_args;
g_return_if_fail (gimp_drawable_is_text_layer ((GimpDrawable *) layer));
g_return_if_fail (gimp_item_is_text_layer ((GimpDrawable *) layer));
g_return_if_fail (gimp_item_is_attached (GIMP_ITEM (layer)));
text = gimp_text_layer_get_text (layer);
......@@ -513,7 +513,7 @@ gimp_text_layer_discard (GimpTextLayer *layer)
}
gboolean
gimp_drawable_is_text_layer (GimpDrawable *drawable)
gimp_item_is_text_layer (GimpDrawable *drawable)
{
return (GIMP_IS_TEXT_LAYER (drawable) &&
GIMP_TEXT_LAYER (drawable)->text &&
......
......@@ -67,7 +67,7 @@ void gimp_text_layer_set (GimpTextLayer *layer,
const gchar *first_property_name,
...) G_GNUC_NULL_TERMINATED;
gboolean gimp_drawable_is_text_layer (GimpDrawable *drawable);
gboolean gimp_item_is_text_layer (GimpDrawable *drawable);
#endif /* __GIMP_TEXT_LAYER_H__ */
......@@ -680,7 +680,7 @@ gimp_layer_tree_view_drop_color (GimpContainerTreeView *view,
GimpViewable *dest_viewable,
GtkTreeViewDropPosition drop_pos)
{
if (gimp_drawable_is_text_layer (GIMP_DRAWABLE (dest_viewable)))
if (gimp_item_is_text_layer (GIMP_DRAWABLE (dest_viewable)))
{
gimp_text_layer_set (GIMP_TEXT_LAYER (dest_viewable), NULL,
"color", color,
......
......@@ -67,7 +67,7 @@ gimp_view_renderer_layer_render (GimpViewRenderer *renderer,
{
stock_id = GIMP_STOCK_FLOATING_SELECTION;
}
else if (gimp_drawable_is_text_layer (GIMP_DRAWABLE (renderer->viewable)))
else if (gimp_item_is_text_layer (GIMP_DRAWABLE (renderer->viewable)))
{
stock_id = gimp_viewable_get_stock_id (renderer->viewable);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment