clutter: Drop _() define
It's an unused no-op, we can do without it. https://gitlab.gnome.org/GNOME/mutter/merge_requests/672
This commit is contained in:
parent
2ca351366e
commit
d6aaef9954
5 changed files with 12 additions and 13 deletions
|
@ -399,7 +399,7 @@ clutter_backend_real_create_context (ClutterBackend *backend,
|
|||
else
|
||||
g_set_error_literal (error, CLUTTER_INIT_ERROR,
|
||||
CLUTTER_INIT_ERROR_BACKEND,
|
||||
_("Unable to initialize the Clutter backend: no available drivers found."));
|
||||
"Unable to initialize the Clutter backend: no available drivers found.");
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -256,7 +256,7 @@ clutter_image_set_data (ClutterImage *image,
|
|||
{
|
||||
g_set_error_literal (error, CLUTTER_IMAGE_ERROR,
|
||||
CLUTTER_IMAGE_ERROR_INVALID_DATA,
|
||||
_("Unable to load image data"));
|
||||
"Unable to load image data");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -325,7 +325,7 @@ clutter_image_set_bytes (ClutterImage *image,
|
|||
{
|
||||
g_set_error_literal (error, CLUTTER_IMAGE_ERROR,
|
||||
CLUTTER_IMAGE_ERROR_INVALID_DATA,
|
||||
_("Unable to load image data"));
|
||||
"Unable to load image data");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -419,7 +419,7 @@ clutter_image_set_area (ClutterImage *image,
|
|||
{
|
||||
g_set_error_literal (error, CLUTTER_IMAGE_ERROR,
|
||||
CLUTTER_IMAGE_ERROR_INVALID_DATA,
|
||||
_("Unable to load image data"));
|
||||
"Unable to load image data");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -1279,8 +1279,8 @@ clutter_get_option_group (void)
|
|||
context = _clutter_context_get_default ();
|
||||
|
||||
group = g_option_group_new ("clutter",
|
||||
_("Clutter Options"),
|
||||
_("Show Clutter Options"),
|
||||
"Clutter Options",
|
||||
"Show Clutter Options",
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
|
|
|
@ -85,7 +85,6 @@ typedef struct _ClutterVertex4 ClutterVertex4;
|
|||
/* keep this for source compatibility with clutter */
|
||||
#define P_(String) (String)
|
||||
#define N_(String) (String)
|
||||
#define _(String) (String)
|
||||
|
||||
/* This is a replacement for the nearbyint function which always rounds to the
|
||||
* nearest integer. nearbyint is apparently a C99 function so it might not
|
||||
|
|
|
@ -1563,7 +1563,7 @@ clutter_texture_set_from_data (ClutterTexture *texture,
|
|||
|
||||
g_set_error (&inner_error, CLUTTER_TEXTURE_ERROR,
|
||||
CLUTTER_TEXTURE_ERROR_BAD_FORMAT,
|
||||
_("Failed to load the image data"));
|
||||
"Failed to load the image data");
|
||||
|
||||
g_signal_emit (texture, texture_signals[LOAD_FINISHED], 0, inner_error);
|
||||
|
||||
|
@ -1722,7 +1722,7 @@ clutter_texture_set_from_yuv_data (ClutterTexture *texture,
|
|||
{
|
||||
g_set_error (error, CLUTTER_TEXTURE_ERROR,
|
||||
CLUTTER_TEXTURE_ERROR_NO_YUV,
|
||||
_("YUV textures are not supported"));
|
||||
"YUV textures are not supported");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -1731,7 +1731,7 @@ clutter_texture_set_from_yuv_data (ClutterTexture *texture,
|
|||
{
|
||||
g_set_error (error, CLUTTER_TEXTURE_ERROR,
|
||||
CLUTTER_TEXTURE_ERROR_BAD_FORMAT,
|
||||
_("YUV2 textures are not supported"));
|
||||
"YUV2 textures are not supported");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -1958,7 +1958,7 @@ clutter_texture_async_load (ClutterTexture *self,
|
|||
{
|
||||
g_set_error (error, CLUTTER_TEXTURE_ERROR,
|
||||
CLUTTER_TEXTURE_ERROR_BAD_FORMAT,
|
||||
_("Failed to load the image data"));
|
||||
"Failed to load the image data");
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
|
@ -2055,7 +2055,7 @@ clutter_texture_set_from_file (ClutterTexture *texture,
|
|||
{
|
||||
g_set_error (&internal_error, CLUTTER_TEXTURE_ERROR,
|
||||
CLUTTER_TEXTURE_ERROR_BAD_FORMAT,
|
||||
_("Failed to load the image data"));
|
||||
"Failed to load the image data");
|
||||
}
|
||||
|
||||
if (internal_error != NULL)
|
||||
|
@ -2357,7 +2357,7 @@ clutter_texture_set_area_from_rgb_data (ClutterTexture *texture,
|
|||
{
|
||||
g_set_error (error, CLUTTER_TEXTURE_ERROR,
|
||||
CLUTTER_TEXTURE_ERROR_BAD_FORMAT,
|
||||
_("Failed to load the image data"));
|
||||
"Failed to load the image data");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue