[Glade-users] Fwd: How to write a catalog for use in glade 3.3.4
- From: germandiago at gmail.com (Germán Diago)
- Subject: [Glade-users] Fwd: How to write a catalog for use in glade 3.3.4
- Date: Fri, 7 Sep 2007 12:59:01 +0200
---------- Forwarded message ----------
From: Germ?n Diago <germandiago at gmail.com>
Date: 07-sep-2007 12:57
Subject: Re: [Glade-users] How to write a catalog for use in glade 3.3.4
To: Tristan Van Berkom <tvb at gnome.org>
2007/9/6, Tristan Van Berkom <tvb at gnome.org>:
On Thu, 2007-09-06 at 19:51 +0200, Germ?n Diago wrote:
Hello. I'm trying to write a glade catalog. When looking at the gnome
2.20 features page
I read there's no need to write a supporting source code plugin to
define a catalog, so
I tried this:
[...]
I looked at the documentation but I don't know what I'm missing so
that my widget is shown in
the glade palette. What should I do?
Hi, there are 2 ways you can achieve this:
a.) you have a library that contains the SdlWidget, then you
simply point "library" to the system library that contains
that widget.
b.) you dont have a library and you are faking the widget inside
glade, in which case you must use the "parent" attribute to
tell glade what widget to subclass (I detailed this in my
blog post:
http://blogs.gnome.org/tvb/2007/07/25/some-popular-features/ )
Cheers,
-Tristan
PS ALL: I returned home last week from L.A. and havent been
returning emails - there have been some pertinent bug reports
that need looking into and as usual - the mailing list got hit
with some snide remarks - those are always a discouragement in
general and thats why I havent been very present this week.
For the many of you who do actually care I'd just like to let
you know I havent completely dissapeared - I'm still around on
irc and definitly will be reviewing any incomming patches.
Thanks for your reply. It worked well. But now I'm already stuck again.
I want to set properties for my widget.
<?xml version="1.0" encoding="UTF-8"?>
<glade-catalog name="myappcatalog" depends="gtk+">
<glade-widget-classes>
<glade-widget-class name="sdlwidget" generic-name="sdlwidget"
title="SDL Widget" parent="GtkWindow">
<properties>
<property id="resolution">
<displayable-values>
<value id="640x480" name="640x480"></value>
<value id="800x600" name="800x600"></value>
</displayable-values>
</property>
</properties>
</glade-widget-class>
</glade-widget-classes>
<glade-widget-group name="ftr" title="Follow the rabbit">
<glade-widget-class-ref name="sdlwidget"/>
</glade-widget-group>
</glade-catalog>
I wonder if I have to write supporting code for this kind of things. It
shouldn't be necessary I guess.
Thanks for your help again.
Sorry, I think I replied to this e-mail your particular e-mail address by
accident.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20070907/7d0b97d8/attachment.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]