Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 5911:865f235ffaf0
[gaim-migrate @ 6343]
Set the Alias menu item in the Conversation menu to be insensitive if the
buddy is not added.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 17 Jun 2003 07:37:35 +0000 |
parents | ed8a9a3bf7e2 |
children | b85e88d3fa5f |
comparison
equal
deleted
inserted
replaced
5910:211760926728 | 5911:865f235ffaf0 |
---|---|
1874 if (gaim_find_buddy(gaim_conversation_get_account(conv), | 1874 if (gaim_find_buddy(gaim_conversation_get_account(conv), |
1875 gaim_conversation_get_name(conv)) == NULL) { | 1875 gaim_conversation_get_name(conv)) == NULL) { |
1876 | 1876 |
1877 gtk_widget_show(gtkwin->menu.add); | 1877 gtk_widget_show(gtkwin->menu.add); |
1878 gtk_widget_hide(gtkwin->menu.remove); | 1878 gtk_widget_hide(gtkwin->menu.remove); |
1879 gtk_widget_set_sensitive(gtkwin->menu.alias, FALSE); | |
1879 } | 1880 } |
1880 else { | 1881 else { |
1881 gtk_widget_show(gtkwin->menu.remove); | 1882 gtk_widget_show(gtkwin->menu.remove); |
1882 gtk_widget_hide(gtkwin->menu.add); | 1883 gtk_widget_hide(gtkwin->menu.add); |
1884 gtk_widget_set_sensitive(gtkwin->menu.alias, TRUE); | |
1883 } | 1885 } |
1884 | 1886 |
1885 gtk_widget_set_sensitive(gtkwin->menu.add, TRUE); | 1887 gtk_widget_set_sensitive(gtkwin->menu.add, TRUE); |
1886 gtk_widget_set_sensitive(gtkwin->menu.remove, TRUE); | 1888 gtk_widget_set_sensitive(gtkwin->menu.remove, TRUE); |
1887 | 1889 |
1888 gtk_widget_set_sensitive(gtkwin->menu.alias, TRUE); | |
1889 | 1890 |
1890 gtk_widget_hide(gtkwin->menu.invite); | 1891 gtk_widget_hide(gtkwin->menu.invite); |
1891 | 1892 |
1892 if (gtkwin->menu.send_as != NULL) | 1893 if (gtkwin->menu.send_as != NULL) |
1893 g_timeout_add(0, (GSourceFunc)update_send_as_selection, win); | 1894 g_timeout_add(0, (GSourceFunc)update_send_as_selection, win); |