Mercurial > pidgin
diff src/gtkdebug.c @ 10175:53410b84336f
[gaim-migrate @ 11290]
I wrote a helper function that creates the imhtml and toolbar and
puts them in a widget and what not. And I changed some places
to use this. And I removed some whitespace from log.c. And I
changed the conversation colors back to normal. And I'm not
committing everything in my tree, so let me know if this doesn't
compile. And that's all.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 14 Nov 2004 01:52:25 +0000 |
parents | 9fdbfe832fac |
children | ec140184437b |
line wrap: on
line diff
--- a/src/gtkdebug.c Sat Nov 13 16:17:41 2004 +0000 +++ b/src/gtkdebug.c Sun Nov 14 01:52:25 2004 +0000 @@ -228,7 +228,7 @@ DebugWindow *win; GtkWidget *vbox; GtkWidget *toolbar; - GtkWidget *sw; + GtkWidget *frame; GtkWidget *button; GtkWidget *image; int width, height; @@ -299,20 +299,10 @@ timestamps_pref_cb, button); } - /* Now our scrolled window... */ - sw = gtk_scrolled_window_new(NULL, NULL); - gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), - GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); - gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), - GTK_SHADOW_IN); - - /* ... which has a gtkimhtml in it. */ - win->text = gtk_imhtml_new(NULL, NULL); - - gtk_container_add(GTK_CONTAINER(sw), win->text); - - /* Pack it in... Not like that, sicko. */ - gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0); + /* Add the gtkimhtml */ + frame = gaim_gtk_create_imhtml(FALSE, &win->text, NULL); + gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); + gtk_widget_show(frame); gtk_widget_show_all(win->window);