mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
Remove deprecated GtkRecentManager functions
This commit is contained in:
parent
d21bf0c1ec
commit
032b38ccfd
@ -640,58 +640,6 @@ gtk_recent_manager_get_default (void)
|
||||
return recent_manager_singleton;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_recent_manager_get_for_screen:
|
||||
* @screen: a #GdkScreen
|
||||
*
|
||||
* Gets the recent manager object associated with @screen; if this
|
||||
* function has not previously been called for the given screen,
|
||||
* a new recent manager object will be created and associated with
|
||||
* the screen. Recent manager objects are fairly expensive to create,
|
||||
* so using this function is usually a better choice than calling
|
||||
* gtk_recent_manager_new() and setting the screen yourself; by using
|
||||
* this function a single recent manager object will be shared between
|
||||
* users.
|
||||
*
|
||||
* Return value: A unique #GtkRecentManager associated with the given
|
||||
* screen. This recent manager is associated to the with the screen
|
||||
* and can be used as long as the screen is open. Do not ref or
|
||||
* unref it.
|
||||
*
|
||||
* Deprecated: 2.12: This function has been deprecated and should
|
||||
* not be used in newly written code. Calling this function is
|
||||
* equivalent to calling gtk_recent_manager_get_default().
|
||||
*
|
||||
* Since: 2.10
|
||||
*/
|
||||
GtkRecentManager *
|
||||
gtk_recent_manager_get_for_screen (GdkScreen *screen)
|
||||
{
|
||||
return gtk_recent_manager_get_default ();
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_recent_manager_set_screen:
|
||||
* @manager: a #GtkRecentManager
|
||||
* @screen: a #GdkScreen
|
||||
*
|
||||
* Sets the screen for a recent manager; the screen is used to
|
||||
* track the user's currently configured recently used documents
|
||||
* storage.
|
||||
*
|
||||
* Since: 2.10
|
||||
*
|
||||
* Deprecated: 2.12: This function has been deprecated and should
|
||||
* not be used in newly written code. Calling this function has
|
||||
* no effect.
|
||||
*/
|
||||
void
|
||||
gtk_recent_manager_set_screen (GtkRecentManager *manager,
|
||||
GdkScreen *screen)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_recent_manager_set_limit:
|
||||
* @manager: a #GtkRecentManager
|
||||
|
@ -140,12 +140,6 @@ GType gtk_recent_manager_get_type (void) G_GNUC_CONST;
|
||||
GtkRecentManager *gtk_recent_manager_new (void);
|
||||
GtkRecentManager *gtk_recent_manager_get_default (void);
|
||||
|
||||
#ifndef GTK_DISABLE_DEPRECATED
|
||||
GtkRecentManager *gtk_recent_manager_get_for_screen (GdkScreen *screen);
|
||||
void gtk_recent_manager_set_screen (GtkRecentManager *manager,
|
||||
GdkScreen *screen);
|
||||
#endif
|
||||
|
||||
gboolean gtk_recent_manager_add_item (GtkRecentManager *manager,
|
||||
const gchar *uri);
|
||||
gboolean gtk_recent_manager_add_full (GtkRecentManager *manager,
|
||||
|
Loading…
Reference in New Issue
Block a user