danw at novell.com
Wed Jun 15 14:24:21 EDT 2005
On Wed, 2005-06-15 at 19:18 +0200, Kyku wrote:
> If I try setting TypeHint property on a Gtk.Window I get the following
> (<unknown>:17826): Gtk-CRITICAL **: gtk_window_set_type_hint: assertion
> `!GTK_WIDGET_VISIBLE (window)' failed
You have to set it before showing the window.
> (I think I don't have to add that the window is visible)
> However, the approach seems to work if I change hint of an underlying
> Gdk.Window (accessed with Gtk.Window.GdkWindow property). The window
> stays on top if I set this property to Gdk.WindowTypeHint.Dock but then
> I cannot move and resize it. Please help me.
If you set it to Dock, you're claiming that the window is a special kind
of window like the GNOME Panel, so your windowmanager is just ignoring
it completely. That's why I suggested setting it to Utility. That says
it should stay floating above other windows, but still have a titlebar.
More information about the Gtk-sharp-list