| 121 purple_conv_im_stop_send_typed_timeout(im); |
121 purple_conv_im_stop_send_typed_timeout(im); |
| 122 purple_conv_im_start_send_typed_timeout(im); |
122 purple_conv_im_start_send_typed_timeout(im); |
| 123 if (send || (purple_conv_im_get_type_again(im) != 0 && |
123 if (send || (purple_conv_im_get_type_again(im) != 0 && |
| 124 time(NULL) > purple_conv_im_get_type_again(im))) { |
124 time(NULL) > purple_conv_im_get_type_again(im))) { |
| 125 unsigned int timeout; |
125 unsigned int timeout; |
| 126 timeout = serv_send_typing(purple_conversation_get_gc(conv), |
126 timeout = serv_send_typing(purple_conversation_get_connection(conv), |
| 127 purple_conversation_get_name(conv), |
127 purple_conversation_get_name(conv), |
| 128 PURPLE_TYPING); |
128 PURPLE_TYPING); |
| 129 purple_conv_im_set_type_again(im, timeout); |
129 purple_conv_im_set_type_again(im, timeout); |
| 130 } |
130 } |
| 131 } else { |
131 } else { |
| 132 purple_conv_im_stop_send_typed_timeout(im); |
132 purple_conv_im_stop_send_typed_timeout(im); |
| 133 |
133 |
| 134 serv_send_typing(purple_conversation_get_gc(conv), |
134 serv_send_typing(purple_conversation_get_connection(conv), |
| 135 purple_conversation_get_name(conv), |
135 purple_conversation_get_name(conv), |
| 136 PURPLE_NOT_TYPING); |
136 PURPLE_NOT_TYPING); |
| 137 } |
137 } |
| 138 } |
138 } |
| 139 } |
139 } |
| 412 |
412 |
| 413 static void |
413 static void |
| 414 send_file_cb(GntMenuItem *item, gpointer ggconv) |
414 send_file_cb(GntMenuItem *item, gpointer ggconv) |
| 415 { |
415 { |
| 416 FinchConv *ggc = ggconv; |
416 FinchConv *ggc = ggconv; |
| 417 serv_send_file(purple_conversation_get_gc(ggc->active_conv), |
417 serv_send_file(purple_conversation_get_connection(ggc->active_conv), |
| 418 purple_conversation_get_name(ggc->active_conv), NULL); |
418 purple_conversation_get_name(ggc->active_conv), NULL); |
| 419 } |
419 } |
| 420 |
420 |
| 421 static void |
421 static void |
| 422 add_pounce_cb(GntMenuItem *item, gpointer ggconv) |
422 add_pounce_cb(GntMenuItem *item, gpointer ggconv) |
| 429 |
429 |
| 430 static void |
430 static void |
| 431 get_info_cb(GntMenuItem *item, gpointer ggconv) |
431 get_info_cb(GntMenuItem *item, gpointer ggconv) |
| 432 { |
432 { |
| 433 FinchConv *ggc = ggconv; |
433 FinchConv *ggc = ggconv; |
| 434 finch_retrieve_user_info(purple_conversation_get_gc(ggc->active_conv), |
434 finch_retrieve_user_info(purple_conversation_get_connection(ggc->active_conv), |
| 435 purple_conversation_get_name(ggc->active_conv)); |
435 purple_conversation_get_name(ggc->active_conv)); |
| 436 } |
436 } |
| 437 |
437 |
| 438 static void |
438 static void |
| 439 toggle_timestamps_cb(GntMenuItem *item, gpointer ggconv) |
439 toggle_timestamps_cb(GntMenuItem *item, gpointer ggconv) |