Skip to content

Commit

Permalink
Added set_window_position to gtktest.
Browse files Browse the repository at this point in the history
Removed some commented out code.
Part of issue jeremyletang#32
  • Loading branch information
bpbp-boop committed Aug 23, 2014
1 parent 5537eab commit 9673478
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions examples/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@ fn main() {
window.set_border_width(10);
window.set_window_position(gtk::window_position::Center);
window.set_default_size(350, 70);
//window.destroy.connect (Gtk.main_quit);

window.connect(signals::DeleteEvent::new(|_|{
gtk::main_quit();
true
}));

let button = gtk::Button::new_with_label("Click me!").unwrap();
// button.clicked.connect (() => {
// button.label = "Thank you";
// });

window.add(&button);

Expand Down
1 change: 1 addition & 0 deletions examples/gtktest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ fn main() {
volume_button.set_orientation(gtk::orientation::Horizontal);
label.set_justify(gtk::justification::Left);
window.set_title("Yeah a beautiful window with rgtk !");
window.set_window_position(gtk::window_position::Center);
window.add(&frame);

button.connect(signals::Clicked::new(||{
Expand Down

0 comments on commit 9673478

Please sign in to comment.