uniqueapp.h | uniqueapp.h | |||
---|---|---|---|---|
skipping to change at line 61 | skipping to change at line 61 | |||
* unique_command_register() before creating the UniqueApp instance. | * unique_command_register() before creating the UniqueApp instance. | |||
*/ | */ | |||
typedef enum { /*< prefix=UNIQUE >*/ | typedef enum { /*< prefix=UNIQUE >*/ | |||
UNIQUE_INVALID = 0, | UNIQUE_INVALID = 0, | |||
UNIQUE_ACTIVATE = -1, | UNIQUE_ACTIVATE = -1, | |||
UNIQUE_NEW = -2, | UNIQUE_NEW = -2, | |||
UNIQUE_OPEN = -3, | UNIQUE_OPEN = -3, | |||
UNIQUE_CLOSE = -4 | UNIQUE_CLOSE = -4 | |||
} UniqueCommand; | } UniqueCommand; | |||
GType unique_command_get_type (void) G_GNUC_CONST; | ||||
/** | /** | |||
* UniqueResponse: | * UniqueResponse: | |||
* @UNIQUE_RESPONSE_INVALID: Internal error code, should never be used. | * @UNIQUE_RESPONSE_INVALID: Internal error code, should never be used. | |||
* @UNIQUE_RESPONSE_OK: The command was successfully executed. | * @UNIQUE_RESPONSE_OK: The command was successfully executed. | |||
* @UNIQUE_RESPONSE_CANCEL: The command was cancelled by the user. | * @UNIQUE_RESPONSE_CANCEL: The command was cancelled by the user. | |||
* @UNIQUE_RESPONSE_FAIL: The command failed due to a IPC failure. | * @UNIQUE_RESPONSE_FAIL: The command failed due to a IPC failure. | |||
* @UNIQUE_RESPONSE_PASSTHROUGH: The command was not handled | * @UNIQUE_RESPONSE_PASSTHROUGH: The command was not handled | |||
* | * | |||
* Response that a currently active instance of the application should | * Response that a currently active instance of the application should | |||
* return to the caller which sent a command. | * return to the caller which sent a command. | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||
uniquemessage.h | uniquemessage.h | |||
---|---|---|---|---|
skipping to change at line 43 | skipping to change at line 43 | |||
* UniqueMessageData: | * UniqueMessageData: | |||
* | * | |||
* #UniqueMessageData contains the data passed between instances of | * #UniqueMessageData contains the data passed between instances of | |||
* a #UniqueApp. The #UniqueMessageData structure received inside | * a #UniqueApp. The #UniqueMessageData structure received inside | |||
* the signal handlers for UniqueApp::message-received is guaranteed | * the signal handlers for UniqueApp::message-received is guaranteed | |||
* to contain the #GdkScreen, the workspace and the startup notification | * to contain the #GdkScreen, the workspace and the startup notification | |||
* id of the instance sending the message. | * id of the instance sending the message. | |||
*/ | */ | |||
typedef struct _UniqueMessageData UniqueMessageData; | typedef struct _UniqueMessageData UniqueMessageData; | |||
GType unique_message_data_get_type (void) G_GNUC_CONS | GType unique_message_data_get_type (void) G_GNUC_CON | |||
T; | ST; | |||
UniqueMessageData * unique_message_data_new (void); | UniqueMessageData * unique_message_data_new (void); | |||
UniqueMessageData * unique_message_data_copy (UniqueMessageData | UniqueMessageData * unique_message_data_copy (UniqueMessageDat | |||
*message_data); | a *message_data); | |||
void unique_message_data_free (UniqueMessageData | void unique_message_data_free (UniqueMessageDat | |||
*message_data); | a *message_data); | |||
void unique_message_data_set (UniqueMessageData | void unique_message_data_set (UniqueMessageDat | |||
*message_data, | a *message_data, | |||
const guchar | const guchar | |||
*data, | *data, | |||
gsize | gsize | |||
length); | length); | |||
gboolean unique_message_data_set_text (UniqueMessageData | G_CONST_RETURN guchar *unique_message_data_get (UniqueMessageDat | |||
*message_data, | a *message_data, | |||
const gchar | gsize | |||
*str, | *length); | |||
gssize | ||||
length); | ||||
gchar * unique_message_data_get_text (UniqueMessageData | ||||
*message_data); | ||||
gboolean unique_message_data_set_uris (UniqueMessageData | ||||
*message_data, | ||||
gchar | ||||
**uris); | ||||
gchar ** unique_message_data_get_uris (UniqueMessageData | ||||
*message_data); | ||||
GdkScreen * unique_message_data_get_screen (UniqueMessageData | gboolean unique_message_data_set_text (UniqueMessageDat | |||
*message_data); | a *message_data, | |||
G_CONST_RETURN gchar *unique_message_data_get_startup_id (UniqueMessageData | const gchar | |||
*message_data); | *str, | |||
guint unique_message_data_get_workspace (UniqueMessageData | gssize | |||
*message_data); | length); | |||
gchar * unique_message_data_get_text (UniqueMessageDat | ||||
a *message_data); | ||||
gboolean unique_message_data_set_uris (UniqueMessageDat | ||||
a *message_data, | ||||
gchar | ||||
**uris); | ||||
gchar ** unique_message_data_get_uris (UniqueMessageDat | ||||
a *message_data); | ||||
void unique_message_data_set_filename (UniqueMessageDat | ||||
a *message_data, | ||||
const gchar | ||||
*filename); | ||||
gchar * unique_message_data_get_filename (UniqueMessageDat | ||||
a *message_data); | ||||
GdkScreen * unique_message_data_get_screen (UniqueMessageDat | ||||
a *message_data); | ||||
G_CONST_RETURN gchar * unique_message_data_get_startup_id (UniqueMessageDat | ||||
a *message_data); | ||||
guint unique_message_data_get_workspace (UniqueMessageDat | ||||
a *message_data); | ||||
G_END_DECLS | G_END_DECLS | |||
#endif /* __UNIQUE_MESSAGE_H__ */ | #endif /* __UNIQUE_MESSAGE_H__ */ | |||
End of changes. 3 change blocks. | ||||
33 lines changed or deleted | 44 lines changed or added | |||
uniqueversion.h | uniqueversion.h | |||
---|---|---|---|---|
skipping to change at line 51 | skipping to change at line 51 | |||
* | * | |||
* Minor version of Unique | * Minor version of Unique | |||
*/ | */ | |||
#define UNIQUE_MINOR_VERSION (0) | #define UNIQUE_MINOR_VERSION (0) | |||
/** | /** | |||
* UNIQUE_MICRO_VERSION: | * UNIQUE_MICRO_VERSION: | |||
* | * | |||
* Micro version of Unique | * Micro version of Unique | |||
*/ | */ | |||
#define UNIQUE_MICRO_VERSION (0) | #define UNIQUE_MICRO_VERSION (2) | |||
/** | /** | |||
* UNIQUE_VERSION_S: | * UNIQUE_VERSION_S: | |||
* | * | |||
* Unique version as a string | * Unique version as a string | |||
*/ | */ | |||
#define UNIQUE_VERSION_S "1.0.0" | #define UNIQUE_VERSION_S "1.0.2" | |||
/** | /** | |||
* UNIQUE_VERSION_HEX: | * UNIQUE_VERSION_HEX: | |||
* | * | |||
* Unique version as an hexadecimal integer | * Unique version as an hexadecimal integer | |||
*/ | */ | |||
#define UNIQUE_VERSION_HEX (UNIQUE_MAJOR_VERSION << 16 | \ | #define UNIQUE_VERSION_HEX (UNIQUE_MAJOR_VERSION << 16 | \ | |||
UNIQUE_MINOR_VERSION << 8 | \ | UNIQUE_MINOR_VERSION << 8 | \ | |||
UNIQUE_MICRO_VERSION) | UNIQUE_MICRO_VERSION) | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||