Mercurial > pidgin
diff src/gtkpounce.c @ 10352:5879593a6a10
[gaim-migrate @ 11569]
Gray out some buddy list menu items and the gtkstatusselector if
no accounts are online.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 13 Dec 2004 01:49:55 +0000 |
parents | 89a25444401c |
children | fbb78553cae1 |
line wrap: on
line diff
--- a/src/gtkpounce.c Mon Dec 13 01:24:19 2004 +0000 +++ b/src/gtkpounce.c Mon Dec 13 01:49:55 2004 +0000 @@ -357,6 +357,9 @@ GPtrArray *sound_widgets; GPtrArray *exec_widgets; + g_return_if_fail((cur_pounce != NULL) || (account != NULL) || + (gaim_connections_get_all() != NULL)); + dialog = g_new0(GaimGtkPounceDialog, 1); if (cur_pounce != NULL) @@ -900,6 +903,7 @@ /* "New Buddy Pounce" */ item = gtk_menu_item_new_with_label(_("New Buddy Pounce")); gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + gtk_widget_set_sensitive(item, (gaim_connections_get_all() != NULL)); gtk_widget_show(item); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(new_pounce_cb), NULL);