1 diff -urN orig/src/gg.c new/src/gg.c
2 --- orig/src/gg.c Sat Jun 1 18:11:49 2002
3 +++ new/src/gg.c Sat Jun 1 18:10:47 2002
8 +gchar *gg_get_status_as_string(guint uin)
10 + GGContact *kontakt = gg_get_contact_by_uin(uin);
12 + if (kontakt->status==GG_STATUS_NOT_AVAILABLE)
13 + return "niedostêpny";
14 + else if (kontakt->status==GG_STATUS_AVAILABLE)
16 + else if (kontakt->status==GG_STATUS_AWAY)
23 void gg_log_msg(gint sess_uin, gint uin, gchar * nick, gchar * text)
27 if (kontakt->nick && *kontakt->nick) {
29 - g_strdup_printf("Rozmowa z %s (%d)",
30 - kontakt->nick, m->sender);
31 + g_strdup_printf("Rozmowa z %s (%d) - %s",
32 + kontakt->nick, m->sender,
33 + gg_get_status_as_string(kontakt->uin));
35 title = g_strdup_printf("Rozmowa z %d", m->sender);
37 diff -urN orig/src/gg.h new/src/gg.h
38 --- orig/src/gg.h Sat Jun 1 18:11:49 2002
39 +++ new/src/gg.h Sat Jun 1 18:10:47 2002
42 GGContact *gg_get_contact_by_uin(guint uin);
44 +gchar *gg_get_status_as_string(guint uin);
46 #define close_connection gg_close_connection
48 void gg_close_connection(void);
49 diff -urN orig/src/interface.c new/src/interface.c
50 --- orig/src/interface.c Sat Jun 1 18:11:49 2002
51 +++ new/src/interface.c Sat Jun 1 18:10:47 2002
54 nick = gg_get_nick_by_uin(sesja->uin);
56 - g_strdup_printf("Rozmowa z %s (%d)",
57 - (nick ? nick : ""), sesja->uin);
58 + g_strdup_printf("Rozmowa z %s (%d) - %s",
59 + (nick ? nick : ""), sesja->uin,
60 + gg_get_status_as_string(sesja->uin));
61 gtk_window_set_title(GTK_WINDOW(chat), _(title));
64 diff -urN orig/src/userstatus.c new/src/userstatus.c
65 --- orig/src/userstatus.c Sat Jun 1 18:11:49 2002
66 +++ new/src/userstatus.c Sat Jun 1 18:10:47 2002
70 GdkColormap *colormap;
75 g_return_if_fail(kontakt != NULL);
79 gtk_clist_sort(GTK_CLIST(lista));
81 + if((sesja=gg_find_session(kontakt->uin)))
83 + if(sesja->chat_window)
85 + title=g_strdup_printf("Rozmowa z %s (%d) - %s",
86 + kontakt->nick, kontakt->uin,
87 + gg_get_status_as_string(kontakt->uin));
89 + gtk_window_set_title(GTK_WINDOW(sesja->chat_window), title);
96 wmgg_contact_change_status(nick, kontakt->status, prev_status);