comparison src/gtkblist.c @ 12119:312efb43c49a

[gaim-migrate @ 14419] Let's try this modification to charkins latest visibility_manager change. I moved the restore_position and show_all calls into the blist_show function, since I really don't think we need to be showing and then iconifying the blist everytime we set_visible gets called without a visibility manager. I removed the gaim_blist_show call from connection.c that was causing the blist window to be re-shown when an account connected. I think this was either a remnant of the blist raise on events pref or a remnant from when we had a Login screen. I don't think we need it anymore, someone let me know if this breaks things. I also removed what I believe was the visibility_manager check that was added to work around the annoyance this was causing. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Thu, 17 Nov 2005 00:11:53 +0000
parents cb77957d644c
children 9c123e27e2f6
comparison
equal deleted inserted replaced
12118:56a3649c7bed 12119:312efb43c49a
3342 {"text/plain", 0, DRAG_TEXT}}; 3342 {"text/plain", 0, DRAG_TEXT}};
3343 GtkTargetEntry ste[] = {{"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, DRAG_ROW}, 3343 GtkTargetEntry ste[] = {{"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, DRAG_ROW},
3344 {"application/x-im-contact", 0, DRAG_BUDDY}, 3344 {"application/x-im-contact", 0, DRAG_BUDDY},
3345 {"text/x-vcard", 0, DRAG_VCARD }}; 3345 {"text/x-vcard", 0, DRAG_VCARD }};
3346 if (gtkblist && gtkblist->window) { 3346 if (gtkblist && gtkblist->window) {
3347 if(!GTK_WIDGET_VISIBLE(gtkblist->window)) 3347 gaim_blist_set_visible(gaim_prefs_get_bool("/gaim/gtk/blist/list_visible"));
3348 gaim_blist_set_visible(gaim_prefs_get_bool("/gaim/gtk/blist/list_visible"));
3349 return; 3348 return;
3350 } 3349 }
3351 3350
3352 gtkblist = GAIM_GTK_BLIST(list); 3351 gtkblist = GAIM_GTK_BLIST(list);
3353 3352
3530 gaim_gtk_blist_update_plugin_actions(); 3529 gaim_gtk_blist_update_plugin_actions();
3531 gaim_gtk_blist_update_sort_methods(); 3530 gaim_gtk_blist_update_sort_methods();
3532 3531
3533 /* OK... let's show this bad boy. */ 3532 /* OK... let's show this bad boy. */
3534 gaim_gtk_blist_refresh(list); 3533 gaim_gtk_blist_refresh(list);
3534 gaim_gtk_blist_restore_position();
3535 gtk_widget_show_all(GTK_WIDGET(gtkblist->window));
3535 gaim_blist_set_visible(gaim_prefs_get_bool("/gaim/gtk/blist/list_visible")); 3536 gaim_blist_set_visible(gaim_prefs_get_bool("/gaim/gtk/blist/list_visible"));
3536 3537
3537 /* start the refresh timer */ 3538 /* start the refresh timer */
3538 gtkblist->refresh_timer = g_timeout_add(30000, (GSourceFunc)gaim_gtk_blist_refresh_timer, list); 3539 gtkblist->refresh_timer = g_timeout_add(30000, (GSourceFunc)gaim_gtk_blist_refresh_timer, list);
3539 3540
4069 } else { 4070 } else {
4070 if(visibility_manager_count) { 4071 if(visibility_manager_count) {
4071 gaim_signal_emit(gaim_gtk_blist_get_handle(), "gtkblist-hiding", gtkblist); 4072 gaim_signal_emit(gaim_gtk_blist_get_handle(), "gtkblist-hiding", gtkblist);
4072 gtk_widget_hide(gtkblist->window); 4073 gtk_widget_hide(gtkblist->window);
4073 } else { 4074 } else {
4074 gaim_gtk_blist_restore_position();
4075 gtk_widget_show_all(GTK_WIDGET(gtkblist->window));
4076 gtk_window_iconify(GTK_WINDOW(gtkblist->window)); 4075 gtk_window_iconify(GTK_WINDOW(gtkblist->window));
4077 } 4076 }
4078 } 4077 }
4079 } 4078 }
4080 4079