diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-07-15 03:04:50 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-15 03:12:12 +0200 |
commit | cfa241a8912b9a5c483b3cf0c6e11d6722651b3c (patch) | |
tree | d772b02dfee595551fc5e084a98d055c927e2df1 | |
parent | 678e738f8dce754ae4b415dfb7ec70abc38e0083 (diff) | |
download | gtk+-cfa241a8912b9a5c483b3cf0c6e11d6722651b3c.tar.gz |
Remove GtkRecenManager:limit deprecated property
-rw-r--r-- | docs/reference/gtk/gtk3-sections.txt | 2 | ||||
-rw-r--r-- | docs/reference/gtk/tmpl/gtkrecentmanager.sgml | 18 | ||||
-rw-r--r-- | gtk/gtk.symbols | 2 | ||||
-rw-r--r-- | gtk/gtkrecentmanager.c | 84 | ||||
-rw-r--r-- | gtk/gtkrecentmanager.h | 3 |
5 files changed, 1 insertions, 108 deletions
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt index ce77892c7e..dd0194fbfe 100644 --- a/docs/reference/gtk/gtk3-sections.txt +++ b/docs/reference/gtk/gtk3-sections.txt @@ -2644,8 +2644,6 @@ gtk_recent_manager_remove_item gtk_recent_manager_lookup_item gtk_recent_manager_has_item gtk_recent_manager_move_item -gtk_recent_manager_get_limit -gtk_recent_manager_set_limit gtk_recent_manager_get_items gtk_recent_manager_purge_items <SUBSECTION> diff --git a/docs/reference/gtk/tmpl/gtkrecentmanager.sgml b/docs/reference/gtk/tmpl/gtkrecentmanager.sgml index c888b6e9fe..0f5ab0add5 100644 --- a/docs/reference/gtk/tmpl/gtkrecentmanager.sgml +++ b/docs/reference/gtk/tmpl/gtkrecentmanager.sgml @@ -227,24 +227,6 @@ The #GQuark used for #GtkRecentManagerError errors. @Returns: -<!-- ##### FUNCTION gtk_recent_manager_get_limit ##### --> -<para> - -</para> - -@manager: -@Returns: - - -<!-- ##### FUNCTION gtk_recent_manager_set_limit ##### --> -<para> - -</para> - -@manager: -@limit: - - <!-- ##### FUNCTION gtk_recent_manager_get_items ##### --> <para> diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index a575f9b428..94f9e61c7b 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -2921,8 +2921,6 @@ gtk_recent_manager_remove_item gtk_recent_manager_lookup_item gtk_recent_manager_has_item gtk_recent_manager_move_item -gtk_recent_manager_set_limit -gtk_recent_manager_get_limit gtk_recent_manager_purge_items gtk_recent_info_get_type G_GNUC_CONST gtk_recent_info_ref diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index e79ca1f9c3..58b41dca79 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -91,7 +91,6 @@ struct _GtkRecentManagerPrivate guint is_dirty : 1; - gint limit; gint size; GBookmarkFile *recent_items; @@ -213,28 +212,7 @@ gtk_recent_manager_class_init (GtkRecentManagerClass *klass) P_("The full path to the file to be used to store and read the list"), NULL, (G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE))); - /** - * GtkRecentManager:limit - * - * The maximum number of items to be returned by the - * gtk_recent_manager_get_items() function. - * - * Since: 2.10 - * - * Deprecated: 2.22: Setting this property does not have any effect. - * #GtkRecenManager:limit property is deprecated. The length of - * the list should be managed by the view (implementing - * #GtkRecentChooser), and not by the model (the #GtkRecentManager). - */ - g_object_class_install_property (gobject_class, - PROP_LIMIT, - g_param_spec_int ("limit", - P_("Limit"), - P_("The maximum number of items to be returned by gtk_recent_manager_get_items()"), - -1, - G_MAXINT, - DEFAULT_LIMIT, - G_PARAM_READWRITE | G_PARAM_DEPRECATED)); + /** * GtkRecentManager:size * @@ -285,9 +263,7 @@ gtk_recent_manager_init (GtkRecentManager *manager) GtkRecentManagerPrivate); priv = manager->priv; - priv->limit = DEFAULT_LIMIT; priv->size = 0; - priv->filename = NULL; } @@ -303,9 +279,6 @@ gtk_recent_manager_set_property (GObject *object, { case PROP_FILENAME: gtk_recent_manager_set_filename (recent_manager, g_value_get_string (value)); - break; - case PROP_LIMIT: - gtk_recent_manager_set_limit (recent_manager, g_value_get_int (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); @@ -326,9 +299,6 @@ gtk_recent_manager_get_property (GObject *object, case PROP_FILENAME: g_value_set_string (value, recent_manager->priv->filename); break; - case PROP_LIMIT: - g_value_set_int (value, recent_manager->priv->limit); - break; case PROP_SIZE: g_value_set_int (value, recent_manager->priv->size); break; @@ -646,58 +616,6 @@ gtk_recent_manager_get_default (void) return recent_manager_singleton; } -/** - * gtk_recent_manager_set_limit: - * @manager: a #GtkRecentManager - * @limit: the maximum number of items to return, or -1. - * - * Sets the maximum number of item that the gtk_recent_manager_get_items() - * function should return. If @limit is set to -1, then return all the - * items. - * - * Since: 2.10 - * - * Deprecated: 2.22: #GtkRecenManager:limit property is deprecated. The - * length of the list should be managed by the view (implementing - * #GtkRecentChooser), and not by the model (the #GtkRecentManager). - */ -void -gtk_recent_manager_set_limit (GtkRecentManager *manager, - gint limit) -{ - GtkRecentManagerPrivate *priv; - - g_return_if_fail (GTK_IS_RECENT_MANAGER (manager)); - - priv = manager->priv; - priv->limit = limit; -} - -/** - * gtk_recent_manager_get_limit: - * @manager: a #GtkRecentManager - * - * Gets the maximum number of items that the gtk_recent_manager_get_items() - * function should return. - * - * Return value: the number of items to return, or -1 for every item. - * - * Since: 2.10 - * - * Deprecated: 2.22: #GtkRecenManager:limit property is deprecated. The - * length of the list should be managed by the view (implementing - * #GtkRecentChooser), and not by the model (the #GtkRecentManager). - */ -gint -gtk_recent_manager_get_limit (GtkRecentManager *manager) -{ - GtkRecentManagerPrivate *priv; - - g_return_val_if_fail (GTK_IS_RECENT_MANAGER (manager), DEFAULT_LIMIT); - - priv = manager->priv; - return priv->limit; -} static void gtk_recent_manager_add_item_query_info (GObject *source_object, diff --git a/gtk/gtkrecentmanager.h b/gtk/gtkrecentmanager.h index 950e53f042..105d0e2fe7 100644 --- a/gtk/gtkrecentmanager.h +++ b/gtk/gtkrecentmanager.h @@ -157,9 +157,6 @@ gboolean gtk_recent_manager_move_item (GtkRecentManager *manag const gchar *uri, const gchar *new_uri, GError **error); -void gtk_recent_manager_set_limit (GtkRecentManager *manager, - gint limit); -gint gtk_recent_manager_get_limit (GtkRecentManager *manager); GList * gtk_recent_manager_get_items (GtkRecentManager *manager); gint gtk_recent_manager_purge_items (GtkRecentManager *manager, GError **error); |