comparison finch/gntconv.c @ 18002:38a72d6dce7f

merge of '9e832cea16395c9007bc9e384ee379b293b99abd' and 'bda8b30520ae63b1ce117a6799cb41a65c55018d'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 04 Jun 2007 06:32:21 +0000
parents 289ac53f753f
children f63b3a23280d
comparison
equal deleted inserted replaced
17707:01021bb5c709 18002:38a72d6dce7f
62 62
63 static void 63 static void
64 send_typing_notification(GntWidget *w, FinchConv *ggconv) 64 send_typing_notification(GntWidget *w, FinchConv *ggconv)
65 { 65 {
66 const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry)); 66 const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry));
67 gboolean empty = (!text || !*text); 67 gboolean empty = (!text || !*text || (*text == '/'));
68 if (purple_prefs_get_bool("/finch/conversations/notify_typing")) { 68 if (purple_prefs_get_bool("/finch/conversations/notify_typing")) {
69 PurpleConversation *conv = ggconv->active_conv; 69 PurpleConversation *conv = ggconv->active_conv;
70 PurpleConvIm *im = PURPLE_CONV_IM(conv); 70 PurpleConvIm *im = PURPLE_CONV_IM(conv);
71 if (!empty) { 71 if (!empty) {
72 gboolean send = (purple_conv_im_get_send_typed_timeout(im) == 0); 72 gboolean send = (purple_conv_im_get_send_typed_timeout(im) == 0);
311 311
312 static void 312 static void
313 get_info_cb(GntMenuItem *item, gpointer ggconv) 313 get_info_cb(GntMenuItem *item, gpointer ggconv)
314 { 314 {
315 FinchConv *ggc = ggconv; 315 FinchConv *ggc = ggconv;
316 PurpleNotifyUserInfo *info = purple_notify_user_info_new(); 316 finch_retrieve_user_info(purple_conversation_get_gc(ggc->active_conv),
317 purple_notify_user_info_add_pair(info, _("Information"), _("Retrieving..."));
318 purple_notify_userinfo(ggc->active_conv->account->gc, purple_conversation_get_name(ggc->active_conv), info, NULL, NULL);
319 purple_notify_user_info_destroy(info);
320
321 serv_get_info(purple_conversation_get_gc(ggc->active_conv),
322 purple_conversation_get_name(ggc->active_conv)); 317 purple_conversation_get_name(ggc->active_conv));
323 } 318 }
324 319
325 static void 320 static void
326 toggle_timestamps_cb(GntMenuItem *item, gpointer ggconv) 321 toggle_timestamps_cb(GntMenuItem *item, gpointer ggconv)