Mercurial > pidgin.yaz
comparison src/gtkstatusbox.c @ 12320:c2867c4ddcd3
[gaim-migrate @ 14624]
Fix the "Gtk: gtk_scrolled_window_add(): cannot add non scrollable widget
use gtk_scrolled_window_add_with_viewport() instead" debug message.
Amazingly, the fix is to do what the message suggested!
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 04 Dec 2005 18:12:19 +0000 |
parents | b3385115815c |
children | 24c5fbfca306 |
comparison
equal
deleted
inserted
replaced
12319:7630a95f3b8b | 12320:c2867c4ddcd3 |
---|---|
613 gtk_widget_set_parent(status_box->toggle_button, GTK_WIDGET(status_box)); | 613 gtk_widget_set_parent(status_box->toggle_button, GTK_WIDGET(status_box)); |
614 GTK_BIN(status_box)->child = status_box->toggle_button; | 614 GTK_BIN(status_box)->child = status_box->toggle_button; |
615 status_box->sw = gtk_scrolled_window_new(NULL, NULL); | 615 status_box->sw = gtk_scrolled_window_new(NULL, NULL); |
616 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(status_box->sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); | 616 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(status_box->sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); |
617 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(status_box->sw), GTK_SHADOW_IN); | 617 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(status_box->sw), GTK_SHADOW_IN); |
618 gtk_container_add(GTK_CONTAINER(status_box->sw), vbox); | 618 gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(status_box->sw), vbox); |
619 gtk_box_pack_start(GTK_BOX(vbox), status_box->toolbar, FALSE, FALSE, 0); | 619 gtk_box_pack_start(GTK_BOX(vbox), status_box->toolbar, FALSE, FALSE, 0); |
620 gtk_box_pack_start(GTK_BOX(vbox), status_box->hsep, FALSE, FALSE, 0); | 620 gtk_box_pack_start(GTK_BOX(vbox), status_box->hsep, FALSE, FALSE, 0); |
621 gtk_box_pack_start(GTK_BOX(vbox), status_box->imhtml, TRUE, TRUE, 0); | 621 gtk_box_pack_start(GTK_BOX(vbox), status_box->imhtml, TRUE, TRUE, 0); |
622 | 622 |
623 gtk_box_pack_start(GTK_BOX(status_box->vbox), status_box->sw, TRUE, TRUE, 0); | 623 gtk_box_pack_start(GTK_BOX(status_box->vbox), status_box->sw, TRUE, TRUE, 0); |