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
[EMAIL PROTECTED]
http://blog.irregular.ch/
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list