Mercurial > pidgin
changeset 10282:778dd5d6d55e
[gaim-migrate @ 11451]
Patch from Scott Shedden to have the blist hidden when Gaim starts.
This actually probably won't work for most people currently, because
on X11, the docklet is added asynchrously, so we usually won't realize the
docklet exists until we've already created the blist. I'm sure there
must be some way around this, though (Scott's solution was to manually hide
the buddy list when the docklet was finally embedded. I may fall back on
that).
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 01 Dec 2004 01:17:19 +0000 |
parents | f1a4e59711f4 |
children | 60d2e2bad26b |
files | src/gtkblist.c |
diffstat | 1 files changed, 11 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkblist.c Tue Nov 30 17:39:06 2004 +0000 +++ b/src/gtkblist.c Wed Dec 01 01:17:19 2004 +0000 @@ -3097,7 +3097,8 @@ {"application/x-im-contact", 0, DRAG_BUDDY}, {"text/x-vcard", 0, DRAG_VCARD }}; if (gtkblist && gtkblist->window) { - gtk_widget_show(gtkblist->window); + if (gaim_prefs_get_bool("/gaim/gtk/blist/list_visible") || docklet_count == 0) + gtk_widget_show(gtkblist->window); return; } @@ -3250,9 +3251,11 @@ gtk_widget_set_sensitive(gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Mute Sounds")), FALSE); /* OK... let's show this bad boy. */ - gaim_gtk_blist_refresh(list); - gaim_gtk_blist_restore_position(); - gtk_widget_show(gtkblist->window); + if (gaim_prefs_get_bool("/gaim/gtk/blist/list_visible") || docklet_count == 0) { + gaim_gtk_blist_refresh(list); + gaim_gtk_blist_restore_position(); + gtk_widget_show(gtkblist->window); + } /* start the refresh timer */ if (gaim_prefs_get_bool("/gaim/gtk/blist/show_idle_time") || @@ -3803,7 +3806,9 @@ { if (!(gtkblist && gtkblist->window)) return; - + + gaim_prefs_set_bool("/gaim/gtk/blist/list_visible", show); + if (show) { gaim_gtk_blist_restore_position(); gtk_window_present(GTK_WINDOW(gtkblist->window)); @@ -4531,6 +4536,7 @@ gaim_prefs_add_bool("/gaim/gtk/blist/show_idle_time", TRUE); gaim_prefs_add_bool("/gaim/gtk/blist/show_offline_buddies", FALSE); gaim_prefs_add_bool("/gaim/gtk/blist/show_warning_level", TRUE); + gaim_prefs_add_bool("/gaim/gtk/blist/list_visible", TRUE); gaim_prefs_add_string("/gaim/gtk/blist/sort_type", "alphabetical"); gaim_prefs_add_int("/gaim/gtk/blist/x", 0); gaim_prefs_add_int("/gaim/gtk/blist/y", 0);