Author: mkestner
Date: 2005-12-10 01:00:03 -0500 (Sat, 10 Dec 2005)
New Revision: 54186

Added:
   trunk/gtk-sharp/doc/en/Gdk/EventGrabBroken.xml
   trunk/gtk-sharp/gdk/EventGrabBroken.cs
Modified:
   trunk/gtk-sharp/ChangeLog
   trunk/gtk-sharp/doc/en/Gtk/CellRendererText.xml
   trunk/gtk-sharp/doc/en/Gtk/EntryCompletion.xml
   trunk/gtk-sharp/doc/en/Gtk/FileChooser.xml
   trunk/gtk-sharp/doc/en/Gtk/Window.xml
   trunk/gtk-sharp/gdk/Event.cs
   trunk/gtk-sharp/gdk/Gdk.metadata
   trunk/gtk-sharp/gdk/Makefile.am
   trunk/gtk-sharp/gdk/gdk-symbols.xml
Log:

2005-12-10  Mike Kestner  <[EMAIL PROTECTED]>

        * gdk/gdk-symbols.xml : add GrabBroken mapping.
        * gdk/Event.cs : add GrabBroken to GetEvent.
        * gdk/EventGrabBroken.cs : manual Event subclass.
        * gdk/Gdk.metadata : hide new GrabBroken event.
        * gdk/Makefile.am : add new source file.


Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog   2005-12-10 04:22:35 UTC (rev 54185)
+++ trunk/gtk-sharp/ChangeLog   2005-12-10 06:00:03 UTC (rev 54186)
@@ -1,3 +1,11 @@
+2005-12-10  Mike Kestner  <[EMAIL PROTECTED]>
+
+       * gdk/gdk-symbols.xml : add GrabBroken mapping.
+       * gdk/Event.cs : add GrabBroken to GetEvent.
+       * gdk/EventGrabBroken.cs : manual Event subclass.
+       * gdk/Gdk.metadata : hide new GrabBroken event.
+       * gdk/Makefile.am : add new source file.
+
 2005-12-09  Mike Kestner  <[EMAIL PROTECTED]>
 
        * pango/Pango.metadata : 2.8 API tweaks

