| 34 # include <unistd.h> |
34 # include <unistd.h> |
| 35 #endif |
35 #endif |
| 36 |
36 |
| 37 #include "defines.h" |
37 #include "defines.h" |
| 38 |
38 |
| |
39 static GLogWriterOutput |
| |
40 nullclient_g_log_handler(G_GNUC_UNUSED GLogLevelFlags log_level, |
| |
41 G_GNUC_UNUSED const GLogField *fields, |
| |
42 G_GNUC_UNUSED gsize n_fields, |
| |
43 G_GNUC_UNUSED gpointer user_data) |
| |
44 { |
| |
45 /* We do not want any debugging for now to keep the noise to a minimum. */ |
| |
46 return G_LOG_WRITER_HANDLED; |
| |
47 } |
| |
48 |
| 39 /*** Conversation uiops ***/ |
49 /*** Conversation uiops ***/ |
| 40 static void |
50 static void |
| 41 null_write_conv(PurpleConversation *conv, PurpleMessage *msg) |
51 null_write_conv(PurpleConversation *conv, PurpleMessage *msg) |
| 42 { |
52 { |
| 43 gchar *timestamp = purple_message_format_timestamp(msg, "(%H:%M:%S)"); |
53 gchar *timestamp = purple_message_format_timestamp(msg, "(%H:%M:%S)"); |
| 76 { |
86 { |
| 77 /* Set a custom user directory (optional) */ |
87 /* Set a custom user directory (optional) */ |
| 78 purple_util_set_user_dir(CUSTOM_USER_DIRECTORY); |
88 purple_util_set_user_dir(CUSTOM_USER_DIRECTORY); |
| 79 |
89 |
| 80 /* We do not want any debugging for now to keep the noise to a minimum. */ |
90 /* We do not want any debugging for now to keep the noise to a minimum. */ |
| 81 purple_debug_set_enabled(FALSE); |
91 g_log_set_writer_func(nullclient_g_log_handler, NULL, NULL); |
| 82 |
92 |
| 83 /* Set the core-uiops, which is used to |
93 /* Set the core-uiops, which is used to |
| 84 * - initialize the ui specific preferences. |
94 * - initialize the ui specific preferences. |
| 85 * - initialize the debug ui. |
95 * - initialize the debug ui. |
| 86 * - initialize the ui components for all the modules. |
96 * - initialize the ui components for all the modules. |