[Vala] [vala] getopt
Hi everyone, I want to extract which parameters and values I have passed to my program. I used getopt, when I solved that problem in c. Is there an vala counterpart to getopt? Regards David * * this != here ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] getopt
Hi everyone, I want to extract which parameters and values I have passed to my program. I used getopt, when I solved that problem in c. Is there an vala counterpart to getopt? Regards David * * this != here ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] bind_property BindingTransformFunc
Hi guys, I have to follwing code: var check_button = ... make instance of Gtk.CheckButton var my_combobox = ... make instance of Gtk.ComboBox check_button.bind_property( "active", my_combobox, "sensitive", BindingFlags.INVERT_BOOLEAN, (binding, source_value, target_value)=>{ if(source_value == true){ print("\n I get here"); my_combobox.active_id = "TSS_SECRET_MODE_SHA1"; } return true; } ); The problem is, that my_combobox doesn't become sensitive, if I de-activate the check_button. Why? The active_id is chosen correctly. Thanks in advance. Regards David ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Solved: Gtk+-3.0 Gtk.Entry fontcolor
Hi, I've found the solution. The method I've used is deprecated. This works: var red = RGBA(); red.parse("#ff"); my_entry.override_color(StateFlags.NORMAL, red); Regards David ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Gtk+-3.0 Gtk.Entry fontcolor
Hi everyone, I try to change the color of the text in a Gtk.Entry. I try it this way: Gdk.Color red; if(Gdk.Color.parse("RED",out red)==true); print("\that works"); // that gets printed if(my_entry.text.length >= 9 && !(my_entry.text[8].to_string() == "-")){ //my_entry = Gtk.Entry print("\n I get to here"); // this also gets displayed my_entry.modify_text(my_entry.get_state(), red); } The problem is, that the color doesn't change. It stays the same. I'm using Gtk3 Regards David ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] @see
Hi everyone, I'm commenting my Vala code at the moment. I'm checking out this site: http://valadoc.org/#!wiki=markup And I wonder what the @see taglet should be good for. I'm missing an exlpaination there. Thanks in advande David ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] false: #include GirName.h
Hi everyone, I'm new to vala. Right now I'm working on a project which uses several GObject classes and tries to access them in a vala file throught GObject introspection. The strange this is, that when I try to compile my vala file Vala tries to include a headerfile (in the c header file, which is created based on my vala file) with the name as my .gir file, which I use for introspoection. This headerfile surely doesn't exist and thus I can't compile my program. Does anyone know the reason for this strange behaviour? Thanks in advance David ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Segfault
Hi everyone, I'm very new to vala (know it since yesterday). Right now I'm through the tutroial. I was playing around with classes and interfaces a bit. While trying out some stuff I produced this code: I have no idea why I produce a segfault in the line below. I would be very happy if someone could help me. class SuperClass : AnotherClass { private int data; public SuperClass(int data) { this.data = data; stdout.printf("3"); //base(); // Here is a segfault // } } public class AnotherClass : GLib.Object{ public AnotherClass(){ stdout.printf("\nA"); } } public interface ITest: AnotherClass { public abstract int data_1 { get; set; } public abstract void method_1(); } class SubClass : SuperClass, ITest { public SubClass() { stdout.printf("2"); base(10); } public int data_1 { get; set; } public void method_1(){ stdout.printf("\n method 1"); } } void main(){ stdout.printf("0"); SubClass s = new SubClass(); s.method_1(); stdout.printf("1"); s = s ?? null; } ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list