ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/src chat_room.c,1.20,1.21 service.h,1.2,1.3


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/src chat_room.c,1.20,1.21 service.h,1.2,1.3
Date: Mon, 13 Jan 2003 00:46:01 -0500

Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv4410/src

Modified Files:
        chat_room.c service.h 
Log Message:
send typing status in chatrooms


Index: chat_room.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/chat_room.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- chat_room.c 13 Jan 2003 04:58:32 -0000      1.20
+++ chat_room.c 13 Jan 2003 05:45:58 -0000      1.21
@@ -81,7 +81,7 @@
        gtk_editable_delete_text(GTK_EDITABLE (ecr->entry), 0, -1);
 }
 
-/*static void send_typing_status(eb_chat_room *cr)
+static void send_typing_status(eb_chat_room *cr)
 {
        time_t now=time(NULL);
        GList *others;
@@ -90,17 +90,10 @@
                return;
 
        if(now>=cr->next_typing_send &&
-          RUN_SERVICE(cr->chat_room_account)->send_typing!=NULL) {
-               int next;
-               for (others = cr->fellows; others && others->data; others = 
others->next) {
-                       eb_chat_room_buddy *buddy = (eb_chat_room_buddy 
*)others->data;
-                       eb_account *remote_account = 
find_account_by_handle(buddy->handle, cr->service_id);
-                       next = RUN_SERVICE(cr->chat_room_account)->send_typing(
-                                       cr->chat_room_account, remote_account);
-               }
-               cr->next_typing_send = now+next;
+          RUN_SERVICE(cr->chat_room_account)->send_cr_typing!=NULL) {
+               cr->next_typing_send = 
now+RUN_SERVICE(cr->chat_room_account)->send_cr_typing(cr);
        }
-}*/
+}
 
 static gboolean cr_key_press(GtkWidget *widget, GdkEventKey *event, gpointer 
data)
 {
@@ -189,7 +182,7 @@
 
   if(!modifiers)
   {
-    //send_typing_status(cr);
+    send_typing_status(cr);
   }
 
   return gtk_false();

Index: service.h
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/service.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- service.h   3 Jan 2003 23:26:07 -0000       1.2
+++ service.h   13 Jan 2003 05:45:58 -0000      1.3
@@ -57,6 +57,7 @@
         */
         int (*send_typing) (eb_local_account *account_from,
                              eb_account *account_to);
+        int (*send_cr_typing) (eb_chat_room *chatroom);
 
        /* reads local account information from a file */
        eb_local_account * (*read_local_account_config) (GList * values);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]