PDA

View Full Version : Unable to get GtkWindow move signal


bhubanmm
June 8th, 2006, 04:16 AM
Hi all,

I was a professional windows C/C++ programmer recently migrated to linux. Can anyone please tell me how I can catch the GtkWindow's move signal.

I tried with motion_notify signal, but it did not help as the event was not called when I moved the Window.

Please Help!!!
Thanks in advance,

Ivan Matveich
June 8th, 2006, 05:04 AM
Install a handler for configure_event on the window, like


#!/usr/bin/env ruby

require 'gtk2'

Gtk.init
window = Gtk::Window.new

window.signal_connect('configure-event') do
puts "configure-event received"
end

window.show_all
Gtk.main

bhubanmm
June 10th, 2006, 03:03 AM
Hello Evan,

Thanks, I got it.