pidgin/purple-plugin-pack

8cdd143d61ee
Parents 21fc2c25e50b
Children 1c9869eb9748
Do not update the switchspell language if the newly created conversation
is not in the active tab. Fixes #500.
--- a/switchspell/switchspell.c Sun Aug 03 01:38:16 2008 -0400
+++ b/switchspell/switchspell.c Sun Aug 03 01:49:15 2008 -0400
@@ -188,6 +188,10 @@
if (win == NULL)
return;
+ /* Leave the menu alone if the tab is not the active conversation */
+ if (pidgin_conv_window_get_active_gtkconv(win) != gtkconv)
+ return;
+
menu = g_object_get_data(G_OBJECT(win->window), PROP_LANG);
if (menu == NULL)
return;
@@ -206,7 +210,7 @@
if (lang && curlang && strcmp(lang, curlang) == 0) {
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item->data), TRUE);
break;
- }
+ }
}
g_list_free(items);
g_free(curlang);
@@ -223,7 +227,7 @@
regenerate_switchspell_menu(gtkconv);
update_switchspell_selection(gtkconv);
}
-
+
static gboolean
make_sure_gtkconv(PurpleConversation *conv)
{