[Not sure if this shows up on the mailinglist as I am not subscribed]
bulia byak (buliabyak@...400...) wrote:
On 5/9/06, Aaron Spike <aaron@...749...> wrote:
Simon Budig (the guy who wrote the curve draging that we stole from GIMP) popped into IRC this morning because his document preferences dialog comes up with out decoration.
Only that one dialog? What about the rest?
The rest seems to work. In the meantime I also filed a bug report: http://sourceforge.net/tracker/index.php?func=detail&aid=1484628&gro...
He also mentioned that his dialogs appear on the screen in one place and seem to jerk away into position. This I can confirm on WinXP.
If some GTK guru would teach me a way to display it at the given position and with given size at once, I would gladly redo it. As it is, yes, we have to display it first and move/resize second. Ugly as hell, but at least it (mostly) works.
We do that in the GIMP in quite a few places, it seems we are using gtk_window_parse_geometry() and gtk_window_set_default_size() and also use gtk_window_set_geometry_hints (GTK_WINDOW (dialog), NULL, NULL, GDK_HINT_USER_POS);
(the gimp code for this is in app/widgets/gimpdialogfactory.c and app/widgets/gimpsessioninfo.c)
I am myself not really familiar with the code, so I don't know all the nitty gritty details, but it might be worth a shot.
I hope this helps, Simon