Hello list,
i started to create a simple gui with help from the documentation. Also
i added two buttons:
int main (string[] args) {
Gtk.init (ref args);
var window = new Window ();
window.title = "PublicanCreators";
window.border_width = 10;
window.window_position = WindowPosition.CENTER;
window.set_default_size (500, 600);
window.destroy.connect (Gtk.main_quit);
/* You can add GTK+ widgets to your window here.
* See https://developer.gnome.org/ for help.
*/
var publication = new Button.with_label ("Create a new Publication");
publication.clicked.connect (() => {
/*button.label = "Thank you";*/
});
var revision = new Button.with_label ("Create a new Publication");
revision.clicked.connect (() => {
/*button.label = "Thank you";*/
});
window.add (publication);
window.add (revision);
window.show_all ();
Gtk.main ();
return 0;
}
But the second button isn't visible. Just the first one.
Maybe someone knows why?
Greetings
Sascha
--
Sascha Manns
Maifeldstraße 10
56727 Mayen
P: +49-2651-4014045
W: http://saigkill.tuxfamily.org
Attachment:
signature.asc
Description: OpenPGP digital signature