mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 08:23:19 +02:00
2005-02-11 Mike Kestner <mkestner@novell.com>
* gtk/Gtk.metadata : hide Menu.SetScreen. * gtk/Menu.custom : manually implement Screen prop. svn path=/trunk/gtk-sharp/; revision=40529
This commit is contained in:
parent
b0fe1620ea
commit
86535bb201
@ -1,3 +1,8 @@
|
|||||||
|
2005-02-11 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* gtk/Gtk.metadata : hide Menu.SetScreen.
|
||||||
|
* gtk/Menu.custom : manually implement Screen prop.
|
||||||
|
|
||||||
2005-02-11 Dan Winship <danw@novell.com>
|
2005-02-11 Dan Winship <danw@novell.com>
|
||||||
|
|
||||||
* gtk/Gtk.metadata: Hide StyleGetProperty and StyleGetValist since
|
* gtk/Gtk.metadata: Hide StyleGetProperty and StyleGetValist since
|
||||||
|
@ -429,16 +429,14 @@ class PopupSample
|
|||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="Screen">
|
<Member MemberName="Screen">
|
||||||
<MemberSignature Language="C#" Value="public Gdk.Screen Screen { set; };" />
|
<MemberSignature Language="C#" Value="public Gdk.Screen Screen { set; get; };" />
|
||||||
<MemberType>Property</MemberType>
|
<MemberType>Property</MemberType>
|
||||||
<ReturnValue>
|
<ReturnValue>
|
||||||
<ReturnType>Gdk.Screen</ReturnType>
|
<ReturnType>Gdk.Screen</ReturnType>
|
||||||
</ReturnValue>
|
</ReturnValue>
|
||||||
<Parameters>
|
<Parameters />
|
||||||
</Parameters>
|
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>The physical screen this menu is placed on.</summary>
|
<summary>The physical screen this menu is placed on.</summary>
|
||||||
<param name="value">a <see cref="T:Gdk.Screen" /></param>
|
|
||||||
<returns>a <see cref="T:Gdk.Screen" /></returns>
|
<returns>a <see cref="T:Gdk.Screen" /></returns>
|
||||||
<remarks />
|
<remarks />
|
||||||
</Docs>
|
</Docs>
|
||||||
@ -498,7 +496,8 @@ class PopupSample
|
|||||||
<Docs>
|
<Docs>
|
||||||
<summary>The number of the monitor on which the menu should be popped up.</summary>
|
<summary>The number of the monitor on which the menu should be popped up.</summary>
|
||||||
<returns>a <see cref="T:System.Int32" /></returns>
|
<returns>a <see cref="T:System.Int32" /></returns>
|
||||||
<remarks></remarks>
|
<remarks>
|
||||||
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="Attach">
|
<Member MemberName="Attach">
|
||||||
@ -515,22 +514,21 @@ class PopupSample
|
|||||||
<Parameter Name="bottom_attach" Type="System.UInt32" />
|
<Parameter Name="bottom_attach" Type="System.UInt32" />
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>Adds a new <see cref="T:Gtk.MenuItem"/> to a (table) menu.</summary>
|
<summary>Adds a new <see cref="T:Gtk.MenuItem" /> to a (table) menu.</summary>
|
||||||
<param name="child">a <see cref="T:Gtk.Widget" />, should be a <see cref="T:Gtk.MenuItem"/></param>
|
<param name="child">a <see cref="T:Gtk.Widget" />, should be a <see cref="T:Gtk.MenuItem" /></param>
|
||||||
<param name="left_attach">a <see cref="T:System.UInt32" /></param>
|
<param name="left_attach">a <see cref="T:System.UInt32" /></param>
|
||||||
<param name="right_attach">a <see cref="T:System.UInt32" /></param>
|
<param name="right_attach">a <see cref="T:System.UInt32" /></param>
|
||||||
<param name="top_attach">a <see cref="T:System.UInt32" /></param>
|
<param name="top_attach">a <see cref="T:System.UInt32" /></param>
|
||||||
<param name="bottom_attach">a <see cref="T:System.UInt32" /></param>
|
<param name="bottom_attach">a <see cref="T:System.UInt32" /></param>
|
||||||
<remarks>
|
<remarks>
|
||||||
<para>The number of 'cells' that
|
<para>The number of 'cells' that
|
||||||
an item will occupy is specified by <paramref name="left_attach"/>,
|
an item will occupy is specified by <paramref name="left_attach" />,
|
||||||
<paramref name="right_attach"/>, <paramref name="top_attach"/> and
|
<paramref name="right_attach" />, <paramref name="top_attach" /> and
|
||||||
<paramref name="bottom_attach"/>. These each represent the leftmost,
|
<paramref name="bottom_attach" />. These each represent the leftmost,
|
||||||
rightmost, uppermost and lower column and row numbers of the table.
|
rightmost, uppermost and lower column and row numbers of the table.
|
||||||
(Columns and rows are indexed from zero).</para>
|
(Columns and rows are indexed from zero).</para>
|
||||||
|
<para>Note that this function is not related to <see cref="M:Gtk.Menu.Detach" />.</para>
|
||||||
<para>Note that this function is not related to <see cref="M:Gtk.Menu.Detach"/>.</para>
|
</remarks>
|
||||||
</remarks>
|
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="Item">
|
<Member MemberName="Item">
|
||||||
|
@ -238,7 +238,7 @@
|
|||||||
<attr path="/api/namespace/object[@cname='GtkMenuItem']/signal[@name='ToggleSizeRequest']" name="name">ToggleSizeRequested</attr>
|
<attr path="/api/namespace/object[@cname='GtkMenuItem']/signal[@name='ToggleSizeRequest']" name="name">ToggleSizeRequested</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkMenu']/method[@name='Popup']/*/*[@type='GtkMenuPositionFunc']" name="null_ok">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkMenu']/method[@name='Popup']/*/*[@type='GtkMenuPositionFunc']" name="null_ok">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkMenu']/method[@name='Popup']/*/*[@type='GtkWidget*']" name="null_ok">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkMenu']/method[@name='Popup']/*/*[@type='GtkWidget*']" name="null_ok">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkMenu']/method[@name='SetScreen']" name="new_flag">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkMenu']/method[@name='SetScreen']" name="hidden">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkMenuShell']/signal[@name='Cancel']" name="name">Canceled</attr>
|
<attr path="/api/namespace/object[@cname='GtkMenuShell']/signal[@name='Cancel']" name="name">Canceled</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkMenuShell']/signal[@name='Deactivate']" name="name">Deactivated</attr>
|
<attr path="/api/namespace/object[@cname='GtkMenuShell']/signal[@name='Deactivate']" name="name">Deactivated</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkMessageDialog']/constructor[@cname='gtk_message_dialog_new']" name="hidden">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkMessageDialog']/constructor[@cname='gtk_message_dialog_new']" name="hidden">1</attr>
|
||||||
|
@ -24,3 +24,19 @@
|
|||||||
{
|
{
|
||||||
this.Popup (null, null, null, IntPtr.Zero, 3, Global.CurrentEventTime);
|
this.Popup (null, null, null, IntPtr.Zero, 3, Global.CurrentEventTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||||
|
static extern IntPtr gtk_widget_get_screen (IntPtr raw);
|
||||||
|
|
||||||
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||||
|
static extern void gtk_menu_set_screen (IntPtr raw, IntPtr screen);
|
||||||
|
|
||||||
|
public new Gdk.Screen Screen {
|
||||||
|
get {
|
||||||
|
return GLib.Object.GetObject (gtk_widget_get_screen (Handle), false) as Gdk.Screen;
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
gtk_menu_set_screen (Handle, value.Handle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user