mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Add the timeout for polling the file; change the default polling delta to
2006-07-28 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentmanager.c (gtk_recent_manager_init): Add the timeout for polling the file; change the default polling delta to 2000 msec.
This commit is contained in:
parent
61fa07ff70
commit
770599e349
@ -1,3 +1,9 @@
|
||||
2006-07-28 Emmanuele Bassi <ebassi@gnome.org>
|
||||
|
||||
* gtk/gtkrecentmanager.c (gtk_recent_manager_init): Add the
|
||||
timeout for polling the file; change the default polling
|
||||
delta to 2000 msec.
|
||||
|
||||
2006-07-27 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): cast the
|
||||
|
@ -1,3 +1,9 @@
|
||||
2006-07-28 Emmanuele Bassi <ebassi@gnome.org>
|
||||
|
||||
* gtk/gtkrecentmanager.c (gtk_recent_manager_init): Add the
|
||||
timeout for polling the file; change the default polling
|
||||
delta to 2000 msec.
|
||||
|
||||
2006-07-27 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): cast the
|
||||
|
@ -48,8 +48,8 @@
|
||||
/* the file where we store the recently used items */
|
||||
#define GTK_RECENTLY_USED_FILE ".recently-used.xbel"
|
||||
|
||||
/* a poll per second should be enough */
|
||||
#define POLL_DELTA 1000
|
||||
/* a poll every two seconds should be enough */
|
||||
#define POLL_DELTA 2000
|
||||
|
||||
/* return all items by default */
|
||||
#define DEFAULT_LIMIT -1
|
||||
@ -283,10 +283,6 @@ gtk_recent_manager_init (GtkRecentManager *manager)
|
||||
GTK_TYPE_RECENT_MANAGER);
|
||||
manager->priv = priv;
|
||||
|
||||
priv->filename = g_build_filename (g_get_home_dir (),
|
||||
GTK_RECENTLY_USED_FILE,
|
||||
NULL);
|
||||
|
||||
priv->limit = DEFAULT_LIMIT;
|
||||
priv->size = 0;
|
||||
|
||||
@ -297,6 +293,13 @@ gtk_recent_manager_init (GtkRecentManager *manager)
|
||||
|
||||
priv->screen = NULL;
|
||||
|
||||
priv->filename = g_build_filename (g_get_home_dir (),
|
||||
GTK_RECENTLY_USED_FILE,
|
||||
NULL);
|
||||
priv->poll_timeout = g_timeout_add (POLL_DELTA,
|
||||
gtk_recent_manager_poll_timeout,
|
||||
manager);
|
||||
|
||||
build_recent_items_list (manager);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user