Commit Graph
18 Commits
Author SHA1 Message Date
Markus Himmel ecec5d0e7c MediaPlayer: Playlist window visual fixes
Signed-off-by: Dario Casalinuovo <[email protected]>
2016-01-07 20:33:20 +01:00
Markus Himmel b5387eff2b MediaPlayer: Show individual track length in playlist window
Signed-off-by: Dario Casalinuovo <[email protected]>
2016-01-07 20:33:19 +01:00
Markus Himmel 1c68b67a36 MediaPlayer: Show total playlist length
Signed-off-by: Dario Casalinuovo <[email protected]>
2016-01-06 13:17:40 +01:00
Markus Himmel beddc8eefa MediaPlayer: Add missing null check
Signed-off-by: Dario Casalinuovo <[email protected]>
2016-01-06 13:17:39 +01:00
Markus Himmel 52c0749723 BLayoutBuilder: Add support for BCardLayout
Signed-off-by: Augustin Cavalier <[email protected]>
2015-12-26 20:13:25 -05:00
Markus Himmel 5f2db70ffb Interface Kit: Add BCardView
Signed-off-by: Augustin Cavalier <[email protected]>
2015-12-26 20:13:22 -05:00
Markus Himmel a89ac5a653 Tracker: Add dragged poses to the drag message in the correct order
The function EachPoseAndModel iterates through poses in reverse order.
This fixes #12333.

Signed-off-by: Augustin Cavalier <[email protected]>
2015-12-17 16:25:16 -05:00
Markus Himmel e4eecdb5c0 Correctly show normal-sized preview after returning from a very wide one
If the height had been reduced due to a very wide window being shown,
it was not reset to its full value when switching back to a more
narrow preview. Fix this by relayouting the window.

Signed-off-by: Augustin Cavalier <[email protected]>
2015-07-28 11:31:29 -04:00
Markus Himmel 5dab45be76 Screenshot: Fix aspect ratio.
The aspect ratio of the preview was wrong for two reasons:
 * The height of the preview was always assumed to be 150 while it actually
   depends on the layout.
 * The size was then only set using SetExplicitMinSize(), which is not
   sufficient to actually change the size to the desired value.

Fixes #11644.

Signed-off-by: Augustin Cavalier <[email protected]>
2015-07-25 17:26:55 -04:00
Markus Himmel ef69f5d941 DiskProbe: Make block offset and file offset editable
Fix #4046

Signed-off-by: François Revol <[email protected]>

GCI2014 task https://www.google-melange.com/gci/task/view/google/gci2014/5488784896425984
2015-01-03 17:36:22 +01:00
Markus Himmel 70dc2e27e9 Add BTranslatorRoster documentation 2015-01-03 01:20:35 +01:00
Markus Himmel b9e01b33ed Fixup BTranslator documentation 2015-01-03 01:20:28 +01:00
Markus Himmel 27c555cb7b Fix #8881: Add color drops to Backgrounds
- The Backgrounds preferences app will now accept color drops.
- The Backgrounds app will update if a color drop to the desktop
has changed its color due to a direct color drop

Signed-off-by: Jerome Duval <[email protected]>
2014-12-31 19:05:06 +01:00
Markus Himmel 29608b033c Fix BTranslator documentation formatting
Signed-off-by: Adrien Destugues <[email protected]>

GCI2014 task https://www.google-melange.com/gci/task/view/google/gci2014/5830218824548352
2014-12-30 22:28:19 +01:00
Markus Himmel 83a0273a65 Add styled RTF output to RTFTranslator and bump version
Signed-off-by: Adrien Destugues <[email protected]>
2014-12-20 18:10:38 +01:00
Markus Himmel a1eccae96f Make sure images containing BTranslators are not unloaded early
When a translator is uninstalled, BTranslatorPrivate::_RemoveTranslators is
called. This method used to unload the image containing the translator after
calling Release() on it resulting in several problems:

- If the translator was still busy, e.g. translating something while being
  installed, it crashed since the image was unloaded even though its refcount
  was larger than 0.
- Applications using code from one of the translators (e.g. its config view)
  would crash when the translator is uninstalled (this is bug #12005).

This problem is now fixed. The roster keeps track of all translators whose
image it manages (even if the translator was already removed from the roster).
It also keeps a refcount to all images. When a translator's refcount drops to
zero and it belonged to a roster at some point, it does not delete itself, but
notifies the roster that it is ready to destruct, which then removes it from
the roster if the translator is still in it, destroys the translator, decrements
the refcount of the image and if the new refcount is zero, unloads the image.
All of this is done in a message handler, since if the translator called
TranslatorDeleted like before, the unloaded image would be referenced when
the stack is walked up.

Finally, the DataTranslations preflet is required to Acquire() the translator
whose config view it is showing, because otherwise its refcount could be reduced
to 0 and the image unloaded. BTranslatorRoster now enables users to acquire a
translator by ID. By the time the translator has to be released, it might not
be part of the roster anymore though. Since BTranslatorRoster tries not to give
out raw pointers to the translators it manages, users who acquire a translator
through a roster now are given a BTranslatorReleaseDelegate, which allows for
releasing the BTranslator exactly once and then self-destructs.

Signed-off-by: Axel Dörfler <[email protected]>
2015-11-13 11:26:53 +01:00
Markus Himmel fdfc54b571 Remove unnecessary whitespace in AppDefs.h
Signed-off-by: Axel Dörfler <[email protected]>
2015-11-13 11:26:41 +01:00
Markus Himmel 7676393722 Minor correction in BTranslatorRoster documentation 2015-10-26 18:40:31 +01:00