astyle formatting for sesman config.h and chansrv clipboard
This commit is contained in:
parent
0cd13e7e86
commit
0d8a49ab13
@ -185,38 +185,38 @@ x-special/gnome-copied-files
|
|||||||
#define LOG_LEVEL LOG_ERROR
|
#define LOG_LEVEL LOG_ERROR
|
||||||
|
|
||||||
#define log_error(_params...) \
|
#define log_error(_params...) \
|
||||||
{ \
|
{ \
|
||||||
g_write("[%10.10u]: CLIPBOARD %s: %d : ERROR: ", \
|
g_write("[%10.10u]: CLIPBOARD %s: %d : ERROR: ", \
|
||||||
g_time3(), __func__, __LINE__); \
|
g_time3(), __func__, __LINE__); \
|
||||||
g_writeln (_params); \
|
g_writeln (_params); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define log_always(_params...) \
|
#define log_always(_params...) \
|
||||||
{ \
|
{ \
|
||||||
g_write("[%10.10u]: CLIPBOARD %s: %d : ALWAYS: ", \
|
g_write("[%10.10u]: CLIPBOARD %s: %d : ALWAYS: ", \
|
||||||
g_time3(), __func__, __LINE__); \
|
g_time3(), __func__, __LINE__); \
|
||||||
g_writeln (_params); \
|
g_writeln (_params); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define log_info(_params...) \
|
#define log_info(_params...) \
|
||||||
{ \
|
{ \
|
||||||
if (LOG_INFO <= LOG_LEVEL) \
|
if (LOG_INFO <= LOG_LEVEL) \
|
||||||
{ \
|
{ \
|
||||||
g_write("[%10.10u]: CLIPBOARD %s: %d : ", \
|
g_write("[%10.10u]: CLIPBOARD %s: %d : ", \
|
||||||
g_time3(), __func__, __LINE__); \
|
g_time3(), __func__, __LINE__); \
|
||||||
g_writeln (_params); \
|
g_writeln (_params); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define log_debug(_params...) \
|
#define log_debug(_params...) \
|
||||||
{ \
|
{ \
|
||||||
if (LOG_DEBUG <= LOG_LEVEL) \
|
if (LOG_DEBUG <= LOG_LEVEL) \
|
||||||
{ \
|
{ \
|
||||||
g_write("[%10.10u]: CLIPBOARD %s: %d : ", \
|
g_write("[%10.10u]: CLIPBOARD %s: %d : ", \
|
||||||
g_time3(), __func__, __LINE__); \
|
g_time3(), __func__, __LINE__); \
|
||||||
g_writeln (_params); \
|
g_writeln (_params); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
static char g_bmp_image_header[] =
|
static char g_bmp_image_header[] =
|
||||||
{
|
{
|
||||||
@ -286,10 +286,10 @@ static int g_file_format_id = -1;
|
|||||||
static char g_last_atom_name[256] = "";
|
static char g_last_atom_name[256] = "";
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
static char*
|
static char *
|
||||||
get_atom_text(Atom atom)
|
get_atom_text(Atom atom)
|
||||||
{
|
{
|
||||||
char* name;
|
char *name;
|
||||||
int failed;
|
int failed;
|
||||||
|
|
||||||
failed = 0;
|
failed = 0;
|
||||||
@ -1717,7 +1717,8 @@ clipboard_event_selection_owner_notify(XEvent *xevent)
|
|||||||
|
|
||||||
g_got_selection = 0;
|
g_got_selection = 0;
|
||||||
if (lxevent->owner != 0) /* nil owner comes when selection */
|
if (lxevent->owner != 0) /* nil owner comes when selection */
|
||||||
{ /* window is closed */
|
{
|
||||||
|
/* window is closed */
|
||||||
XConvertSelection(g_display, g_clipboard_atom, g_targets_atom,
|
XConvertSelection(g_display, g_clipboard_atom, g_targets_atom,
|
||||||
g_clip_property_atom, g_wnd, lxevent->timestamp);
|
g_clip_property_atom, g_wnd, lxevent->timestamp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user