Re: GtkCalendar and glade

From: Date: Sun, 07 Apr 2002 15:41:58 +0000
Subject: Re: GtkCalendar and glade
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1752@lists.php.net to get a copy of this message
I also took the latest from CVS a few days ago... Also Linux... i am attaching some very simple test files which DOESNT work on my machine. i just did a very simple ./configure;make;make install (no gtk-html or anything) ill try from CVS again and see if that changes anything On Sat, 2002-04-06 at 14:43, James Cameron wrote: > On Sat, Apr 06, 2002 at 01:48:38PM +0100, Michael Dransfield wrote: > > I have added a GtkCalendar object in a glade file, when it is loaded i > > get the error > > ** WARNING **: unknown widget class 'GtkCalendar' > > and the widget is displayed as [GtkCalendar] > > I can manually create a GtkCalendar and it displays correctly. > > I've just taken a working Glade test example found on this mailing > list some months ago, removed the button and substituted a GtkCalendar, > and it has worked without error. > > This is with PHP-GTK from CVS from a few days ago. Linux. > > So, you've got a "works for me" from me ... let's find out what is > different about your environment? > > tmp.php: > <?php > dl("php_gtk.so"); > $gx = &new GladeXML("tmp.glade"); > $gx->signal_autoconnect(); > Gtk::main(); > ?> > > tmp.glade: > <?xml version="1.0"?> > <GTK-Interface> > > <project> > <name>tmp</name> > <program_name>tmp</program_name> > <directory></directory> > <source_directory>src</source_directory> > <pixmaps_directory>pixmaps</pixmaps_directory> > <language>C</language> > <gnome_support>False</gnome_support> > <gettext_support>False</gettext_support> > </project> > > <widget> > <class>GtkWindow</class> > <name>windowMain</name> > <width>150</width> > <height>80</height> > <title>PHP-GTK-Glade for world domination</title> > <type>GTK_WINDOW_TOPLEVEL</type> > <position>GTK_WIN_POS_NONE</position> > <modal>False</modal> > <allow_shrink>False</allow_shrink> > <allow_grow>True</allow_grow> > <auto_shrink>False</auto_shrink> > > <widget> > <class>GtkCalendar</class> > <name>calendar1</name> > <can_focus>True</can_focus> > <show_heading>True</show_heading> > <show_day_names>True</show_day_names> > <no_month_change>False</no_month_change> > <show_week_numbers>False</show_week_numbers> > <week_start_monday>False</week_start_monday> > </widget> > </widget> > > </GTK-Interface> > > -- > James Cameron mailto:quozl@us.netrek.org > http://quozl.netrek.org/ > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

Attachment: [application/x-glade] myglade.glade
Attachment: [application/x-php] test.php
« previous php.gtk.general (#1752) next »