libgimpbase: some code cleanup I missed.

This commit is contained in:
Jehan
2024-08-02 15:47:08 +02:00
parent 6f4f1e8ccd
commit eb1e21f9f7

View File

@ -51,7 +51,6 @@ enum
typedef struct typedef struct
{ {
gboolean delete_on_exit;
gdouble factor; gdouble factor;
gint digits; gint digits;
gchar *identifier; gchar *identifier;
@ -68,8 +67,6 @@ struct _GimpUnit
gint id; gint id;
gchar *name; gchar *name;
gboolean built_in;
gboolean delete_on_exit; gboolean delete_on_exit;
gdouble factor; gdouble factor;
gint digits; gint digits;
@ -85,21 +82,21 @@ struct _GimpUnit
static const GimpUnitDef _gimp_unit_defs[GIMP_UNIT_END] = static const GimpUnitDef _gimp_unit_defs[GIMP_UNIT_END] =
{ {
/* pseudo unit */ /* pseudo unit */
{ FALSE, 0.0, 0, "pixels", "px", "px", { 0.0, 0, "pixels", "px", "px",
NC_("unit-singular", "pixel"), NC_("unit-plural", "pixels") }, NC_("unit-singular", "pixel"), NC_("unit-plural", "pixels") },
/* standard units */ /* standard units */
{ FALSE, 1.0, 2, "inches", "''", "in", { 1.0, 2, "inches", "''", "in",
NC_("unit-singular", "inch"), NC_("unit-plural", "inches") }, NC_("unit-singular", "inch"), NC_("unit-plural", "inches") },
{ FALSE, 25.4, 1, "millimeters", "mm", "mm", { 25.4, 1, "millimeters", "mm", "mm",
NC_("unit-singular", "millimeter"), NC_("unit-plural", "millimeters") }, NC_("unit-singular", "millimeter"), NC_("unit-plural", "millimeters") },
/* professional units */ /* professional units */
{ FALSE, 72.0, 0, "points", "pt", "pt", { 72.0, 0, "points", "pt", "pt",
NC_("unit-singular", "point"), NC_("unit-plural", "points") }, NC_("unit-singular", "point"), NC_("unit-plural", "points") },
{ FALSE, 6.0, 1, "picas", "pc", "pc", { 6.0, 1, "picas", "pc", "pc",
NC_("unit-singular", "pica"), NC_("unit-plural", "picas") } NC_("unit-singular", "pica"), NC_("unit-plural", "picas") }
}; };
@ -107,7 +104,7 @@ static const GimpUnitDef _gimp_unit_defs[GIMP_UNIT_END] =
*/ */
static const GimpUnitDef _gimp_unit_percent_def = static const GimpUnitDef _gimp_unit_percent_def =
{ {
FALSE, 0.0, 0, "percent", "%", "%", 0.0, 0, "percent", "%", "%",
NC_("singular", "percent"), NC_("plural", "percent") NC_("singular", "percent"), NC_("plural", "percent")
}; };