Created
September 15, 2015 18:14
-
-
Save nlowe/1118ed118d063e16a1b1 to your computer and use it in GitHub Desktop.
GTK+ Maximize bugs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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