gtk_signal_connect(GTK_OBJECT(window), "configure_event",
GTK_SIGNAL_FUNC(msg_window_setposition), data);

gbool msg_window_setposition(GtkWidget *widget, GdkEventConfigure *event,
gpointer user_data)
{
   /* Do whatever you want with event->x and event->y */
   return TRUE;
}

The configure_event can also catch resizing.

Esteban Quijano Vincenzi
Artinsoft corp.


-----Original Message-----
From: Ronald Bultje [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 5:30 PM
To: [EMAIL PROTECTED]
Subject: move-event


Hi there,

is there an event which is triggered by moving windows? expose_event
only gets called on a full repaint, I basically need to do some work
whenever the drawing area is being increased/decreased in size or is
being moved, either relative to the parent window or relative to the
desktop root window.

I thought configure_event would be my lucky guess, but that doesn't seem
to get triggered at all. I use Gtk-1.3.13.

Thanks,

Ronald

-- 
-   .-.
-   /V\    | Ronald Bultje <[EMAIL PROTECTED]>
-  // \\   | Running: Linux 2.4.17-XFS and OpenBSD 3.0
- /(   )\  | http://ronald.bitfreak.net/
-  ^^-^^

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to