From 86535bb201d151cb43736d67320b4a7b13152f3b Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Sat, 12 Feb 2005 06:30:56 +0000 Subject: [PATCH] 2005-02-11 Mike Kestner * gtk/Gtk.metadata : hide Menu.SetScreen. * gtk/Menu.custom : manually implement Screen prop. svn path=/trunk/gtk-sharp/; revision=40529 --- ChangeLog | 5 +++++ doc/en/Gtk/Menu.xml | 26 ++++++++++++-------------- gtk/Gtk.metadata | 2 +- gtk/Menu.custom | 16 ++++++++++++++++ 4 files changed, 34 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1b4077e7d..8320f1258 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-11 Mike Kestner + + * gtk/Gtk.metadata : hide Menu.SetScreen. + * gtk/Menu.custom : manually implement Screen prop. + 2005-02-11 Dan Winship * gtk/Gtk.metadata: Hide StyleGetProperty and StyleGetValist since diff --git a/doc/en/Gtk/Menu.xml b/doc/en/Gtk/Menu.xml index 3c8e4ab3b..b96a2a4fa 100644 --- a/doc/en/Gtk/Menu.xml +++ b/doc/en/Gtk/Menu.xml @@ -429,16 +429,14 @@ class PopupSample - + Property Gdk.Screen - - + The physical screen this menu is placed on. - a a @@ -498,7 +496,8 @@ class PopupSample The number of the monitor on which the menu should be popped up. a - + + @@ -515,22 +514,21 @@ class PopupSample - Adds a new to a (table) menu. - a , should be a + Adds a new to a (table) menu. + a , should be a a a a a - The number of 'cells' that - an item will occupy is specified by , - , and - . These each represent the leftmost, + The number of 'cells' that + an item will occupy is specified by , + , and + . These each represent the leftmost, rightmost, uppermost and lower column and row numbers of the table. (Columns and rows are indexed from zero). - - Note that this function is not related to . - + Note that this function is not related to . + diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index c4a0d72bf..ded915803 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -238,7 +238,7 @@ ToggleSizeRequested 1 1 - 1 + 1 Canceled Deactivated 1 diff --git a/gtk/Menu.custom b/gtk/Menu.custom index 48aa97d41..91f026bcb 100644 --- a/gtk/Menu.custom +++ b/gtk/Menu.custom @@ -24,3 +24,19 @@ { 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); + } + } +