Re: GtkCalendar and glade
| From: | Alan Knowles | Date: | Sun, 07 Apr 2002 15:57:36 +0000 |
| Subject: | Re: GtkCalendar and glade | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1754@lists.php.net to get a copy of this message | ||
the 'could not write function XXXXXX' messages are normal, - they relate to either unimplemented features, or unneccesary features, based on the 'standard' gtk API definitions.
eg. just ignore them usually...
regards
alan
Michael Dransfield wrote:
i have just checked out from CVS again and did ./buildconf;./configure;make;make install I got these errors during make The test still doesnt work. Is this related to gtk, glade or php-gtk? Could not write function gtk_item_factory_popup_data_from_widget (return type gpointer) Could not write function init_add (parameter type GtkFunction) Could not write function preview_get_info (return type GtkPreviewInfo*) Could not write function rc_set_default_files (parameter type gchar**) Could not write function rc_get_default_files (return type gchar**) Could not write function rc_add_widget_name_style (parameter type GtkRcStyle*) Could not write function rc_add_widget_class_style (parameter type GtkRcStyle*) Could not write function rc_add_class_style (parameter type GtkRcStyle*) Could not write function rc_set_image_loader (parameter type GtkImageLoader) Could not write function rc_find_pixmap_in_path (parameter type GScanner*) Could not write function rc_parse_color (parameter type GScanner*) Could not write function rc_parse_state (parameter type GScanner*) Could not write function rc_parse_priority (parameter type GScanner*) Could not write function gtk_draw_polygon (parameter type GdkPoint*) Could not write function gtk_paint_polygon (parameter type GdkPoint*) Could not write method GtkWidget::selection_add_targets (parameter type const-GtkTargetEntry*) Could not write method GtkWidget::selection_clear (parameter type GdkEventSelection*) Could not write method GtkWidget::destroyed (parameter type GtkWidget**) Could not write method GtkWidget::modify_style (parameter type GtkRcStyle*) Could not write method GtkWidget::path (parameter type guint*) Could not write method GtkWidget::class_path (parameter type guint*) Could not write method GtkPixmap::get (parameter type GdkPixmap**) Could not write constructor gtk_image_new (parameter type GdkImage*) Could not write method GtkImage::set (parameter type GdkImage*) Could not write method GtkImage::get (parameter type GdkImage**) Could not write method GtkTree::remove_items (parameter type GList*) Could not write method GtkToolbar::append_item (parameter type GtkSignalFunc) Could not write method GtkToolbar::prepend_item (parameter type GtkSignalFunc) Could not write method GtkToolbar::insert_item (parameter type GtkSignalFunc) Could not write method GtkToolbar::append_element (parameter type GtkSignalFunc) Could not write method GtkToolbar::prepend_element (parameter type GtkSignalFunc) Could not write method GtkToolbar::insert_element (parameter type GtkSignalFunc) Could not write getter for GtkLayout '*bin_window' field (field type GdkWindow) Could not write method GtkButtonBox::get_child_size (parameter type gint*) Could not write method GtkButtonBox::get_child_ipadding (parameter type gint*) Could not write method GtkCList::set_compare_func (parameter type GtkCListCompareFunc) Could not write method GtkCTree::find_by_row_data_custom (parameter type gpointer) Could not write method GtkCTree::find_all_by_row_data_custom (parameter type gpointer) 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