You're resizing your window in your resize callback. This is probably circular and will cause problems, I think.
I would implement size_request and size_allocate instead. You should be able to get your widget to ask for the correct amount of screen space. John 2009/3/6 Magicloud Magiclouds <magicloud.magiclo...@gmail.com>: > Hello? > > On Thu, Mar 5, 2009 at 5:55 PM, Magicloud Magiclouds > <magicloud.magiclo...@gmail.com> wrote: >> Sorry, mis-operate on my client, the mail is not completed. >> >> Since the widget works fine, I got its actual size in configure-event. >> Then resize the window to the size I got before. Well... this is the >> horrible part: The resizing happened before the window was actually >> shown. So the size is 1x1.... >> >> What is the right way to do this? Thanks. >> >> On Thu, Mar 5, 2009 at 5:46 PM, Magicloud Magiclouds >> <magicloud.magiclo...@gmail.com> wrote: >>> Hi, >>> I have a custom-widget in a window. The size of the widget is >>> specified by how many chars I want to display in it. So I made a >>> 'colnum' perproty for it, and set the 'width_request' property when >>> outside set the 'colnum' property. The widget seems fine. >>> >>> >>> -- >>> 竹密岂妨流水过 >>> 山高哪阻野云飞 >>> >> >> >> >> -- >> 竹密岂妨流水过 >> 山高哪阻野云飞 >> > > > > -- > 竹密岂妨流水过 > 山高哪阻野云飞 > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list