[Gtk-sharp-list] Gtk.Menu.Popup overload
John Luke
jluke@users.sourceforge.net
Tue, 22 Jun 2004 16:53:59 -0400
--=-WlUfPwcF9BZpvsWaaDS8
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello,
I noticed I often had to call Gtk.Menu.Popup (null, null, null, IntPtr.
Zero, 3, Gtk.Global.CurrentEventTime) to popup a context menu. So I
added an overload with no arguments to .Popup to do this. Updated docs
are also included, ok to commit?
--=-WlUfPwcF9BZpvsWaaDS8
Content-Disposition: attachment; filename=popup_docs.patch
Content-Type: text/x-patch; name=popup_docs.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit
Index: en/Gtk/Menu.xml
===================================================================
RCS file: /cvs/public/gtk-sharp/doc/en/Gtk/Menu.xml,v
retrieving revision 1.22
diff -u -r1.22 Menu.xml
--- en/Gtk/Menu.xml 21 Jun 2004 20:33:11 -0000 1.22
+++ en/Gtk/Menu.xml 22 Jun 2004 19:56:30 -0000
@@ -136,6 +136,19 @@
</Docs>
</Member>
<Member MemberName="Popup">
+ <MemberSignature Language="C#" Value="public void Popup ();" />
+ <MemberType>Method</MemberType>
+ <ReturnValue>
+ <ReturnType>System.Void</ReturnType>
+ </ReturnValue>
+ <Parameters/>
+ <Docs>
+ <summary>Displays a menu and makes it available for selection.</summary>
+ <remarks>This is a convenience overload that calls
+ <see cref="M:Gtk.Menu.Popup(Gtk.Widget,Gtk.Widget,Gtk.MenuPositionFunc,System.IntPtr,System.UInt32,System.UInt32)"/> with some default arguments.</remarks>
+ </Docs>
+ </Member>
+ <Member MemberName="Popup">
<MemberSignature Language="C#" Value="public void Popup (Gtk.Widget parent_menu_shell, Gtk.Widget parent_menu_item, Gtk.MenuPositionFunc func, IntPtr data, uint button, uint activate_time);" />
<MemberType>Method</MemberType>
<ReturnValue>
@@ -477,4 +490,4 @@
</Docs>
</Member>
</Members>
-</Type>
\ No newline at end of file
+</Type>
--=-WlUfPwcF9BZpvsWaaDS8
Content-Disposition: attachment; filename=menu_popup.patch
Content-Type: text/x-patch; name=menu_popup.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit
? gtk-sharp.pub
? menu_popup.patch
Index: Makefile.am
===================================================================
RCS file: /cvs/public/gtk-sharp/gtk/Makefile.am,v
retrieving revision 1.19
diff -u -r1.19 Makefile.am
--- Makefile.am 11 Jun 2004 18:19:40 -0000 1.19
+++ Makefile.am 22 Jun 2004 20:01:08 -0000
@@ -54,6 +54,7 @@
Layout.custom \
ListStore.custom \
MessageDialog.custom \
+ Menu.custom \
MenuItem.custom \
Notebook.custom \
Object.custom \
Index: Menu.custom
===================================================================
RCS file: Menu.custom
diff -N Menu.custom
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Menu.custom 22 Jun 2004 20:01:08 -0000
@@ -0,0 +1,10 @@
+
+//
+// Menu.custom
+// Author: John Luke <jluke@cfl.rr.com>
+//
+
+ public void Popup ()
+ {
+ this.Popup (null, null, null, IntPtr.Zero, 3, Global.CurrentEventTime);
+ }
--=-WlUfPwcF9BZpvsWaaDS8--