Index: src/gtkconv.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkconv.c,v retrieving revision 1.396 diff -u -p -r1.396 gtkconv.c --- src/gtkconv.c 9 Jun 2004 06:08:55 -0000 1.396 +++ src/gtkconv.c 10 Jun 2004 10:54:33 -0000 @@ -4675,7 +4675,7 @@ gaim_gtkconv_write_im(GaimConversation * g_object_get(G_OBJECT(gtkwin->window), "has-toplevel-focus", &has_focus, NULL); if (!(flags & GAIM_MESSAGE_NO_LOG) && - gaim_prefs_get_bool("/gaim/gtk/conversations/raise_on_events")) { + gaim_prefs_get_bool("/gaim/gtk/conversations/im/raise_on_events")) { gaim_conv_window_raise(gaim_conversation_get_window(conv)); } @@ -4740,7 +4740,7 @@ gaim_gtkconv_write_chat(GaimConversation /* Raise the window, if specified in prefs. */ if (!(flags & GAIM_MESSAGE_NO_LOG) && /* we may want to change this */ - gaim_prefs_get_bool("/gaim/gtk/conversations/raise_on_events")) { + gaim_prefs_get_bool("/gaim/gtk/conversations/chat/raise_on_events")) { gaim_conv_window_raise(gaim_conversation_get_window(conv)); } @@ -4771,7 +4771,11 @@ gaim_gtkconv_write_conv(GaimConversation win = gaim_conversation_get_window(conv); - if (!(flags & GAIM_MESSAGE_NO_LOG) && gaim_prefs_get_bool("/gaim/gtk/conversations/raise_on_events")) { + if (!(flags & GAIM_MESSAGE_NO_LOG) && + ((gaim_conversation_get_type(conv) == GAIM_CONV_CHAT && + gaim_prefs_get_bool("/gaim/gtk/conversations/chat/raise_on_events")) || + (gaim_conversation_get_type(conv) == GAIM_CONV_IM && + gaim_prefs_get_bool("/gaim/gtk/conversations/im/raise_on_events")))) { gaim_conv_window_show(win); } @@ -6008,7 +6012,8 @@ gaim_gtk_conversations_init(void) gaim_prefs_add_int("/gaim/gtk/conversations/tab_side", GTK_POS_TOP); gaim_prefs_add_int("/gaim/gtk/conversations/button_type", GAIM_BUTTON_TEXT_IMAGE); - gaim_prefs_add_bool("/gaim/gtk/conversations/raise_on_events", FALSE); + gaim_prefs_add_bool("/gaim/gtk/conversations/im/raise_on_events", FALSE); + gaim_prefs_add_bool("/gaim/gtk/conversations/chat/raise_on_events", FALSE); /* Conversations -> Chat */ Index: src/gtkprefs.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkprefs.c,v retrieving revision 1.184 diff -u -p -r1.184 gtkprefs.c --- src/gtkprefs.c 9 Jun 2004 20:47:06 -0000 1.184 +++ src/gtkprefs.c 10 Jun 2004 10:54:33 -0000 @@ -974,23 +974,28 @@ GtkWidget *conv_page() { "/gaim/gtk/conversations/show_formatting_toolbar", vbox); gaim_gtk_prefs_checkbox(_("Show _aliases in tabs/titles"), "/core/conversations/use_alias_for_title", vbox); + + gaim_gtk_prefs_checkbox(_("Enable \"_slash\" commands"), + "/gaim/gtk/conversations/enable_commands", vbox); + gaim_gtk_prefs_checkbox(_("Show buddy _icons"), "/gaim/gtk/conversations/im/show_buddy_icons", vbox); gaim_gtk_prefs_checkbox(_("Enable buddy ic_on animation"), "/gaim/gtk/conversations/im/animate_buddy_icons", vbox); - gaim_gtk_prefs_checkbox(_("_Raise window on events"), - "/gaim/gtk/conversations/raise_on_events", vbox); gaim_gtk_prefs_checkbox(_("_Notify buddies that you are typing to them"), "/core/conversations/im/send_typing", vbox); - gaim_gtk_prefs_checkbox(_("Enable \"_slash\" commands"), - "/gaim/gtk/conversations/enable_commands", vbox); + gaim_gtk_prefs_checkbox(_("_Raise IM window on events"), + "/gaim/gtk/conversations/im/raise_on_events", vbox); + + gaim_gtk_prefs_checkbox(_("Raise chat _window on events"), + "/gaim/gtk/conversations/chat/raise_on_events", vbox); gaim_gtk_prefs_checkbox(_("Use _multi-colored screen names in chats"), "/gaim/gtk/conversations/chat/color_nicks", vbox); /* All the tab options! */ vbox = gaim_gtk_make_frame(ret, _("Tab Options")); - gaim_gtk_prefs_checkbox(_("Show IMs and chats in _tabbed windows"), + gaim_gtk_prefs_checkbox(_("Show _tabs in IM and Chat windows"), "/gaim/gtk/conversations/tabs", vbox); /* @@ -2726,8 +2731,6 @@ void gaim_gtk_prefs_update_old() { gaim_prefs_rename("/gaim/gtk/conversations/im/button_type", "/gaim/gtk/conversations/button_type"); - gaim_prefs_rename("/gaim/gtk/conversations/im/raise_on_events", - "/gaim/gtk/conversations/raise_on_events"); /* Remove some no-longer-used prefs */ gaim_prefs_remove("/gaim/gtk/blist/show_group_count"); @@ -2747,4 +2750,5 @@ void gaim_gtk_prefs_update_old() { gaim_prefs_remove("/gaim/gtk/conversations/use_custom_bgcolor"); gaim_prefs_remove("/gaim/gtk/conversations/use_custom_fgcolor"); gaim_prefs_remove("/gaim/gtk/conversations/use_custom_size"); + gaim_prefs_remove("/gaim/gtk/conversations/im/hide_on_send"); }