What about using XUL instead of glade-xml. Can anyoneI think it'd be a great thing except that it would be techniquely very challenging considering:
explain what makes glade-xml to be prefered choice
over XUL. We (OSS community) need to standardize on
technologies. Can anyone take initial step?
<?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="simo_window">
<property name="title" translatable="yes">SIMO</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>
<signal name="destroy" handler="on_simo_window_destroy" last_modification_time="Tue, 06 Apr 2004 05:38:28 GMT"/>
<child> <widget class="GtkVBox" id="simo_vbox_main"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property>
<child> <widget class="GtkEventBox" id="simo_menu_eventbox"> <property name="visible">True</property> ....
versus:
<?xml version="1.0"?>
<!--<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>--> <?xml-stylesheet href="look.css" type="text/css"?> <window id="google-window" flex="1" title="Google Api" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script src="callbacks.js"/> <script src="google.js"/> <vbox flex="1"> <vbox> <label value="Google Api License"/> <textbox id="license-google" flex="1" value=""/> <hbox flex="1"> <label value="Search Google"/> <textbox id="search-text" flex="1" value=""/> <button id="search-button" label="Do Search" default="true" oncommand="doGoogleSearch();"/> <button label="clear" oncommand="ClearSearchResults();"/> </hbox> </vbox> .....
I think this would be not such an easy task. XUL allows javascript and CSS to be embedded in the xml. Perhaps, if the next release of GTK+ uses
CSS instead of its current style format then this would be a little bit easier. Also, perhaps if it was possible to embed gtk+ source code in a glade xml file
then this would also be possible. The point is the two are very different ;)
-todd
begin:vcard fn:Todd Fisher n:Fisher;Todd email;internet:[EMAIL PROTECTED] x-mozilla-html:FALSE url:http://severna.homeip.net version:2.1 end:vcard
