Changeset 520
- Timestamp:
- 06/14/06 15:40:04
- Files:
-
- trunk/libtinymail/tny-account-iface.c (modified) (19 diffs)
- trunk/libtinymail/tny-account-store-iface.c (modified) (7 diffs)
- trunk/libtinymail/tny-device-iface.c (modified) (4 diffs)
- trunk/libtinymail/tny-iterator-iface.c (modified) (7 diffs)
- trunk/libtinymail/tny-list-iface.c (modified) (7 diffs)
- trunk/libtinymail/tny-msg-folder-iface.c (modified) (18 diffs)
- trunk/libtinymailui-gtk/tny-msg-header-list-model.c (modified) (2 diffs)
- trunk/libtinymailui/tny-account-store-view-iface.c (modified) (1 diff)
- trunk/libtinymailui/tny-msg-header-view-iface.c (modified) (1 diff)
- trunk/libtinymailui/tny-msg-view-iface.c (modified) (2 diffs)
- trunk/libtinymailui/tny-platform-factory-iface.c (modified) (3 diffs)
- trunk/libtinymailui/tny-save-strategy-iface.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymail/tny-account-iface.c
r410 r520 33 33 tny_account_iface_is_connected (TnyAccountIface *self) 34 34 { 35 #ifdef DEBUG 36 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->is_connected_func) 37 g_critical ("You must implement tny_account_iface_is_connected\n"); 38 #endif 39 35 40 return TNY_ACCOUNT_IFACE_GET_CLASS (self)->is_connected_func (self); 36 41 } … … 49 54 tny_account_iface_set_account_store (TnyAccountIface *self, const TnyAccountStoreIface *store) 50 55 { 56 #ifdef DEBUG 57 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_account_store_func) 58 g_critical ("You must implement tny_account_iface_set_account_store\n"); 59 #endif 60 51 61 TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_account_store_func (self, store); 52 62 return; … … 64 74 tny_account_iface_get_account_store (TnyAccountIface *self) 65 75 { 76 #ifdef DEBUG 77 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_account_store_func) 78 g_critical ("You must implement tny_account_iface_get_account_store\n"); 79 #endif 80 66 81 return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_account_store_func (self); 67 82 } … … 78 93 tny_account_iface_get_id (TnyAccountIface *self) 79 94 { 95 #ifdef DEBUG 96 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_id_func) 97 g_critical ("You must implement tny_account_iface_get_id\n"); 98 #endif 99 80 100 return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_id_func (self); 81 101 } … … 92 112 tny_account_iface_set_name (TnyAccountIface *self, const gchar *name) 93 113 { 114 #ifdef DEBUG 115 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_name_func) 116 g_critical ("You must implement tny_account_iface_set_name\n"); 117 #endif 118 94 119 TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_name_func (self, name); 95 120 return; … … 108 133 tny_account_iface_set_id (TnyAccountIface *self, const gchar *id) 109 134 { 135 #ifdef DEBUG 136 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_id_func) 137 g_critical ("You must implement tny_account_iface_set_id\n"); 138 #endif 139 110 140 TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_id_func (self, id); 111 141 return; … … 126 156 tny_account_iface_set_forget_pass_func (TnyAccountIface *self, TnyForgetPassFunc forget_pass_func) 127 157 { 158 #ifdef DEBUG 159 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_forget_pass_func_func) 160 g_critical ("You must implement tny_account_iface_set_forget_pass_func\n"); 161 #endif 162 128 163 TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_forget_pass_func_func (self, forget_pass_func); 129 164 return; … … 141 176 tny_account_iface_get_forget_pass_func (TnyAccountIface *self) 142 177 { 178 #ifdef DEBUG 179 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_forget_pass_func_func) 180 g_critical ("You must implement tny_account_iface_get_forget_pass_func\n"); 181 #endif 182 143 183 return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_forget_pass_func_func (self); 144 184 } … … 155 195 tny_account_iface_set_url_string (TnyAccountIface *self, const gchar *url_string) 156 196 { 197 #ifdef DEBUG 198 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_url_string_func) 199 g_critical ("You must implement tny_account_iface_set_url_string\n"); 200 #endif 201 157 202 TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_url_string_func (self, url_string); 158 203 return; … … 171 216 tny_account_iface_set_proto (TnyAccountIface *self, const gchar *proto) 172 217 { 218 #ifdef DEBUG 219 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_proto_func) 220 g_critical ("You must implement tny_account_iface_set_proto\n"); 221 #endif 222 173 223 TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_proto_func (self, proto); 174 224 return; … … 187 237 tny_account_iface_set_user (TnyAccountIface *self, const gchar *user) 188 238 { 239 #ifdef DEBUG 240 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_user_func) 241 g_critical ("You must implement tny_account_iface_set_user\n"); 242 #endif 243 189 244 TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_user_func (self, user); 190 245 return; … … 203 258 tny_account_iface_set_hostname (TnyAccountIface *self, const gchar *host) 204 259 { 260 #ifdef DEBUG 261 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_hostname_func) 262 g_critical ("You must implement tny_account_iface_set_hostname\n"); 263 #endif 264 205 265 TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_hostname_func (self, host); 206 266 return; … … 222 282 tny_account_iface_set_pass_func (TnyAccountIface *self, TnyGetPassFunc get_pass_func) 223 283 { 284 #ifdef DEBUG 285 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_pass_func_func) 286 g_critical ("You must implement tny_account_iface_set_pass_func\n"); 287 #endif 288 224 289 TNY_ACCOUNT_IFACE_GET_CLASS (self)->set_pass_func_func (self, get_pass_func); 225 290 return; … … 237 302 tny_account_iface_get_proto (TnyAccountIface *self) 238 303 { 304 #ifdef DEBUG 305 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_proto_func) 306 g_critical ("You must implement tny_account_iface_get_proto\n"); 307 #endif 308 239 309 return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_proto_func (self); 240 310 } … … 253 323 tny_account_iface_get_url_string (TnyAccountIface *self) 254 324 { 325 #ifdef DEBUG 326 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_url_string_func) 327 g_critical ("You must implement tny_account_iface_get_url_string\n"); 328 #endif 329 255 330 return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_url_string_func (self); 256 331 } … … 267 342 tny_account_iface_get_user (TnyAccountIface *self) 268 343 { 344 #ifdef DEBUG 345 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_user_func) 346 g_critical ("You must implement tny_account_iface_get_user\n"); 347 #endif 348 269 349 return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_user_func (self); 270 350 } … … 281 361 tny_account_iface_get_name (TnyAccountIface *self) 282 362 { 363 #ifdef DEBUG 364 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_name_func) 365 g_critical ("You must implement tny_account_iface_get_name\n"); 366 #endif 367 283 368 return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_name_func (self); 284 369 } … … 295 380 tny_account_iface_get_hostname (TnyAccountIface *self) 296 381 { 382 #ifdef DEBUG 383 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_hostname_func) 384 g_critical ("You must implement tny_account_iface_get_hostname\n"); 385 #endif 386 297 387 return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_hostname_func (self); 298 388 } … … 309 399 tny_account_iface_get_pass_func (TnyAccountIface *self) 310 400 { 401 #ifdef DEBUG 402 if (!TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_pass_func_func) 403 g_critical ("You must implement tny_account_iface_get_pass_func\n"); 404 #endif 405 311 406 return TNY_ACCOUNT_IFACE_GET_CLASS (self)->get_pass_func_func (self); 312 407 } trunk/libtinymail/tny-account-store-iface.c
r519 r520 51 51 #ifdef DEBUG 52 52 if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->alert_func) 53 g_ warning (_("You must implement tny_account_store_iface_alert\n"));53 g_critical ("You must implement tny_account_store_iface_alert\n"); 54 54 #endif 55 55 return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->alert_func (self, type, prompt); … … 67 67 #ifdef DEBUG 68 68 if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_device_func) 69 g_ warning (_("You must implement tny_account_store_iface_get_device\n"));69 g_critical ("You must implement tny_account_store_iface_get_device\n"); 70 70 #endif 71 71 return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_device_func (self); … … 85 85 #ifdef DEBUG 86 86 if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_cache_dir_func) 87 g_ warning (_("You must implement tny_account_store_iface_get_cache_dir\n"));87 g_critical ("You must implement tny_account_store_iface_get_cache_dir\n"); 88 88 #endif 89 89 return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_cache_dir_func (self); … … 104 104 #ifdef DEBUG 105 105 if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_transport_accounts_func) 106 g_ warning (_("You must implement tny_account_store_iface_get_transport_accounts\n"));106 g_critical ("You must implement tny_account_store_iface_get_transport_accounts\n"); 107 107 #endif 108 108 return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_transport_accounts_func (self); … … 123 123 #ifdef DEBUG 124 124 if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->add_transport_account_func) 125 g_warning (_("You must implement tny_account_store_iface_add_transport_account\n")); 126 #endif 125 g_critical ("You must implement tny_account_store_iface_add_transport_account\n"); 126 #endif 127 127 128 TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->add_transport_account_func (self, account); 128 129 return; … … 143 144 #ifdef DEBUG 144 145 if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_store_accounts_func) 145 g_ warning (_("You must implement tny_account_store_iface_get_store_accounts\n"));146 g_critical ("You must implement tny_account_store_iface_get_store_accounts\n"); 146 147 #endif 147 148 return TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->get_store_accounts_func (self); … … 161 162 #ifdef DEBUG 162 163 if (!TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->add_store_account_func) 163 g_ warning (_("You must implement tny_account_store_iface_add_store_account\n"));164 g_critical ("You must implement tny_account_store_iface_add_store_account\n"); 164 165 #endif 165 166 TNY_ACCOUNT_STORE_IFACE_GET_CLASS (self)->add_store_account_func (self, account); trunk/libtinymail/tny-device-iface.c
r519 r520 44 44 #ifdef DEBUG 45 45 if (!TNY_DEVICE_IFACE_GET_CLASS (self)->reset_func) 46 g_ warning (_("You must implement tny_device_iface_reset\n"));46 g_critical ("You must implement tny_device_iface_reset\n"); 47 47 #endif 48 48 … … 62 62 #ifdef DEBUG 63 63 if (!TNY_DEVICE_IFACE_GET_CLASS (self)->force_online_func) 64 g_ warning (_("You must implement tny_device_iface_force_online\n"));64 g_critical ("You must implement tny_device_iface_force_online\n"); 65 65 #endif 66 66 … … 80 80 #ifdef DEBUG 81 81 if (!TNY_DEVICE_IFACE_GET_CLASS (self)->force_offline_func) 82 g_ warning (_("You must implement tny_device_iface_force_offline\n"));82 g_critical ("You must implement tny_device_iface_force_offline\n"); 83 83 #endif 84 84 … … 98 98 #ifdef DEBUG 99 99 if (!TNY_DEVICE_IFACE_GET_CLASS (self)->is_online_func) 100 g_ warning (_("You must implement tny_device_iface_is_online\n"));100 g_critical ("You must implement tny_device_iface_is_online\n"); 101 101 #endif 102 102 trunk/libtinymail/tny-iterator-iface.c
r424 r520 34 34 tny_iterator_iface_next (TnyIteratorIface *self) 35 35 { 36 #ifdef DEBUG 37 if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->next_func) 38 g_critical ("You must implement tny_iterator_iface_next\n"); 39 #endif 40 36 41 return TNY_ITERATOR_IFACE_GET_CLASS (self)->next_func (self); 37 42 } … … 49 54 tny_iterator_iface_prev (TnyIteratorIface *self) 50 55 { 56 #ifdef DEBUG 57 if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->prev_func) 58 g_critical ("You must implement tny_iterator_iface_prev\n"); 59 #endif 60 51 61 return TNY_ITERATOR_IFACE_GET_CLASS (self)->prev_func (self); 52 62 } … … 65 75 tny_iterator_iface_first (TnyIteratorIface *self) 66 76 { 77 #ifdef DEBUG 78 if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->first_func) 79 g_critical ("You must implement tny_iterator_iface_first\n"); 80 #endif 81 67 82 return TNY_ITERATOR_IFACE_GET_CLASS (self)->first_func (self); 68 83 } … … 81 96 tny_iterator_iface_nth (TnyIteratorIface *self, guint nth) 82 97 { 98 #ifdef DEBUG 99 if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->nth_func) 100 g_critical ("You must implement tny_iterator_iface_nth\n"); 101 #endif 102 83 103 return TNY_ITERATOR_IFACE_GET_CLASS (self)->nth_func (self, nth); 84 104 } … … 97 117 tny_iterator_iface_current (TnyIteratorIface *self) 98 118 { 119 #ifdef DEBUG 120 if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->current_func) 121 g_critical ("You must implement tny_iterator_iface_current\n"); 122 #endif 123 99 124 return TNY_ITERATOR_IFACE_GET_CLASS (self)->current_func (self); 100 125 } … … 112 137 tny_iterator_iface_has_next (TnyIteratorIface *self) 113 138 { 139 #ifdef DEBUG 140 if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->has_next_func) 141 g_critical ("You must implement tny_iterator_iface_has_next\n"); 142 #endif 143 114 144 return TNY_ITERATOR_IFACE_GET_CLASS (self)->has_next_func (self); 115 145 } … … 127 157 tny_iterator_iface_get_list (TnyIteratorIface *self) 128 158 { 159 #ifdef DEBUG 160 if (!TNY_ITERATOR_IFACE_GET_CLASS (self)->get_list_func) 161 g_critical ("You must implement tny_iterator_iface_get_list\n"); 162 #endif 163 129 164 return TNY_ITERATOR_IFACE_GET_CLASS (self)->get_list_func (self); 130 165 } trunk/libtinymail/tny-list-iface.c
r491 r520 31 31 tny_list_iface_length (TnyListIface *self) 32 32 { 33 #ifdef DEBUG 34 if (!TNY_LIST_IFACE_GET_CLASS (self)->length_func) 35 g_critical ("You must implement tny_list_iface_length\n"); 36 #endif 37 33 38 TNY_LIST_IFACE_GET_CLASS (self)->length_func (self); 34 39 return; … … 40 45 * @item: the item to prepend 41 46 * 42 * 47 * Implementors: if you have to choose, make this one the fast one 43 48 **/ 44 49 void 45 50 tny_list_iface_prepend (TnyListIface *self, gpointer item) 46 51 { 52 #ifdef DEBUG 53 if (!TNY_LIST_IFACE_GET_CLASS (self)->prepend_func) 54 g_critical ("You must implement tny_list_iface_prepend\n"); 55 #endif 56 47 57 TNY_LIST_IFACE_GET_CLASS (self)->prepend_func (self, item); 48 58 return; … … 54 64 * @item: the item to append 55 65 * 56 * 66 * Implementors: if you have to choose, make the prepend one the fast one 57 67 **/ 58 68 void 59 69 tny_list_iface_append (TnyListIface *self, gpointer item) 60 70 { 71 #ifdef DEBUG 72 if (!TNY_LIST_IFACE_GET_CLASS (self)->append_func) 73 g_critical ("You must implement tny_list_iface_append\n"); 74 #endif 75 61 76 TNY_LIST_IFACE_GET_CLASS (self)->append_func (self, item); 62 77 return; … … 75 90 tny_list_iface_remove (TnyListIface *self, gpointer item) 76 91 { 92 #ifdef DEBUG 93 if (!TNY_LIST_IFACE_GET_CLASS (self)->remove_func) 94 g_critical ("You must implement tny_list_iface_remove\n"); 95 #endif 96 77 97 TNY_LIST_IFACE_GET_CLASS (self)->remove_func (self, item); 78 98 return; … … 89 109 tny_list_iface_create_iterator (TnyListIface *self) 90 110 { 111 #ifdef DEBUG 112 if (!TNY_LIST_IFACE_GET_CLASS (self)->create_iterator_func) 113 g_critical ("You must implement tny_list_iface_create_iterator\n"); 114 #endif 115 91 116 return TNY_LIST_IFACE_GET_CLASS (self)->create_iterator_func (self); 92 117 } … … 104 129 tny_list_iface_foreach (TnyListIface *self, GFunc func, gpointer user_data) 105 130 { 131 #ifdef DEBUG 132 if (!TNY_LIST_IFACE_GET_CLASS (self)->foreach_func) 133 g_critical ("You must implement tny_list_iface_foreach\n"); 134 #endif 135 106 136 TNY_LIST_IFACE_GET_CLASS (self)->foreach_func (self, func, user_data); 107 137 return; … … 119 149 tny_list_iface_copy (TnyListIface *self) 120 150 { 151 #ifdef DEBUG 152 if (!TNY_LIST_IFACE_GET_CLASS (self)->copy_func) 153 g_critical ("You must implement tny_list_iface_copy\n"); 154 #endif 155 121 156 return TNY_LIST_IFACE_GET_CLASS (self)->copy_func (self); 122 157 } trunk/libtinymail/tny-msg-folder-iface.c
r498 r520 36 36 tny_msg_folder_iface_expunge (TnyMsgFolderIface *self) 37 37 { 38 #ifdef DEBUG 39 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->expunge_func) 40 g_critical ("You must implement tny_msg_folder_iface_expunge\n"); 41 #endif 38 42 TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->expunge_func (self); 39 43 return; … … 45 49 * @header: the header of the message to remove 46 50 * 47 * Remove a message from a folder 51 * Remove a message from a folder. This doesn't remove it from a #TnyListIface 52 * that would hold the headers (for example for a header summary view). 48 53 **/ 49 54 void 50 55 tny_msg_folder_iface_remove_message (TnyMsgFolderIface *self, TnyMsgHeaderIface *header) 51 56 { 57 #ifdef DEBUG 58 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->remove_message_func) 59 g_critical ("You must implement tny_msg_folder_iface_remove_message\n"); 60 #endif 61 52 62 TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->remove_message_func (self, header); 53 63 return; … … 68 78 tny_msg_folder_iface_refresh_async (TnyMsgFolderIface *self, TnyRefreshFolderCallback callback, TnyRefreshFolderStatusCallback status_callback, gpointer user_data) 69 79 { 80 #ifdef DEBUG 81 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->refresh_async_func) 82 g_critical ("You must implement tny_msg_folder_iface_refresh_async\n"); 83 #endif 84 70 85 TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->refresh_async_func (self, callback, status_callback, user_data); 71 86 return; … … 84 99 tny_msg_folder_iface_refresh (TnyMsgFolderIface *self) 85 100 { 101 #ifdef DEBUG 102 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->refresh_func) 103 g_critical ("You must implement tny_msg_folder_iface_refresh\n"); 104 #endif 105 86 106 TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->refresh_func (self); 87 107 return; … … 99 119 tny_msg_folder_iface_set_subscribed (TnyMsgFolderIface *self, const gboolean subscribed) 100 120 { 121 #ifdef DEBUG 122 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_subscribed_func) 123 g_critical ("You must implement tny_msg_folder_iface_set_subscribed\n"); 124 #endif 125 101 126 TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_subscribed_func (self, subscribed); 102 127 return; … … 114 139 tny_msg_folder_iface_get_subscribed (TnyMsgFolderIface *self) 115 140 { 141 #ifdef DEBUG 142 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_subscribed_func) 143 g_critical ("You must implement tny_msg_folder_iface_get_subscribed\n"); 144 #endif 145 116 146 return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_subscribed_func (self); 117 147 } … … 128 158 tny_msg_folder_iface_get_unread_count (TnyMsgFolderIface *self) 129 159 { 160 #ifdef DEBUG 161 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_unread_count_func) 162 g_critical ("You must implement tny_msg_folder_iface_get_unread_count\n"); 163 #endif 164 130 165 return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_unread_count_func (self); 131 166 } … … 135 170 tny_msg_folder_iface_get_all_count (TnyMsgFolderIface *self) 136 171 { 172 #ifdef DEBUG 173 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_all_count_func) 174 g_critical ("You must implement tny_msg_folder_iface_get_all_count\n"); 175 #endif 176 137 177 return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_all_count_func (self); 138 178 } … … 149 189 tny_msg_folder_iface_get_account (TnyMsgFolderIface *self) 150 190 { 191 #ifdef DEBUG 192 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_account_func) 193 g_critical ("You must implement tny_msg_folder_iface_get_account\n"); 194 #endif 195 151 196 return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_account_func (self); 152 197 } … … 162 207 tny_msg_folder_iface_set_account (TnyMsgFolderIface *self, const TnyAccountIface *account) 163 208 { 209 #ifdef DEBUG 210 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_account_func) 211 g_critical ("You must implement tny_msg_folder_iface_set_account\n"); 212 #endif 213 164 214 TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_account_func (self, account); 165 215 … … 178 228 tny_msg_folder_iface_get_folders (TnyMsgFolderIface *self) 179 229 { 230 #ifdef DEBUG 231 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_folders_func) 232 g_critical ("You must implement tny_msg_folder_iface_get_folders\n"); 233 #endif 234 180 235 return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_folders_func (self); 181 236 } … … 194 249 tny_msg_folder_iface_get_message (TnyMsgFolderIface *self, const TnyMsgHeaderIface *header) 195 250 { 251 #ifdef DEBUG 252 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_message_func) 253 g_critical ("You must implement tny_msg_folder_iface_get_message\n"); 254 #endif 255 196 256 return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_message_func (self, header); 197 257 } … … 210 270 tny_msg_folder_iface_get_headers (TnyMsgFolderIface *self, TnyListIface *headers, gboolean refresh) 211 271 { 272 #ifdef DEBUG 273 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_headers_func) 274 g_critical ("You must implement tny_msg_folder_iface_get_headers\n"); 275 #endif 276 212 277 return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_headers_func (self, headers, refresh); 213 278 } … … 224 289 tny_msg_folder_iface_get_id (TnyMsgFolderIface *self) 225 290 { 291 #ifdef DEBUG 292 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_id_func) 293 g_critical ("You must implement tny_msg_folder_iface_get_id\n"); 294 #endif 295 226 296 return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_id_func (self); 227 297 } … … 238 308 tny_msg_folder_iface_get_name (TnyMsgFolderIface *self) 239 309 { 310 #ifdef DEBUG 311 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_name_func) 312 g_critical ("You must implement tny_msg_folder_iface_get_name\n"); 313 #endif 314 240 315 return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_name_func (self); 241 316 } … … 252 327 tny_msg_folder_iface_set_id (TnyMsgFolderIface *self, const gchar *id) 253 328 { 329 #ifdef DEBUG 330 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_id_func) 331 g_critical ("You must implement tny_msg_folder_iface_set_id\n"); 332 #endif 333 254 334 TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_id_func (self, id); 255 335 return; … … 267 347 tny_msg_folder_iface_set_name (TnyMsgFolderIface *self, const gchar *name) 268 348 { 349 #ifdef DEBUG 350 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_name_func) 351 g_critical ("You must implement tny_msg_folder_iface_set_name\n"); 352 #endif 353 269 354 TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->set_name_func (self, name); 270 355 return; … … 282 367 TnyMsgFolderType tny_msg_folder_iface_get_folder_type (TnyMsgFolderIface *self) 283 368 { 369 #ifdef DEBUG 370 if (!TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_folder_type_func) 371 g_critical ("You must implement tny_msg_folder_iface_get_folder_type\n"); 372 #endif 373 284 374 return TNY_MSG_FOLDER_IFACE_GET_CLASS (self)->get_folder_type_func (self); 285 375 } trunk/libtinymailui-gtk/tny-msg-header-list-model.c
r496 r520 41 41 stack allocations)? It's probably a naïve manual optimization.*/ 42 42 43 44 G_INLINE_FUNC void /* When sorting, this method is called a gazillion times */ 43 #ifndef DEBUG 44 G_INLINE_FUNC 45 #endif 46 void /* When sorting, this method is called a gazillion times */ 45 47 _tny_msg_header_list_iterator_travel_to_nth_nl (TnyMsgHeaderListIterator *self, guint cur, guint nth) 46 48 { … … 230 232 } 231 233 232 G_INLINE_FUNC gchar * 234 #ifndef DEBUG 235 G_INLINE_FUNC 236 #endif 237 gchar * 233 238 _get_readable_date (const time_t file_time_raw) 234 239 { trunk/libtinymailui/tny-account-store-view-iface.c
r387 r520 34 34 tny_account_store_view_iface_set_account_store (TnyAccountStoreViewIface *self, TnyAccountStoreIface *account_store) 35 35 { 36 #ifdef DEBUG 37 if (!TNY_ACCOUNT_STORE_VIEW_IFACE_GET_CLASS (self)->set_account_store_func) 38 g_critical ("You must implement tny_account_store_view_iface_set_account_store\n"); 39 #endif 36 40 TNY_ACCOUNT_STORE_VIEW_IFACE_GET_CLASS (self)->set_account_store_func (self, account_store); 37 41 return; trunk/libtinymailui/tny-msg-header-view-iface.c
r379 r520 35 35 tny_msg_header_view_iface_set_header (TnyMsgHeaderViewIface *self, TnyMsgHeaderIface *header) 36 36 { 37 #ifdef DEBUG 38 if (!TNY_MSG_HEADER_VIEW_IFACE_GET_CLASS (self)->set_header_func) 39 g_critical ("You must implement tny_msg_header_view_iface_set_header\n"); 40 #endif 41 37 42 TNY_MSG_HEADER_VIEW_IFACE_GET_CLASS (self)->set_header_func (self, header); 38 43 return; trunk/libtinymailui/tny-msg-view-iface.c
r519 r520 35 35 #ifdef DEBUG 36 36 if (!TNY_MSG_VIEW_IFACE_GET_CLASS (self)->set_save_strategy_func) 37 g_ warning (_("You must implement tny_msg_view_iface_set_save_strategy\n"));37 g_critical ("You must implement tny_msg_view_iface_set_save_strategy\n"); 38 38 #endif 39 39 … … 56 56 #ifdef DEBUG 57 57 if (!TNY_MSG_VIEW_IFACE_GET_CLASS (self)->set_msg_func) 58 g_ warning (_("You must implement tny_msg_view_iface_set_msg\n"));58 g_critical ("You must implement tny_msg_view_iface_set_msg\n"); 59 59 #endif 60 60 trunk/libtinymailui/tny-platform-factory-iface.c
r519 r520 33 33 #ifdef DEBUG 34 34 if (!TNY_PLATFORM_FACTORY_IFACE_GET_CLASS (self)->new_account_store_func) 35 g_ warning (_("You must implement tny_platform_factory_iface_new_account_store\n"));35 g_critical ("You must implement tny_platform_factory_iface_new_account_store\n"); 36 36 #endif 37 37 … … 50 50 #ifdef DEBUG 51 51 if (!TNY_PLATFORM_FACTORY_IFACE_GET_CLASS (self)->new_device_func) 52 g_ warning (_("You must implement tny_platform_factory_iface_new_device\n"));52 g_critical ("You must implement tny_platform_factory_iface_new_device\n"); 53 53 #endif 54 54 … … 67 67 #ifdef DEBUG 68 68 if (!TNY_PLATFORM_FACTORY_IFACE_GET_CLASS (self)->new_msg_view_func) 69 g_warning ( _("You must implement tny_platform_factory_iface_new_msg_view\n"));69 g_warning ("You must implement tny_platform_factory_iface_new_msg_view\n"); 70 70 #endif 71 71 trunk/libtinymailui/tny-save-strategy-iface.c
r519 r520 34 34 #ifdef DEBUG 35 35 if (!TNY_SAVE_STRATEGY_IFACE_GET_CLASS (self)->save_func) 36 g_ warning (_("You must implement tny_save_strategy_iface_save\n"));36 g_critical ("You must implement tny_save_strategy_iface_save\n"); 37 37 #endif 38 38
