bugDotGNU Portable.NET - Bugs: bug #14351, BeginInvoke does nothing when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14351: BeginInvoke does nothing when called from non-toplevel window

Submitter:  Peter Flaig <fliege>
Submitted:  Wed 31 Aug 2005 02:44:10 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Wed 21 Sep 2005 11:29:44 PM UTC, comment #3: 

fixed in cvs

Deryk Robosson <drobosson>
Group Member
Wed 21 Sep 2005 01:04:37 PM UTC, comment #2: 

Peter, any chance of getting a patch for this please?

Deryk Robosson <drobosson>
Group Member
Thu 01 Sep 2005 05:31:44 AM UTC, comment #1: 

BugFix:

Move the following code from Xsharp.TopLevelWindow to Xsharp.InputOutputWidget:

internal override void DispatchEvent(ref XEvent xevent)
{
switch((EventType)(xevent.xany.type__))
{
...

case Xsharp.Events.EventType.ClientMessage:
{
if(xevent.xclient.message_type == dpy.internalBeginInvoke)
{
OnBeginInvokeMessage((IntPtr)xevent.xclient.l(0));
}
}
break;
}
base.DispatchEvent(ref xevent);
}

/// <summary>
/// <para>Method that is called when a custom "BeginInvoke" message comes in
/// changes.</para>
/// </summary>
protected virtual void OnBeginInvokeMessage(IntPtr i_gch)
{
// Nothing to do in this base class.
}


And insert this in System.Drawing.Xsharp.DrawingWindow:

protected override void OnBeginInvokeMessage(IntPtr i_gch)
{
if( sink != null )
sink.ToolkitBeginInvoke(i_gch);
}

Peter Flaig <fliege>
Wed 31 Aug 2005 02:44:10 PM UTC, original submission:  


Peter Flaig <fliege>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #3159:  Changes.diff added by fliege (3KiB - text/plain - Patch)
file #3423:  BeginInvoke.zip added by fliege (5KiB - application/x-zip-compressed)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-21 drobosson StatusNone Fixed
    Open/ClosedOpen Closed
2005-09-21 fliege Attached File- Added Changes.diff, #2981
2005-08-31 fliege Attached File- Added BeginInvoke.zip, #2890

Back to the top

Powered by Savane 3.15-94dd.
Corresponding source code