Mercurial > pidgin
changeset 10146:ffab99688e5f
[gaim-migrate @ 11222]
Sean made the gtkimhtmltoolbar and gtkimhtml in the conversation
windows closer together. I did the same thing with the AIM
set user info box (part of gtkrequest.c)
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 27 Oct 2004 00:05:28 +0000 |
parents | 4d484e455839 |
children | a485dedd6ba2 |
files | src/gtkrequest.c |
diffstat | 1 files changed, 20 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkrequest.c Tue Oct 26 01:00:35 2004 +0000 +++ b/src/gtkrequest.c Wed Oct 27 00:05:28 2004 +0000 @@ -335,19 +335,34 @@ data->u.input.hint = (hint == NULL ? NULL : g_strdup(hint)); if ((data->u.input.hint != NULL) && (!strcmp(data->u.input.hint, "html"))) { + GtkWidget *frame; + GtkWidget *vbox2; + GtkWidget *sep; GtkWidget *sw; + /* Thin frame surrounding the toolbar and imhtml */ + frame = gtk_frame_new(NULL); + gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN); + gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); + gtk_widget_show(frame); + + vbox2 = gtk_vbox_new(FALSE, 0); + gtk_container_add(GTK_CONTAINER(frame), vbox2); + gtk_widget_show(vbox2); + sw = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); - gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), - GTK_SHADOW_IN); - gtk_widget_set_size_request(sw, 320, 130); /* Toolbar */ toolbar = gtk_imhtmltoolbar_new(); - gtk_box_pack_start(GTK_BOX(vbox), toolbar, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(vbox2), toolbar, FALSE, FALSE, 0); + + /* Separator */ + sep = gtk_hseparator_new(); + gtk_box_pack_start(GTK_BOX(vbox2), sep, FALSE, FALSE, 0); + gtk_widget_show(sep); /* GtkIMHtml */ entry = gtk_imhtml_new(NULL, NULL); @@ -363,7 +378,7 @@ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(entry), GTK_WRAP_WORD_CHAR); - gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0); + gtk_box_pack_start(GTK_BOX(vbox2), sw, TRUE, TRUE, 0); if (gaim_prefs_get_bool("/gaim/gtk/conversations/spellcheck")) gaim_gtk_setup_gtkspell(GTK_TEXT_VIEW(entry));