# HG changeset patch # User Luke Schierer # Date 1049155279 0 # Node ID 04ca72a25f75b2cafe4e8664083eb5d86237eb6b # Parent 34448ffab4f1c24a554e356675e3d49a4c7099ed [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 diff -r 34448ffab4f1 -r 04ca72a25f75 src/buddy.c --- 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)