Re: How do I disable automatic reloading?



2009-03-24 klockan 17:41 skrev Robert Rothenberg:
> On 24/03/09 16:36 Wouter Bolsterlee wrote:
>>> So for me, automatic reloading is not good. I would rather just hit Ctrl-R.
>>> How do I turn it off?!?
>> Afaics you you cannot turn automatic reloading off. I think what you can do
>> as a work-around is opening a copy of the document you're editing. I think
>> that one wouldn't automatically reload.
> From what I've been reading in this list and some Gnome Bug reports, 
> people wanted a reload feature to avoid this kind of hack. And then some 
> wanted automatic reload....
> Is there a way to turn it off in the source and rebuild it them?

Sure, that shouldn't be too hard. See the attached patch (against Evince
trunk, revision 3553). Untested, but it should work.

    — Wouter
Index: shell/ev-window.c
===================================================================
--- shell/ev-window.c	(revision 3553)
+++ shell/ev-window.c	(working copy)
@@ -1276,7 +1276,7 @@
 ev_window_document_changed (EvWindow *ev_window,
 			    gpointer  user_data)
 {
-	ev_window_reload_document (ev_window);
+	// ev_window_reload_document (ev_window);
 }
 
 static void

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]