X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkrecentchooser.h;h=66626ca9664dbc2246906536a054eb1d98883ac8;hb=0ba92bc26d1b716f2f9c0543593f13cd5a92c521;hp=8b891e1d51abe06e0e14b82183b394c5b65b0b88;hpb=5e29973773d4e2177f234675cc2a2b2016aa9fbc;p=~andy%2Fgtk diff --git a/gtk/gtkrecentchooser.h b/gtk/gtkrecentchooser.h index 8b891e1d5..66626ca96 100644 --- a/gtk/gtkrecentchooser.h +++ b/gtk/gtkrecentchooser.h @@ -14,18 +14,16 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ +#ifndef __GTK_RECENT_CHOOSER_H__ +#define __GTK_RECENT_CHOOSER_H__ + #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) #error "Only can be included directly." #endif -#ifndef __GTK_RECENT_CHOOSER_H__ -#define __GTK_RECENT_CHOOSER_H__ - #include #include #include @@ -46,11 +44,13 @@ G_BEGIN_DECLS * @GTK_RECENT_SORT_LRU: Sort the returned list with the least recently used * items first. * @GTK_RECENT_SORT_CUSTOM: Sort the returned list using a custom sorting - * function passed using gtk_recent_manager_set_sort_func(). + * function passed using gtk_recent_chooser_set_sort_func(). * * Used to specify the sorting method to be applyed to the recently * used resource list. - **/ + * + * Since: 2.10 + */ typedef enum { GTK_RECENT_SORT_NONE = 0, @@ -67,8 +67,25 @@ typedef gint (*GtkRecentSortFunc) (GtkRecentInfo *a, typedef struct _GtkRecentChooser GtkRecentChooser; /* dummy */ typedef struct _GtkRecentChooserIface GtkRecentChooserIface; +/** + * GTK_RECENT_CHOOSER_ERROR: + * + * Used to get the #GError quark for #GtkRecentChooser errors. + * + * Since: 2.10 + */ #define GTK_RECENT_CHOOSER_ERROR (gtk_recent_chooser_error_quark ()) +/** + * GtkRecentChooserError: + * @GTK_RECENT_CHOOSER_ERROR_NOT_FOUND: Indicates that a file does not exist + * @GTK_RECENT_CHOOSER_ERROR_INVALID_URI: Indicates a malformed URI + * + * These identify the various errors that can occur while calling + * #GtkRecentChooser functions. + * + * Since: 2.10 + */ typedef enum { GTK_RECENT_CHOOSER_ERROR_NOT_FOUND, @@ -105,8 +122,8 @@ struct _GtkRecentChooserIface GSList * (* list_filters) (GtkRecentChooser *chooser); void (* set_sort_func) (GtkRecentChooser *chooser, GtkRecentSortFunc sort_func, - gpointer data, - GDestroyNotify destroy); + gpointer sort_data, + GDestroyNotify data_destroy); /* * Signals