# HG changeset patch # User Mark Doliner # Date 1102919301 0 # Node ID 6bd4921bb85ecbedf8110eb5ea8d4fe81bfd4506 # Parent 393750603513a25910001ca4807438b87e43e1eb [gaim-migrate @ 11575] This didn't work out so well... the blist bg color wasn't changing back to white for me, when it became sensitive again. committer: Tailor Script diff -r 393750603513 -r 6bd4921bb85e src/gtkblist.c --- a/src/gtkblist.c Mon Dec 13 03:04:07 2004 +0000 +++ b/src/gtkblist.c Mon Dec 13 06:28:21 2004 +0000 @@ -3044,8 +3044,8 @@ N_("/Buddies/Log Out") }; -/* There's got to be a cleaner way to do this...? */ -#define SIZEOF_REQUIRE_CONNECTION 7 +static const int require_connection_size = sizeof(require_connection) + / sizeof(*require_connection); /** * Rebuild dynamic menus and make menu items sensitive/insensitive @@ -3065,9 +3065,7 @@ sensitive = (gaim_connections_get_all() != NULL); - gtk_widget_set_sensitive(gtkblist->treeview, sensitive); - - for (i = 0; i < SIZEOF_REQUIRE_CONNECTION; i++) + for (i = 0; i < require_connection_size; i++) { widget = gtk_item_factory_get_widget(gtkblist->ift, require_connection[i]); gtk_widget_set_sensitive(widget, sensitive);