Added: trunk/gtk-sharp/doc/en/Gdk/EventGrabBroken.xml
===================================================================
--- trunk/gtk-sharp/doc/en/Gdk/EventGrabBroken.xml      2005-12-10 04:22:35 UTC 
(rev 54185)
+++ trunk/gtk-sharp/doc/en/Gdk/EventGrabBroken.xml      2005-12-10 06:00:03 UTC 
(rev 54186)
@@ -0,0 +1,78 @@
+<Type Name="EventGrabBroken" FullName="Gdk.EventGrabBroken">
+  <TypeSignature Language="C#" Value="public class EventGrabBroken : 
Gdk.Event" />
+  <AssemblyInfo>
+    <AssemblyName>gdk-sharp</AssemblyName>
+    <AssemblyVersion>2.8.0.0</AssemblyVersion>
+  </AssemblyInfo>
+  <Base>
+    <BaseTypeName>Gdk.Event</BaseTypeName>
+  </Base>
+  <Interfaces />
+  <Members>
+    <Member MemberName="Window">
+      <MemberSignature Language="C#" Value="public Gdk.Window Window { get; 
};" />
+      <MemberType>Property</MemberType>
+      <ReturnValue>
+        <ReturnType>Gdk.Window</ReturnType>
+      </ReturnValue>
+      <Docs>
+        <summary>The event window.</summary>
+        <value>a <see cref="T:Gdk.Window" />.</value>
+        <remarks />
+      </Docs>
+    </Member>
+    <Member MemberName="GrabWindow">
+      <MemberSignature Language="C#" Value="public Gdk.Window GrabWindow { 
get; };" />
+      <MemberType>Property</MemberType>
+      <ReturnValue>
+        <ReturnType>Gdk.Window</ReturnType>
+      </ReturnValue>
+      <Docs>
+        <summary>The Window which broke the grab.</summary>
+        <value>a <see cref="T:Gdk.Window" />, or <see langword="null" 
/>.</value>
+        <remarks>If the window which broke the grab is outside the 
application, the value will be <see langword="null" />.</remarks>
+      </Docs>
+    </Member>
+    <Member MemberName=".ctor">
+      <MemberSignature Language="C#" Value="public EventGrabBroken (IntPtr 
raw);" />
+      <MemberType>Constructor</MemberType>
+      <Parameters>
+        <Parameter Name="raw" Type="System.IntPtr" />
+      </Parameters>
+      <Docs>
+        <param name="raw">Native struct pointer.</param>
+        <summary>Internal constructor.</summary>
+        <remarks>This constructor is exposed for binding use and should not be 
used by application code.</remarks>
+      </Docs>
+    </Member>
+    <Member MemberName="Keyboard">
+      <MemberSignature Language="C#" Value="public bool Keyboard { get; };" />
+      <MemberType>Property</MemberType>
+      <ReturnValue>
+        <ReturnType>System.Boolean</ReturnType>
+      </ReturnValue>
+      <Docs>
+        <summary>Indicates a keyboard grab.</summary>
+        <value><see langword="true" /> for a keyboard grab or <see 
langword="false" /> for mouse.</value>
+        <remarks />
+      </Docs>
+    </Member>
+    <Member MemberName="Implicit">
+      <MemberSignature Language="C#" Value="public bool Implicit { get; };" />
+      <MemberType>Property</MemberType>
+      <ReturnValue>
+        <ReturnType>System.Boolean</ReturnType>
+      </ReturnValue>
+      <Docs>
+        <summary>Indicates if the broken grab was implicit.</summary>
+        <value><see langword="true" /> for an implicit grab.</value>
+        <remarks />
+      </Docs>
+    </Member>
+  </Members>
+  <Docs>
+    <summary>Indicates a grab was broken by another grab.</summary>
+    <remarks />
+    <since version="Gtk# 2.8" />
+  </Docs>
+</Type>

Modified: trunk/gtk-sharp/doc/en/Gtk/CellRendererText.xml
===================================================================
--- trunk/gtk-sharp/doc/en/Gtk/CellRendererText.xml     2005-12-10 04:22:35 UTC 
(rev 54185)
+++ trunk/gtk-sharp/doc/en/Gtk/CellRendererText.xml     2005-12-10 06:00:03 UTC 
(rev 54186)
@@ -615,7 +615,7 @@
       </ReturnValue>
       <Docs>
         <summary>The width at which text is wrapped.</summary>
-        <value>a width >= -1, where -1 denotes no wrapping.</value>
+        <value>a width &gt;= -1, where -1 denotes no wrapping.</value>
         <remarks />
         <since version="Gtk# 2.8" />
       </Docs>

Modified: trunk/gtk-sharp/doc/en/Gtk/EntryCompletion.xml
===================================================================
--- trunk/gtk-sharp/doc/en/Gtk/EntryCompletion.xml      2005-12-10 04:22:35 UTC 
(rev 54185)
+++ trunk/gtk-sharp/doc/en/Gtk/EntryCompletion.xml      2005-12-10 06:00:03 UTC 
(rev 54186)
@@ -631,7 +631,8 @@
       </ReturnValue>
       <Docs>
         <summary>Controls if popup is displayed on a single match.</summary>
-        <value><see langword="true" /> if popup is displayed on single 
matches.</value>
+        <value>
+          <see langword="true" /> if popup is displayed on single 
matches.</value>
         <remarks>Set this to <see langword="false" /> for inline 
completion.</remarks>
         <since version="Gtk# 2.8" />
       </Docs>
@@ -649,7 +650,8 @@
       </ReturnValue>
       <Docs>
         <summary>Controls if the popup is sized to the same width as the 
