Re: Tag typing.
- From: Nat Friedman <nat novell com>
- To: f-spot-list gnome org
- Subject: Re: Tag typing.
- Date: Thu, 10 Nov 2005 15:09:36 -0500
On Thu, 2005-11-10 at 00:26 -0500, Nat Friedman wrote:
> (3) the focus issue that
> Gabriel and Ruben reported in the photo view is still there, I have no
> idea how to fix that.
This bug is now dead. The problem was that I needed to do
photo_view.View.GrabFocus(), not photo_view.GrabFocus().
I finally solved this by writing a little routine that prints out the
type of the widget that has focus ever second. If you ever have to
debug something like this, this code might be useful:
[DllImport ("libgtk-win32-2.0-0.dll")] extern static IntPtr
g_type_name_from_instance (IntPtr instance);
GLib.Timeout.Add (1000, new GLib.TimeoutHandler (delegate {
Gtk.Widget w = MainWindow.Toplevel.main_window.Focus;
if (w == null)
Console.WriteLine ("Focus: null");
else {
string s = Marshal.PtrToStringAnsi
(g_type_name_from_instance (w.Handle));
Console.WriteLine ("Focus: " + s);
}
return true;
}));
Next patch version will include the fix...
Nat
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]