hello I am new to vala and I am trying to port all my apps before to vala I did create some app to set icons for gnome but in python it works ok but in vala i can't seem to get it working here is my code it's supposed to view icons but nothing happens when I execute it just empty icon view any thoughts ?
//hello.vala using Gtk;
int main (string[] args)
{
Gtk.init (ref args);
Gtk.Builder builder = new Gtk.Builder ();
builder.add_from_file ("helloworld.ui");
var window = builder.get_object ("window") as Gtk.Window;
var liststore = builder.get_object ("liststore") as ListStore;
builder.connect_signals (null);
var theme = new Gtk.IconTheme();
TreeIter iter;
var pixbuf = theme.load_icon("chm", 48, 0);
liststore.append (out iter);
liststore.set(iter,0,pixbuf);
window.show_all ();
Gtk.main ();
return 0;
}
helloworld.ui
Description: application/designer
_______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
