# HG changeset patch # User Eric Warmenhoven # Date 968893228 0 # Node ID bd5f4997f063d4c62c312f2e24d91b93035bee45 # Parent f168f2c7b357ad8ed9d74548d074d43b6cf217ff [gaim-migrate @ 912] "We're not gonna take it, no!, we ain't gonna take it, we're not gonna take it, anymore!!!!!!!!!!!!!!!!!" committer: Tailor Script diff -r f168f2c7b357 -r bd5f4997f063 src/buddy.c --- a/src/buddy.c Thu Sep 14 00:37:51 2000 +0000 +++ b/src/buddy.c Thu Sep 14 01:00:28 2000 +0000 @@ -198,18 +198,24 @@ GList *mem; struct buddy *b; struct group *g; + int count; while(grp) { g = (struct group *)grp->data; mem = g->members; + count = 0; while(mem) { b = (struct buddy *)mem->data; if (b->present || !GTK_WIDGET_VISIBLE(b->item)) set_buddy(b); + + if (b->present) count++; mem = mem->next; } + if (!count && (display_options & OPT_DISP_NO_MT_GRP)) + gtk_widget_hide(g->item); grp = grp->next; } @@ -1431,6 +1437,8 @@ } + { struct group *g = find_group_by_buddy(b->name); + gtk_widget_show(g->item); } gtk_widget_show(b->item); gtk_widget_show(b->label); b->log_timer = gtk_timeout_add(10000, (GtkFunction) log_timeout, b->name); diff -r f168f2c7b357 -r bd5f4997f063 src/gaim.h --- a/src/gaim.h Thu Sep 14 00:37:51 2000 +0000 +++ b/src/gaim.h Thu Sep 14 01:00:28 2000 +0000 @@ -408,7 +408,7 @@ #define TYPE_SIGNOFF 4 #define TYPE_KEEPALIVE 5 -#define REVISION "gaim:$Revision: 901 $" +#define REVISION "gaim:$Revision: 912 $" #define FLAPON "FLAPON\r\n\r\n" #define ROAST "Tic/Toc" @@ -513,6 +513,7 @@ #define OPT_DISP_CHAT_SHOW_TEXT 0x00008000 #define OPT_DISP_CONV_BIG_ENTRY 0x00010000 #define OPT_DISP_CHAT_BIG_ENTRY 0x00020000 +#define OPT_DISP_NO_MT_GRP 0x00040000 extern int sound_options; #define OPT_SOUND_LOGIN 0x00000001 diff -r f168f2c7b357 -r bd5f4997f063 src/prefs.c --- a/src/prefs.c Thu Sep 14 00:37:51 2000 +0000 +++ b/src/prefs.c Thu Sep 14 01:00:28 2000 +0000 @@ -338,7 +338,7 @@ parent = prefdialog->parent; gtk_widget_destroy(prefdialog); - prefdialog = gtk_frame_new(_("Buddy List Options")); + prefdialog = gtk_frame_new(_("Oscar Options")); gtk_container_add(GTK_CONTAINER(parent), prefdialog); box = gtk_vbox_new(FALSE, 5); @@ -376,6 +376,7 @@ gtk_widget_show(label); gaim_button(_("Show numbers in groups"), &display_options, OPT_DISP_SHOW_GRPNUM, box); + gaim_button(_("Hide groups with no online buddies"), &display_options, OPT_DISP_NO_MT_GRP, box); gaim_button(_("Show idle times"), &display_options, OPT_DISP_SHOW_IDLETIME, box); gaim_button(_("Show buddy type icons"), &display_options, OPT_DISP_SHOW_PIXMAPS, box);