entry.</summary>
-        <value><see langword="true" /> if popup size is same as entry 
size.</value>
+        <value>
+          <see langword="true" /> if popup size is same as entry size.</value>
         <remarks />
         <since version="Gtk# 2.8" />
       </Docs>

Modified: trunk/gtk-sharp/doc/en/Gtk/FileChooser.xml
===================================================================
--- trunk/gtk-sharp/doc/en/Gtk/FileChooser.xml  2005-12-10 04:22:35 UTC (rev 
54185)
+++ trunk/gtk-sharp/doc/en/Gtk/FileChooser.xml  2005-12-10 06:00:03 UTC (rev 
54186)
@@ -806,7 +806,8 @@
       </ReturnValue>
       <Docs>
         <summary>Controls if Overwrite Confirmation is performed.</summary>
-        <value><see langword="true" /> to perform overwrite 
confirmations.</value>
+        <value>
+          <see langword="true" /> to perform overwrite confirmations.</value>
         <remarks>When this property is set, the implementation will raise <see 
cref="E:Gtk.FileChooser.ConfirmOverwrite" /> any time the chooser is in Save 
mode and an existing file is selected.</remarks>
         <since version="Gtk# 2.8" />
       </Docs>

Modified: trunk/gtk-sharp/doc/en/Gtk/Window.xml
===================================================================
--- trunk/gtk-sharp/doc/en/Gtk/Window.xml       2005-12-10 04:22:35 UTC (rev 
54185)
+++ trunk/gtk-sharp/doc/en/Gtk/Window.xml       2005-12-10 06:00:03 UTC (rev 
54186)
@@ -1940,7 +1940,8 @@
       </ReturnValue>
       <Docs>
         <summary>Urgency Hint.</summary>
-        <value><see langword="true" /> if the hint should be set on the 
window.</value>
+        <value>
+          <see langword="true" /> if the hint should be set on the 
window.</value>
         <remarks>This hint notifies the desktop environment to draw the user's 
attention to the window for urgent action.</remarks>
         <since version="Gtk# 2.8" />
       </Docs>

Modified: trunk/gtk-sharp/gdk/Event.cs
===================================================================
--- trunk/gtk-sharp/gdk/Event.cs        2005-12-10 04:22:35 UTC (rev 54185)
+++ trunk/gtk-sharp/gdk/Event.cs        2005-12-10 06:00:03 UTC (rev 54186)
@@ -128,6 +128,10 @@
                                return new EventWindowState (raw);
                        case EventType.Setting:
                                return new EventSetting (raw);
+#if GTK_SHARP_2_8
+                       case EventType.GrabBroken:
+                               return new EventGrabBroken (raw);
+#endif
                        case EventType.Map:
                        case EventType.Unmap:
                        case EventType.NoExpose:

Added: trunk/gtk-sharp/gdk/EventGrabBroken.cs
===================================================================
--- trunk/gtk-sharp/gdk/EventGrabBroken.cs      2005-12-10 04:22:35 UTC (rev 
54185)
+++ trunk/gtk-sharp/gdk/EventGrabBroken.cs      2005-12-10 06:00:03 UTC (rev 
54186)
@@ -0,0 +1,67 @@
+// Gdk.EventGrabBroken.cs - Custom GrabBroken event wrapper 
+//
+// Author:  Mike Kestner <[EMAIL PROTECTED]>
+//
+// Copyright (c) 2005 Novell, Inc.
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of version 2 of the Lesser GNU General 
+// Public License as published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the
+// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA.
+
+
+#if GTK_SHARP_2_8
+namespace Gdk {
+
+       using System;
+       using System.Runtime.InteropServices;
+
+       public class EventGrabBroken : Event {
+
+               [StructLayout(LayoutKind.Sequential)]
+               struct NativeEventGrabBroken {
+                       EventType type;
+                       IntPtr window;
+                       sbyte send_event;
+                       public bool Keyboard;
+                       public bool Implicit;
+                       public IntPtr GrabWindowHandle;
+               }
+
+               NativeEventGrabBroken native_struct;
+
+               public EventGrabBroken (IntPtr raw) : base (raw) 
+               {
+                       native_struct = (NativeEventGrabBroken) 
Marshal.PtrToStructure (raw, typeof (NativeEventGrabBroken));
+               } 
+
+               public bool Keyboard {
+                       get {
+                               return native_struct.Keyboard;
+                       }
+               }
+
+               public bool Implicit {
+                       get {
+                               return native_struct.Implicit;
+                       }
+               }
+
+               public Window GrabWindow {
+                       get {
+                               return 
GLib.Object.GetObject(native_struct.GrabWindowHandle) as Window;
+                       }
+               }
+       }
+}
+#endif
+

