libgimp: rename Gimp*SelectButton widgets to Gimp*Chooser.

This name was really irking me because it's not a button (anymore? Maybe it used
to be just a button). Depending on the specific widget, it will have several
sub-widgets, including a label. And it can theoretically even be something else
than a button.

So let's just rename these widgets with the more generic "chooser" name.
This commit is contained in:
Jehan
2023-08-19 01:22:09 +02:00
parent 55d6f6c26e
commit 62a3889617
24 changed files with 578 additions and 609 deletions

View File

@ -606,23 +606,23 @@ script_fu_resource_widget (const gchar *title,
if (g_type_is_a (resource_type, GIMP_TYPE_FONT))
{
result_widget = gimp_font_select_button_new (title, title, resource);
result_widget = gimp_font_chooser_new (title, title, resource);
}
else if (g_type_is_a (resource_type, GIMP_TYPE_BRUSH))
{
result_widget = gimp_brush_select_button_new (title, title, resource);
result_widget = gimp_brush_chooser_new (title, title, resource);
}
else if (g_type_is_a (resource_type, GIMP_TYPE_GRADIENT))
{
result_widget = gimp_gradient_select_button_new (title, title, resource);
result_widget = gimp_gradient_chooser_new (title, title, resource);
}
else if (g_type_is_a (resource_type, GIMP_TYPE_PALETTE))
{
result_widget = gimp_palette_select_button_new (title, title, resource);
result_widget = gimp_palette_chooser_new (title, title, resource);
}
else if (g_type_is_a (resource_type, GIMP_TYPE_PATTERN))
{
result_widget = gimp_pattern_select_button_new (title, title, resource);
result_widget = gimp_pattern_chooser_new (title, title, resource);
}
else
{
@ -961,8 +961,8 @@ script_fu_reset (SFScript *script)
case SF_PATTERN:
case SF_GRADIENT:
case SF_BRUSH:
gimp_resource_select_button_set_resource (GIMP_RESOURCE_SELECT_BUTTON (widget),
NULL);
gimp_resource_chooser_set_resource (GIMP_RESOURCE_CHOOSER (widget),
NULL);
break;
case SF_OPTION: