Mercurial > pidgin
changeset 4934:04ca72a25f75
[gaim-migrate @ 5268]
Morten Brix Pedersen (mbrix) writes:
" When a user has the icons at the bottom turned off, the
buddy list is still resized to a fairly large width
when starting gaim.
When using an i18n version of gaim, the strings in the
button box are usually longer, thus meaning that with
many languages (e.g. Danish), the gaim window will grow
*very* wide.
The solution is to not show() the buttonbox before it's
enabled. Right now it's being show()ed together with
the rest of the buddy list."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 01 Apr 2003 00:01:19 +0000 |
parents | 34448ffab4f1 |
children | b89f7c450d6c |
files | src/buddy.c |
diffstat | 1 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buddy.c Mon Mar 31 23:47:45 2003 +0000 +++ b/src/buddy.c Tue Apr 01 00:01:19 2003 +0000 @@ -1216,6 +1216,16 @@ gtk_box_pack_start(GTK_BOX(gtkblist->vbox), sw, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(sw), gtkblist->treeview); gaim_gtk_blist_update_columns(); + + /* OK... let's show this bad boy. */ + gaim_gtk_blist_refresh(list); + gaim_gtk_blist_restore_position(); + gtk_widget_show_all(gtkblist->window); + + /* the button box below is first added now, the reason is that if we + * show() it immediately, the buddy list width will be dependent of + * the button box even if the user turned the button box off. */ + /**************************** Button Box **************************************/ sg = gtk_size_group_new(GTK_SIZE_GROUP_BOTH); @@ -1247,13 +1257,7 @@ gtk_size_group_add_widget(sg, button); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(gtk_blist_button_away_cb), NULL); - /* OK... let's show this bad boy. */ - gaim_gtk_blist_refresh(list); - gaim_gtk_blist_restore_position(); - gtk_widget_show_all(gtkblist->window); - gaim_gtk_blist_update_toolbar(); - } void gaim_gtk_blist_refresh(struct gaim_buddy_list *list)