Mercurial > pidgin.yaz
comparison src/buddy_chat.c @ 4211:468f1ce401db
[gaim-migrate @ 4448]
faceprint fixed the menu when you have chats as well now.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 06 Jan 2003 00:26:49 +0000 |
parents | 511c2b63caa4 |
children | 709de528927e |
comparison
equal
deleted
inserted
replaced
4210:e11393a176d5 | 4211:468f1ce401db |
---|---|
1231 gtk_widget_show(testidea); | 1231 gtk_widget_show(testidea); |
1232 | 1232 |
1233 gtk_notebook_set_scrollable(GTK_NOTEBOOK(chat_notebook), TRUE); | 1233 gtk_notebook_set_scrollable(GTK_NOTEBOOK(chat_notebook), TRUE); |
1234 gtk_notebook_popup_enable(GTK_NOTEBOOK(chat_notebook)); | 1234 gtk_notebook_popup_enable(GTK_NOTEBOOK(chat_notebook)); |
1235 gtk_container_add(GTK_CONTAINER(win), testidea); | 1235 gtk_container_add(GTK_CONTAINER(win), testidea); |
1236 g_signal_connect(GTK_OBJECT(chat_notebook), "switch-page", | 1236 g_signal_connect_after(GTK_OBJECT(chat_notebook), "switch-page", |
1237 G_CALLBACK(convo_switch), NULL); | 1237 G_CALLBACK(convo_switch), NULL); |
1238 gtk_widget_show(chat_notebook); | 1238 gtk_widget_show(chat_notebook); |
1239 } else | 1239 } else |
1240 win = b->window = all_chats; | 1240 win = b->window = all_chats; |
1241 | 1241 |
1253 | 1253 |
1254 gtk_box_pack_start(GTK_BOX(tabby), b->tab_label, FALSE, FALSE, 0); | 1254 gtk_box_pack_start(GTK_BOX(tabby), b->tab_label, FALSE, FALSE, 0); |
1255 gtk_box_pack_start(GTK_BOX(tabby), b->close, FALSE, FALSE, 0); | 1255 gtk_box_pack_start(GTK_BOX(tabby), b->close, FALSE, FALSE, 0); |
1256 gtk_widget_show_all(tabby); | 1256 gtk_widget_show_all(tabby); |
1257 gtk_notebook_append_page(GTK_NOTEBOOK(chat_notebook), cont, tabby); | 1257 gtk_notebook_append_page(GTK_NOTEBOOK(chat_notebook), cont, tabby); |
1258 gtk_notebook_set_menu_label_text(GTK_NOTEBOOK(chat_notebook), cont, | |
1259 b->name); | |
1258 gtk_widget_show(cont); | 1260 gtk_widget_show(cont); |
1259 } else { | 1261 } else { |
1260 win = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 1262 win = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
1261 b->window = win; | 1263 b->window = win; |
1262 gtk_object_set_user_data(GTK_OBJECT(win), b); | 1264 gtk_object_set_user_data(GTK_OBJECT(win), b); |
1391 | 1393 |
1392 b->entry_buffer = gtk_text_buffer_new(NULL); | 1394 b->entry_buffer = gtk_text_buffer_new(NULL); |
1393 g_object_set_data(G_OBJECT(b->entry_buffer), "user_data", b); | 1395 g_object_set_data(G_OBJECT(b->entry_buffer), "user_data", b); |
1394 chatentry = gtk_text_view_new_with_buffer(b->entry_buffer); | 1396 chatentry = gtk_text_view_new_with_buffer(b->entry_buffer); |
1395 b->entry = chatentry; | 1397 b->entry = chatentry; |
1396 if (!(chat_options & OPT_CHAT_ONE_WINDOW)) | 1398 if (!(chat_options & OPT_CHAT_ONE_WINDOW) |
1397 gtk_window_set_focus(GTK_WINDOW(b->window), b->entry); | 1399 || ((gtk_notebook_get_current_page(GTK_NOTEBOOK(chat_notebook)) == 0) |
1400 && (b = g_list_nth_data(chats, 0)))) | |
1401 gtk_widget_grab_focus(b->entry); | |
1398 | 1402 |
1399 | 1403 |
1400 b->makesound = 1; /* Need to do this until we get a menu */ | 1404 b->makesound = 1; /* Need to do this until we get a menu */ |
1401 | 1405 |
1402 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(b->entry), GTK_WRAP_WORD); | 1406 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(b->entry), GTK_WRAP_WORD); |