mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimp, dialogs, plug-ins: Minor fixes
- Replaces GimpRGB in Channel Dialog with gdouble array, as was done in channel_options_color_changed () - Replace %ld with G_GSIZE_FORMAT in libgimp checkboard color message to fix warning in Windows build - Set file-gih documentation text as translatable.
This commit is contained in:
parent
4f14e89ed9
commit
917506d16e
3 changed files with 16 additions and 16 deletions
|
@ -99,7 +99,7 @@ channel_options_dialog_new (GimpImage *image,
|
|||
GtkWidget *dialog;
|
||||
GtkAdjustment *opacity_adj;
|
||||
GtkWidget *scale;
|
||||
GimpRGB rgb;
|
||||
gdouble rgba[4];
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
|
||||
g_return_val_if_fail (channel == NULL || GIMP_IS_CHANNEL (channel), NULL);
|
||||
|
@ -140,8 +140,8 @@ channel_options_dialog_new (GimpImage *image,
|
|||
g_object_weak_ref (G_OBJECT (dialog),
|
||||
(GWeakNotify) channel_options_dialog_free, private);
|
||||
|
||||
gegl_color_get_pixel (channel_color, babl_format ("R'G'B'A double"), &rgb);
|
||||
opacity_adj = gtk_adjustment_new (rgb.a * 100.0,
|
||||
gegl_color_get_pixel (channel_color, babl_format ("R'G'B'A double"), rgba);
|
||||
opacity_adj = gtk_adjustment_new (rgba[3] * 100.0,
|
||||
0.0, 100.0, 1.0, 10.0, 0);
|
||||
scale = gimp_spin_scale_new (opacity_adj, NULL, 1);
|
||||
gtk_widget_set_size_request (scale, 200, -1);
|
||||
|
|
|
@ -1122,7 +1122,7 @@ _gimp_config (GPConfig *config)
|
|||
format = babl_format_with_space (config->check_custom_encoding1, space);
|
||||
if (bpp != babl_format_get_bytes_per_pixel (format))
|
||||
{
|
||||
g_warning ("%s: checker board color 1's format expects %d bpp but %ld bytes were passed.",
|
||||
g_warning ("%s: checker board color 1's format expects %d bpp but %" G_GSIZE_FORMAT " bytes were passed.",
|
||||
G_STRFUNC, babl_format_get_bytes_per_pixel (format), bpp);
|
||||
gegl_color_set_pixel (_check_custom_color1, babl_format ("R'G'B'A double"), &GIMP_CHECKS_CUSTOM_COLOR1);
|
||||
}
|
||||
|
@ -1141,7 +1141,7 @@ _gimp_config (GPConfig *config)
|
|||
format = babl_format_with_space (config->check_custom_encoding2, space);
|
||||
if (bpp != babl_format_get_bytes_per_pixel (format))
|
||||
{
|
||||
g_warning ("%s: checker board color 2's format expects %d bpp but %ld bytes were passed.",
|
||||
g_warning ("%s: checker board color 2's format expects %d bpp but %" G_GSIZE_FORMAT " bytes were passed.",
|
||||
G_STRFUNC, babl_format_get_bytes_per_pixel (format), bpp);
|
||||
gegl_color_set_pixel (_check_custom_color2, babl_format ("R'G'B'A double"), &GIMP_CHECKS_CUSTOM_COLOR2);
|
||||
}
|
||||
|
|
|
@ -158,16 +158,16 @@ gih_create_procedure (GimpPlugIn *plug_in,
|
|||
gimp_procedure_set_icon_name (procedure, GIMP_ICON_BRUSH);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
"exports images in GIMP brush pipe "
|
||||
"format",
|
||||
"This plug-in exports an image in "
|
||||
"the GIMP brush pipe format. For a "
|
||||
"colored brush pipe, RGBA layers are "
|
||||
"used, otherwise the layers should be "
|
||||
"grayscale masks. The image can be "
|
||||
"multi-layered, and additionally the "
|
||||
"layers can be divided into a "
|
||||
"rectangular array of brushes.",
|
||||
_("Exports images in GIMP Brush Pipe "
|
||||
"format"),
|
||||
_("This plug-in exports an image in "
|
||||
"the GIMP brush pipe format. For a "
|
||||
"colored brush pipe, RGBA layers are "
|
||||
"used, otherwise the layers should be "
|
||||
"grayscale masks. The image can be "
|
||||
"multi-layered, and additionally the "
|
||||
"layers can be divided into a "
|
||||
"rectangular array of brushes."),
|
||||
SAVE_PROC);
|
||||
gimp_procedure_set_attribution (procedure,
|
||||
"Tor Lillqvist",
|
||||
|
@ -220,7 +220,7 @@ gih_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
GIMP_PROC_ARG_STRV (procedure, "selection-modes",
|
||||
"Selection modes",
|
||||
"Selection modes",
|
||||
_("Selection modes"),
|
||||
GIMP_PARAM_READWRITE);
|
||||
|
||||
/* Auxiliary arguments. Only useful for the GUI, to pass info around. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue