Mercurial > pidgin
changeset 67:65a118affac1
[gaim-migrate @ 77]
Implemented a paned conversation window. Thanks, Syd! :)
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Mon, 27 Mar 2000 11:08:51 +0000 |
parents | eb2151d7e88a |
children | 03ec647d24e9 |
files | ChangeLog src/conversation.c |
diffstat | 2 files changed, 15 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Mar 27 11:01:12 2000 +0000 +++ b/ChangeLog Mon Mar 27 11:08:51 2000 +0000 @@ -3,6 +3,7 @@ version 0.9.13: * Dialog Box Segfault Fixed (When You Click A Toggle Then Cancel) * Double Log-Out Message Fixed + * Paned Conversation Window version 0.9.12 (03/25/2000): * Segfault fix for PPC/Alpha/etc machines with log(0)
--- a/src/conversation.c Mon Mar 27 11:01:12 2000 +0000 +++ b/src/conversation.c Mon Mar 27 11:08:51 2000 +0000 @@ -797,6 +797,8 @@ GtkWidget *toolbar; GtkWidget *bbox; GtkWidget *vbox; + GtkWidget *vbox2; + GtkWidget *paned; GtkWidget *add; GdkPixmap *strike_i, *small_i, *normal_i, *big_i, *bold_i, *italic_i, *underline_i, *speaker_i, *wood_i, *palette_i, *link_i; GtkWidget *strike_p, *small_p, *normal_p, *big_p, *bold_p, *italic_p, *underline_p, *speaker_p, *wood_p, *palette_p, *link_p; @@ -828,6 +830,12 @@ bbox = gtk_hbox_new(TRUE, 0); vbox = gtk_vbox_new(FALSE, 0); + vbox2 = gtk_vbox_new(FALSE, 0); + paned=gtk_vpaned_new(); + gtk_paned_pack1( GTK_PANED( paned ), vbox, FALSE, TRUE); + gtk_paned_pack2( GTK_PANED( paned ), vbox2, FALSE, FALSE); + gtk_widget_show(vbox2); + gtk_widget_show(paned); entry = gtk_text_new(NULL, NULL); gtk_text_set_editable(GTK_TEXT(entry), TRUE); @@ -994,7 +1002,7 @@ gtk_signal_connect(GTK_OBJECT(color), "clicked", GTK_SIGNAL_FUNC(color_callback), c); gtk_signal_connect(GTK_OBJECT(entry), "key_press_event", GTK_SIGNAL_FUNC(user_keypress_callback), c); - gtk_widget_set_usize(entry, 300, 70); + gtk_widget_set_usize(entry, 300, 25); gtk_box_pack_start(GTK_BOX(bbox), send, TRUE, TRUE, 5); gtk_box_pack_start(GTK_BOX(bbox), info, TRUE, TRUE, 5); @@ -1007,9 +1015,9 @@ /* pack and fill the rest */ gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 5); - gtk_box_pack_start(GTK_BOX(vbox), toolbar, FALSE, FALSE, 5); - gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 5); - gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 5); + gtk_box_pack_start(GTK_BOX(vbox2), toolbar, FALSE, FALSE, 5); + gtk_box_pack_start(GTK_BOX(vbox2), entry, TRUE, TRUE, 5); + gtk_box_pack_start(GTK_BOX(vbox2), bbox, FALSE, FALSE, 5); @@ -1026,7 +1034,8 @@ gtk_widget_show(entry); gtk_widget_show(text); - gtk_container_add(GTK_CONTAINER(win),vbox); + + gtk_container_add(GTK_CONTAINER(win),paned); gtk_container_border_width(GTK_CONTAINER(win), 10); if ((find_log_info(c->name)) || ((general_options & OPT_GEN_LOG_ALL)))