Re: [gtkmm] libglademm



"J. Teubel" <adastra inbev de> writes:

[...]

> I will do but it won't happen until the weekend since I'm (actually) on
> vacation. I can't remember the version I've installed at my home box (must be
> something pre 1.0) but it compiled and installed without problems.
> As for the document: I wanted to contact you about that but, alas, real life
> thwarted me. I want to rig up something readable on weekend.

OK.

> May I ask you to have a look at my posting:
> http://mail.gnome.org/archives/gtkmm-list/2003-July/msg00246.html

Yeah, it must have been from when I was on vacation. It sounds like
the window is being shown before you set the hint. And if you run it
from a terminal, it says

  (does_not_work:1264): Gtk-CRITICAL **: file gtkwindow.c: line 1905 (gtk_window_set_type_hint): assertion `!GTK_WIDGET_VISIBLE (window)' failed

So I've changed

  <widget class="GtkWindow" id="window1">
    <property name="visible">True</property>

to

  <widget class="GtkWindow" id="window1">
    <property name="visible">False</property>

Then it works.

It's an old Glade pitfall. I've fallen into it myself a couple of
times, too. :-)

-- 
Ole Laursen
http://www.cs.auc.dk/~olau/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]