Re: top-level window's title bar handling



that is how it looks on my machine...
ofer

Emil Nowak <emiml wp pl> wrote:
On 05-10-2007, at 05:54:36 Ofer Oshri wrote:

> realizing the gdk::window solved the core dump but the window_manager still
> ignored the requested decoration.
Attached complete example, and resulting screenshoot.

> is there a way to force the window_manager to honor decoration request?
If you have some buggy WM change it to something else.
#include

using namespace Gtk;
class MyWindow : public Gtk::Window {
public:
MyWindow() {};
void on_realize() {
Window::on_realize();
Glib::RefPtr gdk_win = this->get_window();
gdk_win->set_decorations(Gdk::DECOR_TITLE | Gdk::DECOR_BORDER );
}
};

int main(int argc, char **argv) {
Main app(argc, argv);
MyWindow win;
app.run(win);
return 0;
}
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

PNG image



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