2009-05-02 Mike Kestner <mkestner@novell.com>

* gtk/Gtk.metadata: updates for new RecentItems prop.
	* gtk/Makefile.am: add new custom.
	* gtk/RecentManager.custom: obsolete Items prop impl.

svn path=/trunk/gtk-sharp/; revision=133393
This commit is contained in:
Mike Kestner 2009-05-02 16:51:34 +00:00
parent d83dcd8994
commit 2e86916282
4 changed files with 40 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2009-05-02 Mike Kestner <mkestner@novell.com>
* gtk/Gtk.metadata: updates for new RecentItems prop.
* gtk/Makefile.am: add new custom.
* gtk/RecentManager.custom: obsolete Items prop impl.
2009-05-02 Mike Kestner <mkestner@novell.com>
* configure.in.in: forward port of a win32 fix from 2-12-branch.

View File

@ -187,6 +187,10 @@
<attr path="/api/namespace/interface[@cname='GtkFileChooser']/virtual_method[@cname='list_shortcut_folders']/return-type" name="elements_owned">true</attr>
<attr path="/api/namespace/interface[@cname='GtkFileChooser']/virtual_method[@cname='list_shortcut_folders']/return-type" name="owned">true</attr>
<attr path="/api/namespace/interface[@cname='GtkRecentChooser']/virtual_method[@name='GetRecentManager']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkRecentManager']/method[@cname='gtk_recent_manager_get_items']" name="name">GetRecentItems</attr>
<attr path="/api/namespace/object[@cname='GtkRecentManager']/method[@cname='gtk_recent_manager_get_items']/return-type" name="element_type">GtkRecentInfo*</attr>
<attr path="/api/namespace/object[@cname='GtkRecentManager']/method[@cname='gtk_recent_manager_get_items']/return-type" name="owned">true</attr>
<attr path="/api/namespace/object[@cname='GtkRecentManager']/method[@cname='gtk_recent_manager_get_items']/return-type" name="elements_owned">true</attr>
<attr path="/api/namespace/interface[@cname='GtkTreeModel']/method[@name='Foreach']/*/*[@name='func']" name="scope">call</attr>
<attr path="/api/namespace/interface[@cname='GtkTreeModel']/*[@name='GetIterFirst']/*/*[@name='iter']" name="pass_as">out</attr>
<attr path="/api/namespace/interface[@cname='GtkTreeModel']/method[@name='Get']" name="hidden">1</attr>

View File

@ -99,6 +99,7 @@ customs = \
RadioButton.custom \
RadioMenuItem.custom \
RadioToolButton.custom \
RecentManager.custom \
ScrolledWindow.custom \
SelectionData.custom \
Settings.custom \

29
gtk/RecentManager.custom Normal file
View File

@ -0,0 +1,29 @@
// RecentManager.custom - customizations to Gtk.RecentManager
//
// Authors: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2009 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.
[Obsolete("Replaced by RecentItems property")]
public GLib.List Items {
get {
IntPtr raw_ret = gtk_recent_manager_get_items(Handle);
GLib.List ret = new GLib.List(raw_ret, typeof (Gtk.RecentInfo), true, true);
return ret;
}
}