Mercurial > pidgin.yaz
comparison src/buddy_chat.c @ 3683:e3583f15dfe0
[gaim-migrate @ 3813]
Does this work better?
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Mon, 14 Oct 2002 04:52:31 +0000 |
parents | bdd0bebd2d04 |
children | 7ae5c5cf9b14 |
comparison
equal
deleted
inserted
replaced
3682:73c2b924703e | 3683:e3583f15dfe0 |
---|---|
1173 | 1173 |
1174 int dispstyle = set_dispstyle(1); | 1174 int dispstyle = set_dispstyle(1); |
1175 | 1175 |
1176 if (chat_options & OPT_CHAT_ONE_WINDOW) { | 1176 if (chat_options & OPT_CHAT_ONE_WINDOW) { |
1177 if (!all_chats) { | 1177 if (!all_chats) { |
1178 GtkWidget *testidea; | |
1179 | |
1178 win = all_chats = b->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 1180 win = all_chats = b->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
1179 if ((convo_options & OPT_CONVO_COMBINE) && (im_options & OPT_IM_ONE_WINDOW)) | 1181 if ((convo_options & OPT_CONVO_COMBINE) && (im_options & OPT_IM_ONE_WINDOW)) |
1180 all_convos = all_chats; | 1182 all_convos = all_chats; |
1181 gtk_window_set_wmclass(GTK_WINDOW(win), "buddy_chat", "Gaim"); | 1183 gtk_window_set_wmclass(GTK_WINDOW(win), "buddy_chat", "Gaim"); |
1182 gtk_window_set_policy(GTK_WINDOW(win), TRUE, TRUE, FALSE); | 1184 gtk_window_set_policy(GTK_WINDOW(win), TRUE, TRUE, FALSE); |
1204 } else { | 1206 } else { |
1205 gtk_notebook_set_tab_pos(GTK_NOTEBOOK(chat_notebook), | 1207 gtk_notebook_set_tab_pos(GTK_NOTEBOOK(chat_notebook), |
1206 GTK_POS_TOP); | 1208 GTK_POS_TOP); |
1207 } | 1209 } |
1208 } | 1210 } |
1211 | |
1212 testidea = gtk_vbox_new(FALSE, 0); | |
1213 gtk_box_pack_start(GTK_BOX(testidea), chat_notebook, TRUE, TRUE, 0); | |
1214 gtk_widget_show(testidea); | |
1215 | |
1209 gtk_notebook_set_scrollable(GTK_NOTEBOOK(chat_notebook), TRUE); | 1216 gtk_notebook_set_scrollable(GTK_NOTEBOOK(chat_notebook), TRUE); |
1210 gtk_notebook_popup_enable(GTK_NOTEBOOK(chat_notebook)); | 1217 gtk_notebook_popup_enable(GTK_NOTEBOOK(chat_notebook)); |
1211 gtk_container_add(GTK_CONTAINER(win), chat_notebook); | 1218 gtk_container_add(GTK_CONTAINER(win), testidea); |
1212 gtk_signal_connect(GTK_OBJECT(chat_notebook), "switch-page", | 1219 gtk_signal_connect(GTK_OBJECT(chat_notebook), "switch-page", |
1213 GTK_SIGNAL_FUNC(convo_switch), NULL); | 1220 GTK_SIGNAL_FUNC(convo_switch), NULL); |
1214 gtk_widget_show(chat_notebook); | 1221 gtk_widget_show(chat_notebook); |
1215 } else | 1222 } else |
1216 win = b->window = all_chats; | 1223 win = b->window = all_chats; |