Problem with GtkFixed container
| From: | tmccomas at linuxfreemail dot com | Date: | Mon, 12 Nov 2001 01:49:59 +0000 |
| Subject: | Problem with GtkFixed container | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-570@lists.php.net to get a copy of this message | ||
Ive created a window in glade... inserted a scrollbar container with
automatic policys... Within the scrollbar1 there is a viewport, within the
viewport is a fixed container...
Im trying to put() a widget inside the fixed container and recieve the
following error:
Call to undefined function: put()
Or if i use: $fixed1->add($widget) i get this error:
Gtk-CRITICAL **: file gtkviewport.c: line 635 (gtk_viewport_add):
assertion 'bin->child == NULL' failed
So how do I go about adding widgets to the fixed container?
Attached is my code!
TIA
function scheduling($mainappwin, $mainapp, $scrolledwindow1, $viewport1,
$fixed2) {
$buttontest = &new GtkButton("Hello");
$fixed2->put($buttontest);
}
function mainapp_win($loginwinfile, $loginwin, $uname, $pass) {
print("Your username is: $uname\r\n");
if(isset($loginwin)) {
$loginwin = $loginwinfile->get_toplevel();
$loginwin->hide();
}
$mainappwin = &new GladeXML("c:\ppmgtk\mainappwin.glade");
$mainapp = $mainappwin->get_widget("mainappWin");
$menu_file_quit = $mainappwin->get_widget("menu_file_quit");
$menu_file_quit->connect('activate', 'quit_app');
$main_bttn_sched = $mainappwin->get_widget("main_bttn_sched");
$scrolledwindow1 = $mainappwin->get_widget("scrolledwindow1");
$viewport1 = $mainappwin->get_widget("viewport1");
$fixed2 = $mainappwin->get_widget("fixed2");
$main_bttn_sched->connect('clicked', 'scheduling', $mainappwin, $mainapp,
$scrolledwindow1, $viewport1, $fixed2);
}
Get your own FREE E-mail address at http://www.linuxfreemail.com
Linux FREE Mail is 100% FREE, 100% Linux, and 100% yours!