Re: GtkCalendar and glade
| From: | James Cameron | Date: | Sat, 06 Apr 2002 13:43:03 +0000 |
| Subject: | Re: GtkCalendar and glade | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1746@lists.php.net to get a copy of this message | ||
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/