Re: Glade current status?
| From: | Jeremy Johnstone | Date: | Tue, 18 Oct 2005 06:10:50 +0000 |
| Subject: | Re: Glade current status? | ||
| References: | 1 2 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1850@lists.php.net to get a copy of this message | ||
Test.php:
<?php
define("FILESYSTEM_PATH", dirname(__FILE__));
echo $glade_xml = file_get_contents(FILESYSTEM_PATH . '/test_project.glade');
$window =& new GladeXML($glade_xml, strlen($glade_xml), NULL, NULL);
print_r(get_class_methods($window));
gtk::main();
test_project.glade:
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget class="GtkWindow" id="window1">
<property name="visible">True</property>
<property name="title" translatable="yes">window1</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow5">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child>
<widget class="GtkTextView" id="textview4">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
<property name="overwrite">False</property>
<property name="accepts_tab">True</property>
<property name="justification">GTK_JUSTIFY_LEFT</property>
<property name="wrap_mode">GTK_WRAP_NONE</property>
<property name="cursor_visible">True</property>
<property name="pixels_above_lines">0</property>
<property name="pixels_below_lines">0</property>
<property name="pixels_inside_wrap">0</property>
<property name="left_margin">0</property>
<property name="right_margin">0</property>
<property name="indent">0</property>
<property name="text" translatable="yes"></property>
</widget>
</child>
</widget>
</child>
</widget>
</glade-interface>
-Jeremy
On 10/16/05, Andrei Zmievski <andrei@gravitonic.com> wrote:
> Your attachments didn't come through.
>
> -Andrei
>
>
> On Oct 16, 2005, at 1:38 AM, Jeremy Johnstone wrote:
>
> > Been trying to get Glade working this evening and not having much
> > luck. I was overly ambitious at first, but have now got my test
> > cases down to about the smallest possible and it still doesn't
> > work. When I say doesn't work, I mean I get the following error
> > message and then the app just sits there with no GUI window
> > appearing and I am forced to Cntrl-C my way back to a prompt. The
> > error I get is:
> >
> > (test.php:14474): libglade-CRITICAL **: glade_xml_build_interface:
> > assertion `wid != NULL' failed
> >
> > I am attaching the two files in hopes someone else will try and see
> > if they run on their build. Please let me know if you have any tips
> > you can share. I am really wanting to include stuff on libGlade in
> > my talk next month at IPC, but if I can't get even something this
> > basic running it will force me to have to leave it off.
> >
> > -Jeremy
> >
> >
> >
> > --
> > ---------------------------
> > Jeremy Johnstone
> > http://www.jeremyjohnstone.com
> > jsjohnst@php.net
> > --
> > PHP-GTK Development Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
---------------------------
Jeremy Johnstone
http://www.jeremyjohnstone.com
jsjohnst@php.net