Thread: Gtk+ 3 Disable resize for a window ?
hi there.
have been trying set gtk+ 3 stop user resizing window.
thought had use gtk_window_set_has_resize_grip(false) didn't anything. window still resizable.
i've been scouring gtk+ 3 documentation, can't seem find out how this. using python gtk+ 3 on ubuntu 12.10 idle 2.7. possible? doing wrong?code:#!/usr/env/python gi.repository import gtk class basicwindow(gtk.window): def __init__(self): gtk.window.__init__(self, title="no resize") self.set_has_resize_grip(false) table = gtk.table(3, 1, true) self.add(table) label_info = gtk.label("this window cannot resized") table.attach(label_info, 0, 1, 1, 2) win = basicwindow() win.connect("delete-event", gtk.main_quit) win.show_all() gtk.main()
appreciated!
afaik, compositor, not x11 decides if window can resized, it's not possible make work under compositor (mutter, compiz..). e.g. x11 might set location window compositor might place @ center of screen. maybe i'm wrong, maybe case doesn't fall under assumption.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Gtk+ 3 Disable resize for a window ?
Ubuntu
Comments
Post a Comment