Move the ResizeMethod enum to Vala
This commit is contained in:
parent
666dce73ab
commit
f203171443
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user