Modified: trunk/gtk-sharp/gdk/Gdk.metadata
===================================================================
--- trunk/gtk-sharp/gdk/Gdk.metadata    2005-12-10 04:22:35 UTC (rev 54185)
+++ trunk/gtk-sharp/gdk/Gdk.metadata    2005-12-10 06:00:03 UTC (rev 54186)
@@ -155,6 +155,7 @@
   <attr path="/api/namespace/[EMAIL PROTECTED]'GdkEventDND']" 
name="hidden">1</attr>
   <attr path="/api/namespace/[EMAIL PROTECTED]'GdkEventExpose']" 
name="hidden">1</attr>
   <attr path="/api/namespace/[EMAIL PROTECTED]'GdkEventFocus']" 
name="hidden">1</attr>
+  <attr path="/api/namespace/[EMAIL PROTECTED]'GdkEventGrabBroken']" 
name="hidden">1</attr>
   <attr path="/api/namespace/[EMAIL PROTECTED]'GdkEventKey']" 
name="hidden">1</attr>
   <attr path="/api/namespace/[EMAIL PROTECTED]'GdkEventMotion']" 
name="hidden">1</attr>
   <attr path="/api/namespace/[EMAIL PROTECTED]'GdkEventNoExpose']" 
name="hidden">1</attr>

Modified: trunk/gtk-sharp/gdk/Makefile.am
===================================================================
--- trunk/gtk-sharp/gdk/Makefile.am     2005-12-10 04:22:35 UTC (rev 54185)
+++ trunk/gtk-sharp/gdk/Makefile.am     2005-12-10 06:00:03 UTC (rev 54186)
@@ -16,6 +16,7 @@
        EventDND.cs             \
        EventExpose.cs          \
        EventFocus.cs           \
+       EventGrabBroken.cs      \
        EventKey.cs             \
        EventMotion.cs          \
        EventProperty.cs        \

Modified: trunk/gtk-sharp/gdk/gdk-symbols.xml
===================================================================
--- trunk/gtk-sharp/gdk/gdk-symbols.xml 2005-12-10 04:22:35 UTC (rev 54185)
+++ trunk/gtk-sharp/gdk/gdk-symbols.xml 2005-12-10 06:00:03 UTC (rev 54186)
@@ -10,6 +10,7 @@
   <symbol type="manual" cname="GdkEventDND" name="Gdk.EventDND"/>
   <symbol type="manual" cname="GdkEventExpose" name="Gdk.EventExpose"/>
   <symbol type="manual" cname="GdkEventFocus" name="Gdk.EventFocus"/>
+  <symbol type="manual" cname="GdkEventGrabBroken" name="Gdk.EventGrabBroken"/>
   <symbol type="manual" cname="GdkEventKey" name="Gdk.EventKey"/>
   <symbol type="manual" cname="GdkEventMotion" name="Gdk.EventMotion"/>
   <symbol type="marshal" cname="GdkEventNoExpose" name="Gdk.Event" 
marshal_type="IntPtr" call_fmt="{0}.Handle" from_fmt="Gdk.Event.GetEvent 
({0})"/>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to