From 6dc561853ab795afdd03737af6241c1e3aedc7cd Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Fri, 9 Dec 2005 23:16:42 +0000 Subject: [PATCH] 2005-12-09 Mike Kestner * pango/Pango.metadata : 2.8 API tweaks * gdk/Gdk.metadata : 2.8 API tweaks * gtk/Gtk.metadata : 2.8 API tweaks * gtk/IconView.custom : overloads for the weird ScrollToPath. * gtk/Makefile.am : add custom svn path=/trunk/gtk-sharp/; revision=54176 --- ChangeLog | 8 ++++++++ gdk/Gdk.metadata | 1 + gtk/Gtk.metadata | 21 +++++++++++++++++++++ gtk/IconView.custom | 37 +++++++++++++++++++++++++++++++++++++ gtk/Makefile.am | 1 + pango/Pango.metadata | 14 +++++++------- 6 files changed, 75 insertions(+), 7 deletions(-) create mode 100644 gtk/IconView.custom diff --git a/ChangeLog b/ChangeLog index 339e9041f..5b471fc1d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-12-09 Mike Kestner + + * pango/Pango.metadata : 2.8 API tweaks + * gdk/Gdk.metadata : 2.8 API tweaks + * gtk/Gtk.metadata : 2.8 API tweaks + * gtk/IconView.custom : overloads for the weird ScrollToPath. + * gtk/Makefile.am : add custom + 2005-11-19 Mike Kestner * generator/ManualGen.cs (CallByName): add null handling. diff --git a/gdk/Gdk.metadata b/gdk/Gdk.metadata index 904e192e5..9a9afa264 100644 --- a/gdk/Gdk.metadata +++ b/gdk/Gdk.metadata @@ -5,6 +5,7 @@ 1 gboolean ref + true 1 1 1 diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index 43a1e8657..fdf229b9c 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -162,6 +162,7 @@ 1 1 Activated + 1 1 call accel_group @@ -319,10 +320,24 @@ true 1 ActivateItem + 1 + 1 + out + true + out + true + out + true + out + out + true true GtkTreePath* true true + out + true + 1 AllSelected 1 AllUnselected @@ -413,7 +428,11 @@ 1 1 1 + private + private + GetHScrollbar out + GetVScrollbar 1 1 1 @@ -564,6 +583,8 @@ out 1 out + out + true 1 1 call diff --git a/gtk/IconView.custom b/gtk/IconView.custom new file mode 100644 index 000000000..c2f59ba1b --- /dev/null +++ b/gtk/IconView.custom @@ -0,0 +1,37 @@ +// IconView.custom - customizations to Gtk.IconView +// +// Authors: Mike Kestner +// +// 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 + + [DllImport("libgtk-win32-2.0-0.dll")] + static extern void gtk_icon_view_scroll_to_path(IntPtr raw, IntPtr path, bool use_align, float row_align, float col_align); + + public void ScrollToPath (Gtk.TreePath path) + { + gtk_icon_view_scroll_to_path(Handle, path == null ? IntPtr.Zero : path.Handle, false, 0.0f, 0.0f); + } + + public void ScrollToPath (Gtk.TreePath path, float row_align, float col_align) + { + gtk_icon_view_scroll_to_path(Handle, path == null ? IntPtr.Zero : path.Handle, true, row_align, col_align); + } + +#endif + diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 95a3763f2..74e7b205f 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -66,6 +66,7 @@ customs = \ IconFactory.custom \ IconSet.custom \ IconTheme.custom \ + IconView.custom \ Image.custom \ ImageMenuItem.custom \ Init.custom \ diff --git a/pango/Pango.metadata b/pango/Pango.metadata index 270ca098f..a5a3f2a01 100644 --- a/pango/Pango.metadata +++ b/pango/Pango.metadata @@ -65,13 +65,13 @@ 1 1 1 - false - private - ref - ref - 1 - 1 - 1 + false + private + ref + ref + 1 + 1 + 1 1 1