Re: top-level window's title bar handling
- From: Emil Nowak <emiml wp pl>
- To: gtkmm-list gnome org
- Subject: Re: top-level window's title bar handling
- Date: Fri, 5 Oct 2007 14:39:55 +0200
On 05-10-2007, at 03:56:34 Ofer Oshri wrote:
> well i have tried it before and got core dump...
> here is the code:
>
> Gtk::Window win;
> Gdk::WMDecoration decor;
> win.get_window()->get_decorations(decor); // core dump...
> btw:
> cerr << bool(win.get_window()) << endl; // prints 0
Probably window needs to be realized before you do get_window() on it. You can
connect to on_realize signal and change decorators in callback.
But the quickest way to test it would be:
Window win;
win.show_all();
Glib::RefPtr<Gdk::Window> gdk_win = win.get_window();
gdk_win->set_decorations(Gdk::DECOR_TITLE | Gdk::DECOR_BORDER );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]