Mercurial > pidgin
changeset 902:bd5f4997f063
[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 <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 14 Sep 2000 01:00:28 +0000 |
parents | f168f2c7b357 |
children | 16492f41410d |
files | src/buddy.c src/gaim.h src/prefs.c |
diffstat | 3 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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
--- 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);