Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-11-10 | Add theoretical support for holding weak pointers to stuff that was evicted ↵ | Daniel Burrows | 1 | -3/+95 | |
from the cache. Not tested because calculation of screenshot sizes seems to be screwy. | |||||
2009-11-10 | Use a key extractor for the package name -> screenshot mapping, so we don't ↵ | Daniel Burrows | 1 | -26/+8 | |
have to use the screenshot as its own identity. | |||||
2009-11-10 | Theoretically add screenshot thumbnails into the entity summary pane. | Daniel Burrows | 1 | -0/+16 | |
2009-11-10 | Actually add the screenshot to its containing EventBox. | Daniel Burrows | 1 | -0/+1 | |
Without this, obviously the screenshot wouldn't show up. | |||||
2009-11-10 | Remove an unnecessary call to image.show() in the screenshot code. | Daniel Burrows | 1 | -1/+0 | |
It only needs to be shown when the screenshot is constructed. | |||||
2009-11-09 | Make images not clickable by default. | Daniel Burrows | 1 | -1/+2 | |
2009-11-09 | Overhaul how download failures are handled, for better logging and so the ↵ | Daniel Burrows | 2 | -11/+51 | |
icon hopefully shows up more reliably. | |||||
2009-11-09 | Factor out the code to set up the "missing" icon. | Daniel Burrows | 2 | -21/+22 | |
2009-11-09 | Make the screenshot class always have a GdkWindow, and add support for ↵ | Daniel Burrows | 3 | -48/+86 | |
displaying a "missing image" icon when a screenshot can't be downloaded. | |||||
2009-11-06 | The new Glade changed a bunch of lines on its own. | Daniel Burrows | 1 | -25/+25 | |
2009-11-06 | Give the screenshot a properly named tag, and insert a thumbnail into the ↵ | Daniel Burrows | 3 | -11/+60 | |
description window that links to the full screenshot. | |||||
2009-11-06 | Don't make screenshots self-show. | Daniel Burrows | 1 | -1/+0 | |
2009-11-05 | Add support for an EventBox-based screenshot wrapper that has support for ↵ | Daniel Burrows | 2 | -0/+77 | |
acting as a "link". | |||||
2009-11-05 | Don't create an initial pixbuf loader; wait till we get a partial download. | Daniel Burrows | 1 | -1/+1 | |
2009-11-05 | Slightly more idiomatic test for a missing pixbuf loader. | Daniel Burrows | 1 | -1/+1 | |
2009-11-05 | More logging of incremental loads. | Daniel Burrows | 1 | -0/+3 | |
2009-11-05 | Use an intermediate method to process area updates of screenshots. | Daniel Burrows | 2 | -1/+12 | |
Mostly useful for logging purposes. | |||||
2009-11-05 | Better logging around incremental loading of screenshots. | Daniel Burrows | 1 | -0/+4 | |
2009-11-05 | Fix the order of arguments to lseek64. | Daniel Burrows | 1 | -1/+1 | |
2009-11-05 | Log when we decide not to try incremental loading. | Daniel Burrows | 1 | -0/+7 | |
2009-11-05 | Fix the signature of screenshot_cache_entry::partial_download so it actually ↵ | Daniel Burrows | 1 | -4/+5 | |
overrides the base class method. | |||||
2009-11-05 | Add more copious logging of download events on screenshots. | Daniel Burrows | 1 | -0/+10 | |
2009-11-05 | Use separate logging categories for the screenshot cache and the image widget. | Daniel Burrows | 2 | -29/+29 | |
2009-11-05 | Create a screenshot_key object that encapsulates the information needed to ↵ | Daniel Burrows | 3 | -81/+38 | |
identify a particular screenshot. | |||||
2009-11-05 | Actually add entries into the screenshot cache and return previously ↵ | Daniel Burrows | 1 | -7/+28 | |
existing entries when a new one is looked up. | |||||
2009-11-05 | Redesign how the screenshot object handles canceling downloads. | Daniel Burrows | 2 | -74/+25 | |
Now the client of the object is supposed to manually cancel the download. Although I originally preferred an approach where the widget would detect its own visibility, arguably the user of the object is in a better position to know exactly when to cancel the download. | |||||
2009-11-05 | Log a message when a new image has been loaded for a screenshot. | Daniel Burrows | 1 | -0/+4 | |
2009-11-05 | Cleanly handle errors from Gdk::PixbufLoader::close(). | Daniel Burrows | 1 | -3/+43 | |
2009-11-05 | Don't erase invalid iterators when dropping screenshots from the cache. | Daniel Burrows | 1 | -1/+1 | |
2009-11-05 | Add a first cut of a widget to actually display screenshots. | Daniel Burrows | 4 | -0/+295 | |
The widget was supposed to detect when it was visible or obscured and alter the caching / download status of the screenshot accordingly. I can't figure out how to get it to do that. As a result, the plumbing into the info tab is also a little hokey. Probably the end result here will be that the user of the screenshot image object will be expected to invoke a method when it's not visible any more, since it doesn't seem to be possible for the widget to detect this itself. :-( | |||||
2009-11-04 | Make redirect_from_background derive from sigc::trackable, so it actually ↵ | Daniel Burrows | 1 | -1/+1 | |
fulfils its intended purpose. The whole point here was to exploit sigc::trackable's magic ability to disconnect slots when it's destroyed. This worrks better if you use a sigc::trackable. | |||||
2009-11-04 | Don't start the download in the constructor of screenshot cache entries, so ↵ | Daniel Burrows | 1 | -0/+12 | |
that we can get a shared pointer to the entry (which isn't possible until after the constructor runs). | |||||
2009-11-04 | Make sure to always close() the PixbufLoader when we're done with it; GTK+ ↵ | Daniel Burrows | 1 | -0/+15 | |
doesn't like it when we destroy an unclosed loader. | |||||
2009-11-04 | Add definitions of some missing members of screenshot_cache. | Daniel Burrows | 1 | -0/+3 | |
2009-11-04 | Move ~cached_screenshot() into the .cc file, since it can't be inlined anyway. | Daniel Burrows | 2 | -3/+5 | |
2009-11-04 | Implement gui::get_screenshot(). | Daniel Burrows | 1 | -0/+6 | |
2009-11-04 | Initial implementation of code to download screenshots from the GUI. | Daniel Burrows | 3 | -0/+755 | |
This handles a lot of niceties, at least theoretically (still untested): incremental loading, merging requests for the same screenshot (so only one pixbuf is allocated), and caching loaded screenshots. | |||||
2009-11-03 | Rename resolver_trampoline to post_thunk and move it to the main GUI header. | Daniel Burrows | 5 | -18/+15 | |
This is preparation for a future where it will be used more generally than just in the resolver. | |||||
2009-10-27 | Don't try to compute a new solution every time the resolver state changes in ↵ | Daniel Burrows | 1 | -2/+1 | |
the upgrade fixing resolver tab. Instead, we just ensure that the first solution is generated. The main symptom of this bug was that if you ran out of solutions, then loosened a constraint so that new solutions were available, a new solution would be produced immediately. | |||||
2009-10-27 | When manipulating resolver entries in the GUI, copy the choices that we're ↵ | Daniel Burrows | 2 | -35/+46 | |
working on before acting on any of them. This fixes crashes caused by the fact that acting on a choice could cause the tree store to be torn down and rebuilt. When we were operating on iterators of the store, this meant that the next item we operated on would access freed memory and crash. | |||||
2009-10-26 | Clean up a minor potential deadlock if the execution of a thunk posted to ↵ | Daniel Burrows | 1 | -5/+45 | |
the main thread generated a bunch of new posted thunks. The write buffer for the glib dispatcher could have become full; now we make sure to never post to it more than once. | |||||
2009-10-26 | Get rid of get_solution_background_blocking. | Daniel Burrows | 2 | -15/+12 | |
Now that the resolver continuations run in the foreground thread, this was causing irreconcilable deadlocks (since the foreground thread would be waiting for someone to post the return result, which could only happen when the foreground thread finished running the continuation and polled for new posted thunks). | |||||
2009-10-26 | Fix a typo in a text string. | Daniel Burrows | 1 | -1/+1 | |
2009-10-26 | Fix up more places where the wrong version was being displayed. | Daniel Burrows | 1 | -14/+12 | |
2009-10-24 | Also make checking for cached changelogs based on the job queue object. | Daniel Burrows | 1 | -183/+73 | |
2009-10-24 | Use the new job queue class to parse package changelogs. | Daniel Burrows | 1 | -173/+61 | |
2009-10-11 | Don't crash if we try to stop the background changelog parse threads and ↵ | Daniel Burrows | 1 | -2/+4 | |
they aren't running. | |||||
2009-10-11 | Make the second tab in the upgrade view display a summary of the selected ↵ | Daniel Burrows | 1 | -17/+7 | |
package (like the one shown in the package search tab) rather than the full changelog of that package. | |||||
2009-10-11 | Suspend the background changelog threads while the cache is closed. | Daniel Burrows | 1 | -16/+122 | |
Fixes crashes that happened if you closed the program (or, probably, installed software) while downloading changelogs. | |||||
2009-10-11 | Run resolver continuations in the foreground thread via a trampoline callback. | Daniel Burrows | 3 | -18/+50 | |
This eliminates a whole class of bugs caused by calling into resolver routines from the background thread. The specific one I ran into here was that the resolver thread is shut down by join()ing it while its global lock is held, and it's hard to avoid that -- but most resolver routines want to take the global lock, so calling them from the background thread risks a deadlock. There is a loophole here: you can safely use the resolver manager in the background thread if you know that no-one else is accessing it. The command line frontend uses this to simplify its code. |