Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 156045 Details for
Bug 242397
evince wakes up every 2 seconds for no good reason (with patch)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
fix for the behavior
evince-timeout.patch (text/plain), 1.65 KB, created by
Arjan van de Ven
on 2007-06-04 01:21:30 UTC
(
hide
)
Description:
fix for the behavior
Filename:
MIME Type:
Creator:
Arjan van de Ven
Created:
2007-06-04 01:21:30 UTC
Size:
1.65 KB
patch
obsolete
>--- evince-0.8.0/shell/ev-metadata-manager.c.org 2007-06-03 18:07:04.000000000 -0700 >+++ evince-0.8.0/shell/ev-metadata-manager.c 2007-06-03 18:11:43.000000000 -0700 >@@ -87,6 +87,17 @@ > g_free (item); > } > >+void ev_metadata_arm_timeout(void) >+{ >+ if (ev_metadata_manager->timeout_id) >+ return; >+ ev_metadata_manager->timeout_id = >+ g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE, >+ 2000, /* 2 sec */ >+ (GSourceFunc)ev_metadata_manager_save, >+ NULL, >+ NULL); >+} > void > ev_metadata_manager_init (void) > { >@@ -101,12 +112,6 @@ > g_free, > item_free); > >- ev_metadata_manager->timeout_id = >- g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE, >- 2000, /* 2 sec */ >- (GSourceFunc)ev_metadata_manager_save, >- NULL, >- NULL); > } > > /* This function must be called before exiting ev */ >@@ -116,7 +121,8 @@ > if (ev_metadata_manager == NULL) > return; > >- g_source_remove (ev_metadata_manager->timeout_id); >+ if (ev_metadata_manager->timeout_id) >+ g_source_remove (ev_metadata_manager->timeout_id); > > ev_metadata_manager_save (NULL); > >@@ -376,6 +382,7 @@ > > item->atime = time (NULL); > ev_metadata_manager->modified = TRUE; >+ ev_metadata_arm_timeout(); > return; > } > >@@ -511,6 +518,7 @@ > item->atime = time (NULL); > > ev_metadata_manager->modified = TRUE; >+ ev_metadata_arm_timeout(); > } > > static void >@@ -631,8 +639,10 @@ > xmlNodePtr root; > gchar *file_name; > >+ ev_metadata_manager->timeout_id = 0; >+ > if (!ev_metadata_manager->modified) >- return TRUE; >+ return FALSE; > > resize_items (); > >@@ -658,7 +668,7 @@ > > ev_metadata_manager->modified = FALSE; > >- return TRUE; >+ return FALSE; > } > > void
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 242397
: 156045