b100dian / gtkaml Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/gtkaml
Automatically exported from code.google.com/p/gtkaml
Because of a gint vs. gsize mix-up in src/GtkamlImplicitsStore.c
compilation fails on OpenBSD/sparc64 with a bus error.
Attached is a patch from OpenBSD -current that fixes it.
Original issue reported on code.google.com by [email protected]
on 13 Jan 2009 at 10:20
Attachments:
gtkaml:(pre)construct on a non-root tag receives the wrong parameter and
parameter type, which is that of the root.
Expected: 'target' should be of the tag's type
Original issue reported on code.google.com by b100dian
on 25 Mar 2008 at 8:20
Hello,
I'm attaching a patch to fix a typographical error found in the source code.
Kindly,
David
Original issue reported on code.google.com by [email protected]
on 15 Mar 2011 at 3:11
Attachments:
This can be probably done generic, so vala can benefit from this too.
Original issue reported on code.google.com by [email protected]
on 4 May 2011 at 7:04
Hello,
I packaged gtkaml for Debian, and the gtkaml(c) binary was missing a manpage.
I'm attaching a patch against latest SVN revision (768).
Original issue reported on code.google.com by [email protected]
on 15 Mar 2011 at 2:59
Attachments:
I'm attaching a patch to fix the VPATH build of 0.2.9.1.
Original issue reported on code.google.com by [email protected]
on 15 Nov 2009 at 4:23
Attachments:
<Window
xmlns:components = "MyApplication.Components"
...>
<components:CustomWidget />
</Window>
this code will cause error "No class components.CustomWidget found".
Attached patch fixes it,but has wrong header
Original issue reported on code.google.com by [email protected]
on 25 Oct 2010 at 9:04
Attachments:
If you specify <VBox class:existing="dialog.vbox" spacing="5"/>, gtkamlc
complains that
"No attributes other than the container add parameters are allowed on
references"
This is ok if you're referencing one of your own identifiers (you should
have added there the attributes) but not that useful for external existing
widgets.
Original issue reported on code.google.com by b100dian
on 5 Mar 2008 at 9:50
Developer always needs a list of users that user your lib...
sample and give us more power of use your lib
Original issue reported on code.google.com by [email protected]
on 24 Feb 2011 at 6:41
Here's a test program to demonstrate the issue:
Window $Food using=Gtk size=320,200 {
VBox {
Button label="CLICK ME";
}
-{
public static void main(string[] args) {
Gtk.init (ref args);
var b = new Food();
b.show_all ();
Gtk.main ();
}
}-
}
$ gtkaml a.gtkon
a.gtkaml:2.33-2.33: error: error parsing attribute name
(never returns to the shell)
Original issue reported on code.google.com by [email protected]
on 15 Mar 2011 at 8:37
What steps will reproduce the problem?
1. Create a vala class that extends VBox
2. Re-use it as a container from another gtkaml file
3. ?? profit
What is the expected output? What do you see instead?
Expected: the class hierarchy is walked and the VBox is found as container
Instead: No matching container add method found for..
Original issue reported on code.google.com by b100dian
on 5 Feb 2008 at 1:32
I think that it would be good to have backward compatibiliity and add support
for class renaming in the hintsfile.
[Gtk.Box]
new = orientation={Orientation.VERTICAL};spacing=0
In case i want to use an horizontal box i have to redefine the orientation
attribute.
The problem is that this attribute is too long and boring to type, so my plan
was to create an alias for VBox and HBox.
Original issue reported on code.google.com by [email protected]
on 29 May 2012 at 10:06
Looks like defines are ignored. here's a test case:
gtkamlc --pkg gtk+-3.0 -D MAIN=1 bug01.gtkon
----
VBox using=Gtk $Bug01 {
Label label="cannot compile this";
-{
#if MAIN
public static void main (string[] args) {
Gtk.init (ref args);
var w = new Window (WindowType.TOPLEVEL);
w.add (new Bug01 ());
w.show_all ();
Gtk.main ();
}
#endif
}-
}
Original issue reported on code.google.com by [email protected]
on 29 May 2012 at 11:24
This simple GtkON oneliner shows the problem:
VBox $Foo { -{ construct {} }- }
error: class already contains a constructor
GtkAML should recognize if the inlined code defines a construct keyword and
wrap it someway to chain both constructs.
Original issue reported on code.google.com by [email protected]
on 6 Jan 2011 at 9:45
Currently TreeViewColumn.pack_start does not work (with CellRendererText
for example) because the pack_start () method is actually from Gtk.CellLayout
Original issue reported on code.google.com by b100dian
on 13 Oct 2008 at 9:34
Hello,
I think it would be useful to add "#" as a comment-line character to the GtkON
parser. The rationale for this is: supporting "#", one could add a shebang line
at the beginning (like "#!/usr/bin/gtkaml"), and use GtkON+Vala as a scripting
language (and yes, it works! :D).
I'm attaching a patch doing this.
It would be nice if you included it in the next release :)
Thanks,
David
Original issue reported on code.google.com by [email protected]
on 15 Mar 2011 at 3:22
Attachments:
while compiling gtkaml got an error:
...
Making all in examples/SimpleViewer2
make[2]: Entering directory
`/usr/src/RPM/BUILD/gtkaml-0.2.7/examples/SimpleViewer2'
../../src/gtkamlc -C --implicitsdir ../../data --pkg gtk+-2.0
SimpleViewer2.gtkaml
SimpleViewer2.vala:98.55-98.64: error: Argument 3: Cannot convert from
`ulong' to `int'
make[2]: Leaving directory
`/usr/src/RPM/BUILD/gtkaml-0.2.7/examples/SimpleViewer2'
make[1]: Leaving directory `/usr/src/RPM/BUILD/gtkaml-0.2.7'
make: Leaving directory `/usr/src/RPM/BUILD/gtkaml-0.2.7'
RPM build errors:
make[2]: *** [SimpleViewer2.stamp] Segmentation fault
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
When run gtkamlc under strace:
...
gettimeofday({1245265585, 609018}, NULL) = 0
write(2, "SimpleViewer2.vala:98.55-98.64: "...,
88SimpleViewer2.vala:98.55-98.64: error: Argument 3: Cannot convert from
`ulong' to `int'
) = 88
open("/usr/src/RPM/BUILD/gtkaml-0.2.7/examples/SimpleViewer2/SimpleViewer2.vala"
,
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault
...
When added option --save-temps to gtkamlc:
../../src/gtkamlc --save-temps -C --implicitsdir ../../data --pkg gtk+-2.0
SimpleViewer2.gtkaml
SimpleViewer2.vala:98.55-98.64: error: Argument 3: Cannot convert from
`ulong' to `int'
FileUtils.get_contents (filename, out contents, out length);
^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
make: *** [SimpleViewer2.stamp] Error 1
get_contents() expect that `length' is ulong. This patch fix issue:
--- a/examples/SimpleViewer2/SimpleViewer2.gtkaml
+++ b/examples/SimpleViewer2/SimpleViewer2.gtkaml
@@ -94,9 +94,9 @@
int err = 0;
try
{
- string contents; int length;
+ string contents; ulong length;
FileUtils.get_contents (filename, out contents, out length);
- textview1.buffer.set_text (contents, length);
+ textview1.buffer.set_text (contents, (int) length);
}
catch(Error e)
{
Original issue reported on code.google.com by [email protected]
on 18 Jun 2009 at 6:54
Source code example:
<Notebook>
<OrganizerPage>
<tab-label>
<Label label="Lundi" />
</tab-label>
</OrganizerPage>
</Notebook>
OrganizerPage is a custom widget that should be added to the Notebook with
the tab-label parameter set to new Label("Lundi").
The error is:
No class tab-label found
Original issue reported on code.google.com by b100dian
on 2 Jun 2008 at 3:28
an entry like
[ScrolledWindow]
adds = add_with_properties;add_with_viewport
in Gtk.implicits would solve the issue of picking add_with_viewport () first.
Unfortunately, this cannot be done currently as the add_with_properties
isn't searched through the class hierarchy
Temporarily, ScrolledWindow is not listed at all and
Container.add_with_properties is picked by default
Original issue reported on code.google.com by b100dian
on 3 Mar 2008 at 11:44
mymas@ubuntu:~/gtkaml/src$ make
make all-am
make[1]: Entering directory `/home/mymas/gtkaml/src'
CCLD gtkamlc
../libgtkaml/.libs/libgtkaml.so: undefined reference to `g_file_read'
../libgtkaml/.libs/libgtkaml.so: undefined reference to
`g_data_output_stream_put_string'
../libgtkaml/.libs/libgtkaml.so: undefined reference to
`g_data_output_stream_new'
../libgtkaml/.libs/libgtkaml.so: undefined reference to
`g_data_input_stream_new'
../libgtkaml/.libs/libgtkaml.so: undefined reference to `g_file_query_exists'
../libgtkaml/.libs/libgtkaml.so: undefined reference to
`g_data_input_stream_read_byte'
../libgtkaml/.libs/libgtkaml.so: undefined reference to `g_file_new_for_path'
../libgtkaml/.libs/libgtkaml.so: undefined reference to `g_file_create'
collect2: ld returned 1 exit status
make[1]: *** [gtkamlc] Error 1
make[1]: Leaving directory `/home/mymas/gtkaml/src'
make: *** [all] Error 2
I try to latest gtkaml in ubuntu 11.04, 11.10.
But occur weired linker error.
http://osdir.com/ml/commits.gnome/2010-12/msg06863.html
g_data_input_stream_read_byte is supported since gio-1.0 > 2.28
Any related?
Sorry, I don't know why happened in this error.
Thanks.
Original issue reported on code.google.com by [email protected]
on 3 Jan 2012 at 11:51
Gtk.Entry implements Gtk.Editable which has "changed" as signal.
Gtkaml does not recognize it, however.
Original issue reported on code.google.com by b100dian
on 26 Aug 2009 at 8:53
What steps will reproduce the problem?
gtkaml:name on the root tag generates the line
this.name="ClassName"
What is the expected output? What do you see instead?
no this. fields should be initialized. The gtkaml prefix is only for metadata
Original issue reported on code.google.com by b100dian
on 5 Feb 2008 at 2:14
on win32, when giving the error that an attribute was not found as
belonging to a class, gtkamlc crashes.
Original issue reported on code.google.com by b100dian
on 11 Feb 2008 at 12:02
What steps will reproduce the problem?
<VBox xmlns:class="http://gtkaml.org/" class:name="Panel" xmlns="Gtk"
xmlns:GLib="GLib" >
<Label label='{"this is the panel "+title}' />
<string class:public="title" />
</VBox>
The <string> tag is ignored.
Expected: the string is published as field/property
It is not added to the container (as it isn't a widget)
Original issue reported on code.google.com by b100dian
on 5 Feb 2008 at 1:33
Stop removing generated code. Put it in a .gtkaml subfolder for example, or
rename it file.g.vala.
Original issue reported on code.google.com by b100dian
on 30 Sep 2009 at 6:58
This allows adding Actions to ActionGroups
Original issue reported on code.google.com by b100dian
on 8 Apr 2008 at 8:01
Hello,
when doing my Debian packaging, I had to remove your debian/, since, sorry, it
was not of Debian quality :)
I'd suggest to either remove debian/ from your SVN (since I'm going to maintain
the packaging elsewhere [0]), or to only exclude it from generated tarballs.
If you prefer the latter, please remove debian/* from EXTRA_DIST (in
./Makefile.am); that should do it.
Thank you,
David
[0]: http://git.debian.org/?p=collab-maint/gtkaml.git
Original issue reported on code.google.com by [email protected]
on 15 Mar 2011 at 3:07
Example in GtkON:
Label &label text=jiji;
-{ Label label; }-
Original issue reported on code.google.com by [email protected]
on 15 Nov 2010 at 3:37
The following command line fails with error code 127:
astralstorm@destiny /usr/src/gtkaml-read-only/examples/gtkon $ LANG=C gtkaml -V
gtk-hello.gtkon --pkg gtk+-2.0; echo $?
/bin/sh: /tmp/gtk-hello.gtkon.C7L8LV: No such file or directory
127
Obviously the temporary file shouldn't be executed, as it isn't generated.
gtkaml trunk revision 744.
Original issue reported on code.google.com by [email protected]
on 16 Nov 2010 at 11:29
I'm outputting the build artifacts to an arbitrary output folder:
gtkamlc src/file -d output/ --save-temps
but the temporal files get saved to the src/ folder instead of the output/
folder.
Original issue reported on code.google.com by [email protected]
on 3 Mar 2012 at 10:48
[deleted issue]
When marking a vbox as g:existing (such as in Dialog), the spacing
attribute is not taken into account (probably because constructor
parameters pick it)
Original issue reported on code.google.com by b100dian
on 26 Aug 2009 at 8:57
Make a list of generated .vala files and erase them from Gtkaml.Compiler
when the SemanticAnalyzer passes.
Original issue reported on code.google.com by b100dian
on 7 Apr 2008 at 9:40
Currently when adding to a Container, or Bin, or other subclass that
doesn't have its own add functions listed in Gtk.implicits, the choice made
by gtkaml is to call add_with_properties ().
This has two downsides: it's not what it's meant, and second, it warns
about missing sentinels (code is incorrect too)
Original issue reported on code.google.com by b100dian
on 3 Mar 2008 at 11:56
Even if gtkaml can't work out the type of an expression, if it's {} it
should still work.
e.g:
<AboutBox authors="{ new string[] {"abc", "def"} }"/>
should work even if we don't know the types of 'authors'
Original issue reported on code.google.com by b100dian
on 8 Jun 2008 at 7:26
when using for example
<ImageMenuItem from-stock="true" stock-id="gkt-new" />
the defaulted argument accel-group (from Gtk.implicits) isn't found.
However, if you leave from-stock out, it works as expected
Original issue reported on code.google.com by b100dian
on 3 Mar 2008 at 11:47
The following gtkon code and generated correct gtkaml code produce invalid vala.
(save in UTF-8 encoding)
GtkON:
Label label="Dane wejściowe";
Generated GtkAML:
<Label label='Dane wejściowe'> </Label>
Resulting Vala code:
_label0 = new Gtk.Label ("Dane wej\305\233ciowe");
Vala complains about the obviously invalid escape sequence - there should be no
escaping at all, as the input is UTF-8.
Vala version: 0.11.2
Gtkaml version: trunk revision 744
Original issue reported on code.google.com by [email protected]
on 16 Nov 2010 at 11:45
The -V flag which was found in gtkamlc 0.4.x branch is not implemented in 0.6,
we should evaluate the option to add it also in the 0.6 branch.
Original issue reported on code.google.com by [email protected]
on 29 May 2012 at 11:25
When i try to compile the gtkon examples it fails with a segfault, but the
gtkaml generated code by gtkon doesnt fail.
Example:
examples/gtkon $ make
../../src/gtkamlc --pkg gtk+-2.0 --implicitsdir ../../data --save-temps
gtk-hello.gtkon
make: *** [gtk-hello] Segmentation fault
exmples/gtkon $ ../../src/gtkamlc --pkg gtk+-2.0 --implicitsdir ../../data
--save-temps gtk-hello.gtkaml
exmples/gtkon $
Update gtkaml and vala repo version.
libxml2-2.7.8 version
Gdb's backtrace:
Program received signal SIGSEGV, Segmentation fault.
vala_collection_get_size (self=0x0) at collection.c:216
216 return VALA_COLLECTION_GET_CLASS (self)->get_size (self);
(gdb) bt
#0 vala_collection_get_size (self=0x0) at collection.c:216
#1 0x00007ffff68465b8 in vala_code_context_get () at valacodecontext.c:544
#2 0x00007ffff6842825 in vala_class_real_add_method (base=0x33c9b80,
m=0x3507ca0) at valaclass.c:1316
#3 0x00007ffff68ed107 in vala_parser_parse_method_declaration (self=<value
optimized out>, parent=0x33c9b80, attrs=<value optimized out>,
error=0x7fffffffd7c8)
at valaparser.c:15421
#4 0x00007ffff68f10b2 in vala_parser_parse_declaration (self=0x64f110,
parent=0x33c9b80, root=0, error=0x7fffffffd868) at valaparser.c:13204
#5 0x00007ffff68f21d3 in vala_parser_parse_declarations (self=0x64f110,
parent=0x33c9b80, root=0, error=0x7fffffffd908) at valaparser.c:13350
#6 0x00007ffff68f2cc5 in vala_parser_parse_class_declaration (self=0x64f110,
parent=0x63c000, attrs=<value optimized out>, error=0x7fffffffd9d8) at
valaparser.c:13931
#7 0x00007ffff68f0ec1 in vala_parser_parse_declaration (self=0x64f110,
parent=0x63c000, root=<value optimized out>, error=0x7fffffffda78) at
valaparser.c:13012
#8 0x00007ffff68f21d3 in vala_parser_parse_declarations (self=0x64f110,
parent=0x63c000, root=1, error=0x7fffffffdaf8) at valaparser.c:13350
#9 0x00007ffff68f2740 in vala_parser_parse_file (self=0x64f110,
source_file=<value optimized out>) at valaparser.c:3041
#10 0x0000000000411031 in gtkaml_parser_real_parse_gtkaml_file (self=0x64f110,
gtkaml_source_file=0x644e60) at GtkamlParser.c:559
#11 0x00000000004114fd in gtkaml_parser_parse_gtkaml_file (self=0x64f110,
gtkon_source_file=0x644e60) at GtkamlParser.c:598
#12 gtkaml_parser_parse_gtkon_file (self=0x64f110, gtkon_source_file=0x644e60)
at GtkamlParser.c:418
#13 0x00007ffff68487a7 in vala_code_context_accept (self=0x6390a0,
visitor=0x64f110) at valacodecontext.c:1120
#14 0x000000000040b907 in gtkaml_compiler_run (self=0x637000) at
GtkamlCompiler.c:927
#15 0x000000000040d022 in gtkaml_compiler_main (argc=<value optimized out>,
argv=<value optimized out>) at GtkamlCompiler.c:1672
#16 main (argc=<value optimized out>, argv=<value optimized out>) at
GtkamlCompiler.c:1681
Original issue reported on code.google.com by [email protected]
on 26 May 2011 at 12:12
Whenever there's an error reported, several warnings and null errors show up.
Just display the error and quit!
Original issue reported on code.google.com by b100dian
on 7 Apr 2008 at 9:39
I think the following code must undestand the tag its a string and dont use it
as xml tag.
Button label="<-";
Must be
Button label="<-";
Original issue reported on code.google.com by [email protected]
on 31 Mar 2011 at 9:14
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.