Re: Gdk::DECOR_xxx



Bart Verstraete wrote:

Foster Gareth wrote:

At a guess, he means the method of the base class.

class wee : public something
{
    void
    woo            ()
    {
        something::woo();    // like so

        // then other code ...
    }
};

Gaz


Hi,

if you ment this:

void SettingScreen::on_realize()
{
   Gtk::Dialog::on_realize();
   Glib::RefPtr<Gdk::Window> fr = get_frame();
fr->set_decorations(Gdk::DECOR_ALL | Gdk::DECOR_MINIMIZE | Gdk::DECOR_MAXIMIZE);
}

ofcours in my header file I override it with:
virtual void on_realize();

But still the stupid app craches. Its dev on win32 if that makes any diff.

Grts Bart
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

The I got the wrong Gdk::Window if I do this in the overloaded on_realize all is ok:

void SettingScreen::on_realize()
{
  Gtk::Dialog::on_realize();
  Glib::RefPtr<Gdk::Window> fr = get_window();  //NOTE the get_window()
fr->set_decorations(Gdk::DECOR_ALL | Gdk::DECOR_MINIMIZE | Gdk::DECOR_MAXIMIZE);
}

Stupid  me :d

Grts Bart



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