diff --git a/src/c-api.vapi b/src/c-api.vapi index a1294d5..001ea6c 100644 --- a/src/c-api.vapi +++ b/src/c-api.vapi @@ -41,13 +41,6 @@ namespace Matrix { public static GLib.Quark quark (); } - [CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_RESIZE_METHOD_")] - public enum ResizeMethod { - DEFAULT, - CROP, - SCALE; - } - [CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_PRESENCE_")] public enum Presence { UNKNOWN, diff --git a/src/matrix-enums.vala b/src/matrix-enums.vala index 8638696..1aac46d 100644 --- a/src/matrix-enums.vala +++ b/src/matrix-enums.vala @@ -26,6 +26,15 @@ namespace Matrix { FEDERATION; /// return the raw event as receieved over federation } + /** + * Resizing methods for matrix_api_media_thumbnail(). + */ + public enum ResizeMethod { + DEFAULT, /// use the server default value + CROP, /// crop thumbnail to the requested size + SCALE; /// scale thumbnail to the requested size + } + public string? _g_enum_value_to_nick(Type enum_type, int value, diff --git a/src/matrix-types.c b/src/matrix-types.c index 2892601..5b221df 100644 --- a/src/matrix-types.c +++ b/src/matrix-types.c @@ -136,15 +136,6 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error); * rules. */ -/** - * MatrixResizeMethod: - * @MATRIX_RESIZE_METHOD_DEFAULT: use the server default value - * @MATRIX_RESIZE_METHOD_CROP: crop thumbnail to the requested size - * @MATRIX_RESIZE_METHOD_SCALE: scale thumbnail to the requested size - * - * Resizing methods for matrix_api_media_thumbnail(). - */ - /** * MatrixPresence: * @MATRIX_PRESENCE_UNKNOWN: user's presence is unknown diff --git a/src/matrix-types.h b/src/matrix-types.h index d674c46..2470bf2 100644 --- a/src/matrix-types.h +++ b/src/matrix-types.h @@ -72,12 +72,6 @@ typedef enum { #define MATRIX_ERROR matrix_error_quark() GQuark matrix_error_quark(void); -typedef enum { - MATRIX_RESIZE_METHOD_DEFAULT, - MATRIX_RESIZE_METHOD_CROP, - MATRIX_RESIZE_METHOD_SCALE -} MatrixResizeMethod; - typedef enum { MATRIX_PRESENCE_UNKNOWN, MATRIX_PRESENCE_ONLINE,