Index: src/gtkconv.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkconv.c,v retrieving revision 1.386 diff -u -p -r1.386 gtkconv.c --- src/gtkconv.c 28 May 2004 20:36:32 -0000 1.386 +++ src/gtkconv.c 30 May 2004 15:42:48 -0000 @@ -4482,7 +4482,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)); } @@ -4547,7 +4547,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)); } @@ -4578,7 +4578,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); } @@ -5813,7 +5817,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.178 diff -u -p -r1.178 gtkprefs.c --- src/gtkprefs.c 28 May 2004 20:36:32 -0000 1.178 +++ src/gtkprefs.c 30 May 2004 15:42:48 -0000 @@ -943,9 +943,10 @@ conversation_placement_cb(const char *na { const char *placement = value; - if (strcmp(placement, "new")) + if (strcmp(placement, "new")) { + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(data), TRUE); gtk_widget_set_sensitive(GTK_WIDGET(data), FALSE); - else + } else gtk_widget_set_sensitive(GTK_WIDGET(data), TRUE); } @@ -1003,12 +1004,12 @@ GtkWidget *conv_page() { gaim_gtk_prefs_checkbox(_("Show a_liases in tabs/titles"), "/core/conversations/use_alias_for_title", vbox); + sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); + vbox = gaim_gtk_make_frame(ret, _("IMs")); + gaim_gtk_prefs_checkbox(_("_Raise window on events"), - "/gaim/gtk/conversations/raise_on_events", vbox); + "/gaim/gtk/conversations/im/raise_on_events", vbox); - /* XXX This caption totally sucks but I can't break the string freeze. */ - gaim_gtk_prefs_checkbox(_("Co_lorize screen names"), - "/gaim/gtk/conversations/chat/color_nicks", vbox); gaim_gtk_prefs_checkbox(_("Show buddy _icons"), "/gaim/gtk/conversations/im/show_buddy_icons", vbox); gaim_gtk_prefs_checkbox(_("Enable buddy icon a_nimation"), @@ -1016,6 +1017,16 @@ GtkWidget *conv_page() { gaim_gtk_prefs_checkbox(_("Notify buddies that you are _typing to them"), "/core/conversations/im/send_typing", vbox); + sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); + vbox = gaim_gtk_make_frame(ret, _("Chats")); + + gaim_gtk_prefs_checkbox(_("_Raise window on events"), + "/gaim/gtk/conversations/chat/raise_on_events", vbox); + + /* XXX This caption totally sucks but I can't break the string freeze. */ + gaim_gtk_prefs_checkbox(_("Co_lorize screen names"), + "/gaim/gtk/conversations/chat/color_nicks", vbox); + vbox = gaim_gtk_make_frame (ret, _("Tab Options")); tabs_checkbox = gaim_gtk_prefs_checkbox(_("Show IMs and chats in _tabbed windows"), @@ -2772,8 +2783,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");