Skip to content

Commit

Permalink
gtk3 version of the WindowHints.MAX_SIZE test, which fails when runni…
Browse files Browse the repository at this point in the history
…ng native on win32...

git-svn-id: https://xpra.org/svn/Xpra/trunk@7633 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 16, 2014
1 parent d8779ef commit 708741f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/tests/xpra/test_apps/test_window_maxsize_GTK3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python

from gi.repository import Gtk, Gdk #@UnresolvedImport


def main():
window = Gtk.Window(Gtk.WindowType.TOPLEVEL)
window.set_size_request(300, 200)
window.connect("delete_event", Gtk.main_quit)
window.show_all()
geom = Gdk.Geometry()
geom.max_width = 600
geom.max_height = 400
hints = Gdk.WindowHints.MAX_SIZE
window.set_geometry_hints(window, geom, hints)
Gtk.main()
return 0


if __name__ == "__main__":
main()

0 comments on commit 708741f

Please sign in to comment.