[Glade-devel] what about using XUL
- From: taf2 lehigh edu (todd)
- Subject: [Glade-devel] what about using XUL
- Date: Thu, 08 Apr 2004 03:27:30 -0400
This is a multi-part message in MIME format.
--------------060607000108090600060907
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sridhar R wrote:
What about using XUL instead of glade-xml. Can anyone
explain what makes glade-xml to be prefered choice
over XUL. We (OSS community) need to standardize on
technologies. Can anyone take initial step?
I think it'd be a great thing except that it would be techniquely very
challenging considering:
<?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
--------------060607000108090600060907
Content-Type: text/x-vcard; charset=utf8;
name="taf2.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="taf2.vcf"
begin:vcard
fn:Todd Fisher
n:Fisher;Todd
email;internet:taf2 lehigh edu
x-mozilla-html:FALSE
url:http://severna.homeip.net
version:2.1
end:vcard
--------------060607000108090600060907--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]