diff --git a/ChangeLog b/ChangeLog index d2cf7c2ad..68314cbfb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-05-02 Mike Kestner + + * 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 * configure.in.in: forward port of a win32 fix from 2-12-branch. diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index b25146db2..33d330653 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -187,6 +187,10 @@ true true 1 + GetRecentItems + GtkRecentInfo* + true + true call out 1 diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 766adc747..f92008ef8 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -99,6 +99,7 @@ customs = \ RadioButton.custom \ RadioMenuItem.custom \ RadioToolButton.custom \ + RecentManager.custom \ ScrolledWindow.custom \ SelectionData.custom \ Settings.custom \ diff --git a/gtk/RecentManager.custom b/gtk/RecentManager.custom new file mode 100644 index 000000000..b6912582d --- /dev/null +++ b/gtk/RecentManager.custom @@ -0,0 +1,29 @@ +// RecentManager.custom - customizations to Gtk.RecentManager +// +// Authors: Mike Kestner +// +// 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; + } + } +