Mercurial > pidgin.yaz
comparison src/conversation.c @ 2111:109669b3887e
[gaim-migrate @ 2121]
fix a jabber bug and a bug i added last night.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 02 Aug 2001 20:45:08 +0000 |
parents | 3110ea142888 |
children | 56c4382f2909 |
comparison
equal
deleted
inserted
replaced
2110:704a07ed9481 | 2111:109669b3887e |
---|---|
1853 gtk_widget_show(cnv->menu); | 1853 gtk_widget_show(cnv->menu); |
1854 gtk_widget_show(cnv->menu->parent); | 1854 gtk_widget_show(cnv->menu->parent); |
1855 } | 1855 } |
1856 } | 1856 } |
1857 | 1857 |
1858 void redo_convo_menus(struct gaim_connection *gc) | 1858 void redo_convo_menus() |
1859 { | 1859 { |
1860 GList *c = conversations; | 1860 GList *c = conversations; |
1861 struct conversation *C; | 1861 struct conversation *C; |
1862 | 1862 |
1863 while (c) { | 1863 while (c) { |
1864 C = (struct conversation *)c->data; | 1864 C = (struct conversation *)c->data; |
1865 c = c->next; | 1865 c = c->next; |
1866 | 1866 |
1867 create_convo_menu(C); | 1867 create_convo_menu(C); |
1868 | 1868 |
1869 if (!gc) | 1869 if (g_slist_find(connections, C->gc)) |
1870 continue; | 1870 continue; |
1871 | 1871 |
1872 if (C->gc != gc) | 1872 set_convo_gc(C, connections ? connections->data : NULL); |
1873 continue; | 1873 } |
1874 } | |
1875 | |
1876 void convo_menu_remove(struct gaim_connection *gc) | |
1877 { | |
1878 GList *c = conversations; | |
1879 struct conversation *C; | |
1880 | |
1881 while (c) { | |
1882 C = (struct conversation *)c->data; | |
1883 c = c->next; | |
1874 | 1884 |
1875 if (C->gc && C->gc->prpl && C->gc->prpl->remove_convo) | 1885 if (C->gc && C->gc->prpl && C->gc->prpl->remove_convo) |
1876 (*C->gc->prpl->remove_convo)(C->gc, C); | 1886 (*C->gc->prpl->remove_convo)(C->gc, C); |
1877 | |
1878 set_convo_gc(C, connections ? connections->data : NULL); | |
1879 } | 1887 } |
1880 } | 1888 } |
1881 | 1889 |
1882 void set_convo_gc(struct conversation *c, struct gaim_connection *gc) | 1890 void set_convo_gc(struct conversation *c, struct gaim_connection *gc) |
1883 { | 1891 { |