Press ALT while left clicking on it... nah just kidding.

I presume you want to do it in code... so you could inherit the Gtk::Window
class, and add a custom "on_click" handler, and have that call
gtk_window_set_position<http://developer.gnome.org/gtk/2.24/GtkWindow.html#gtk-window-set-position>(
*GtkWindow <http://developer.gnome.org/gtk/2.24/GtkWindow.html> *window*, *
GtkWindowPosition<http://developer.gnome.org/gtk/2.24/gtk-Standard-Enumerations.html#GtkWindowPosition>position
*);

These are your WindowPosition flags:

  GTK_WIN_POS_NONE,
  GTK_WIN_POS_CENTER,
  GTK_WIN_POS_MOUSE,
  GTK_WIN_POS_CENTER_ALWAYS,
  GTK_WIN_POS_CENTER_ON_PARENT


Only problem is that GTK can only set these couple of flags for the window
manager, and there's no promises that the window manager is going to adhere
to these...

Good luck, -Harry

PS: I think it a rather bad idea to do this... its not particularly user
friendly!
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to