Mercurial > pidgin
changeset 10357:6bd4921bb85e
[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 <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 13 Dec 2004 06:28:21 +0000 |
parents | 393750603513 |
children | 524674a4f6bb |
files | src/gtkblist.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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);