Re: how to hide the hide button in titlebar
- From: Matthias Kestenholz <lists irregular ch>
- To: gtkmm-list gnome org
- Subject: Re: how to hide the hide button in titlebar
- Date: Wed, 14 Sep 2005 20:58:04 +0200
On Wed, 2005-09-14 at 20:29 +0200, Luca Guglielmetti wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Matthias Kestenholz wrote:
> > void set_functions(WMFunction functions);
> Hi Matthias, in my window.h of gtkmm 2.4 there isn't this funtion: witch
> version of gtkmm are you using?
I am using gtkmm version 2.4 too. I wrote gdkmm/window.h, not
gtkmm/window.h
That would be how to do it then. It works with GNOME 2.10 (WM is
Metacity 2.10)
#include <gtkmm.h>
Gtk::Window *window;
void on_window_realize()
{
Glib::RefPtr<Gdk::Window> gw = window->get_window();
gw->set_functions( Gdk::FUNC_ALL | Gdk::FUNC_MINIMIZE );
}
int main(int argc, char *argv[])
{
Gtk::Main kit(argc, argv);
window = new Gtk::Window();
window->signal_realize().connect(sigc::ptr_fun(on_window_realize));
window->show_all();
Gtk::Main::run(*window);
return 0;
}
--
Matthias Kestenholz
mk irregular ch
http://blog.irregular.ch/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]