comparison src/gtkstatusselector.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 4d2ecbb139a0
children 6a043ae92db6
comparison
equal deleted inserted replaced
10351:7fcdd669eb49 10352:5879593a6a10
508 selector->priv->menu = gtk_menu_new(); 508 selector->priv->menu = gtk_menu_new();
509 gtk_widget_show(selector->priv->menu); 509 gtk_widget_show(selector->priv->menu);
510 #endif 510 #endif
511 511
512 /* 512 /*
513 * If no accounts are connected then gray ourself out and get
514 * outta hee.
515 */
516 if (gaim_connections_get_all() == NULL)
517 {
518 gtk_widget_set_sensitive(GTK_WIDGET(selector), FALSE);
519 return;
520 }
521 gtk_widget_set_sensitive(GTK_WIDGET(selector), TRUE);
522
523 /*
513 * If the user only has one IM account or one type of IM account 524 * If the user only has one IM account or one type of IM account
514 * connected, they'll see all their statuses. This is ideal for those 525 * connected, they'll see all their statuses. This is ideal for those
515 * who use only one account, or one single protocol. Everyone else 526 * who use only one account, or one single protocol. Everyone else
516 * gets Available and Away and a list of saved statuses. 527 * gets Available and Away and a list of saved statuses.
517 */ 528 */