Skip to content

Instantly share code, notes, and snippets.

@nlowe
Created September 15, 2015 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nlowe/1118ed118d063e16a1b1 to your computer and use it in GitHub Desktop.
Save nlowe/1118ed118d063e16a1b1 to your computer and use it in GitHub Desktop.
GTK+ Maximize bugs
// Compile with: valac --pkg gtk+-3.0 test.vala
public class Application : Gtk.Window {
public Application(){
// Uncomment these lines to test with a headerbar
//var hb = new Gtk.HeaderBar();
//hb.show_close_button = true;
//set_titlebar(hb);
title = "Test Window";
set_default_size(800,1200);
this.destroy.connect(Gtk.main_quit);
}
}
int main(string[] args){
Gtk.init(ref args);
new Application().show_all();
Gtk.main();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment