From 6a4b03d57f749c0ee72824efd7d1260f166cb395 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 8 Sep 2005 19:01:01 +0000 Subject: [PATCH] * gtk/Gtk.metadata: Hide Gtk.Drag.SetIconDefault. Mark Gtk.TreeView.GetVisibleRect's arg as "out". * gtk/Drag.custom: gtk_drag_set_icon_default(ctx) should translate to Gtk.Drag.SetIconDefault(ctx), not Gtk.Drag.IconDefault = ctx. * gtk/TreeView.custom: add obsolete GetVisibleRect() svn path=/trunk/gtk-sharp/; revision=49723 --- ChangeLog | 10 ++++++++++ doc/en/Gtk/Drag.xml | 20 +++++++++++++++++--- doc/en/Gtk/TreeView.xml | 17 +++++++++++++++-- gtk/Drag.custom | 35 +++++++++++++++++++++++++++++++++++ gtk/Gtk.metadata | 2 ++ gtk/Makefile.am | 1 + gtk/TreeView.custom | 5 +++++ 7 files changed, 85 insertions(+), 5 deletions(-) create mode 100644 gtk/Drag.custom diff --git a/ChangeLog b/ChangeLog index 6d8a780e4..d48e0e1c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-09-08 Dan Winship + + * gtk/Gtk.metadata: Hide Gtk.Drag.SetIconDefault. Mark + Gtk.TreeView.GetVisibleRect's arg as "out". + + * gtk/Drag.custom: gtk_drag_set_icon_default(ctx) should translate + to Gtk.Drag.SetIconDefault(ctx), not Gtk.Drag.IconDefault = ctx. + + * gtk/TreeView.custom: add obsolete GetVisibleRect() + 2005-09-07 Mike Kestner * bootstrap : bump version for beta2. diff --git a/doc/en/Gtk/Drag.xml b/doc/en/Gtk/Drag.xml index edab7087e..08600561f 100644 --- a/doc/en/Gtk/Drag.xml +++ b/doc/en/Gtk/Drag.xml @@ -456,6 +456,21 @@ + + + Method + + System.Void + + + + + + Sets the icon for a particular drag to the default icon. + The context of the drag (this must be called with a context for the source side of a drag). + + + Property @@ -465,9 +480,8 @@ - Sets the icon for a particular drag to the default icon. - - if the icon has been made the default. + Obsolete. Replaced by + diff --git a/doc/en/Gtk/TreeView.xml b/doc/en/Gtk/TreeView.xml index 498ff4a47..f37c2acb0 100644 --- a/doc/en/Gtk/TreeView.xml +++ b/doc/en/Gtk/TreeView.xml @@ -376,6 +376,19 @@ For a example how to handle selection events see This is useful when you want to focus the attention of the user on a particular row. If is not , then focus is given to the column specified by it. Additionally, if is specified, and is , then editing should be started in the specified cell. This function is often followed by in order to give keyboard focus to the widget. Please note that editing can only happen when the widget is realized. + + + Property + + Gdk.Rectangle + + + + Returns the currently-visible region of the tree view, in tree view coordinates. + a + Convert to widget coordinates with . Tree coordinates start at 0,0 for row 0 of the tree, and cover the entire scrollable area of the tree. + + Method @@ -386,9 +399,9 @@ For a example how to handle selection events see - Fills with the currently-visible region of the buffer, in tree coordinates. + Obsolete (and non-functional). Replaced by . an object of type - Convert to widget coordinates with . Tree coordinates start at 0,0 for row 0 of the tree, and cover the entire scrollable area of the tree. + diff --git a/gtk/Drag.custom b/gtk/Drag.custom new file mode 100644 index 000000000..190a71c40 --- /dev/null +++ b/gtk/Drag.custom @@ -0,0 +1,35 @@ +// Drag.custom - Gtk.Drag class customizations +// +// Copyright (c) 2005 Novell, Inc. +// +// This code is inserted after the automatically generated code. +// +// 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. + + [DllImport("libgtk-win32-2.0-0.dll")] + static extern void gtk_drag_set_icon_default(IntPtr context); + + public static void SetIconDefault(Gdk.DragContext context) + { + gtk_drag_set_icon_default(context == null ? IntPtr.Zero : context.Handle); + } + + [Obsolete("Replaced by SetIconDefault(ctx)")] + public static Gdk.DragContext IconDefault { + set { + gtk_drag_set_icon_default(value == null ? IntPtr.Zero : value.Handle); + } + } + diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index 2ffc1469c..43a1e8657 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -51,6 +51,7 @@ BindingsActivate 1 1 + 1 1 1 gboolean @@ -562,6 +563,7 @@ out out 1 + out 1 1 call diff --git a/gtk/Makefile.am b/gtk/Makefile.am index d518edcae..95a3763f2 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -51,6 +51,7 @@ customs = \ ComboBoxEntry.custom \ Container.custom \ Dialog.custom \ + Drag.custom \ Entry.custom \ EntryCompletion.custom \ FileChooser.custom \ diff --git a/gtk/TreeView.custom b/gtk/TreeView.custom index 0e3c817ac..ca998f368 100644 --- a/gtk/TreeView.custom +++ b/gtk/TreeView.custom @@ -179,3 +179,8 @@ { ColumnDragFunction = func; } + + [Obsolete ("Replaced by VisibleRect property.")] + public void GetVisibleRect(Gdk.Rectangle visible_rect) { + ; + }