Re: top-level window's title bar handling



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

any advice will be appreciated.
ofer

Emil Nowak <emiml wp pl> wrote:
On 4-10-2007, at 11:19:18 Ofer Oshri wrote:

> hi,
> i am trying to disable the minimize/maximize/menu icons from the title bar
> of a top-level window (keeping only the close icon) with no luck. i thought
> the way to do it is through the gdk::window and its method set_decorations()
> but i could not access the top_window's gdk::window. is there a way to
> disable those icons from the title bar?
You can use
Glib::RefPtr Gtk::Widget::get_window();
on your toplevel Gtk::Window.

> also, is there a way to know the
> height of the top-level window title bar?
probably it is not possible.



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



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