Copying sugar-devel on this memo<br><br>Regards,<br><br>Mukul Gupta<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Mukul Gupta</b> <span dir="ltr"><<a href="mailto:mukul@seeta.in">mukul@seeta.in</a>></span><br>
Date: Mon, Sep 20, 2010 at 7:38 PM<br>Subject: SL bug#630<br>To: <a href="mailto:alsroot@member.fsf.org">alsroot@member.fsf.org</a><br>Cc: Manusheel Gupta <<a href="mailto:manu@seeta.in">manu@seeta.in</a>>, David Farning <<a href="mailto:dfarning@gmail.com">dfarning@gmail.com</a>><br>
<br><br>Aleksey,<br><br>This mail is with reference to the Sugarlabs bug #630 regarding Full Memory in Journal. There were some of my queries and some clarifications that I wanted to be sorted out. It would be great if you could look into some of these.<br>
<br>These are some of my findings after reproducing the error by assigning a dummy value to free_space.<br><br>1. The Modal Dialog appears at startup and asks us to go to the Journal. The dialog appears again whenever I perform any action in the Journal including when I erase some data,mark as favorites or exit an activity.However I am able to open up different entities present in the Journal. Even transfer to favorites view takes place.<br>
<br>Problem: The Dialog appears repetitively.<br>Resolution:<br>When the function ModalAlert() is being called ie at check_available_space. I intend to display the Modal Dialog only once. Hence, I require to store a temporary variable that will count the the Modal Dialog appears. For this I made the following changes to the code.<br>
<br><a href="http://paste.ubuntu.com/497021/" target="_blank">http://paste.ubuntu.com/497021/</a><br><br>I suspect that when i variable that I have used here is always initialised to be 1 and thus it doesn't give the desired output. Please suggest a method so that I can declare a static/extern type of variable.<br>
<br>2. In the Modal Dialog I was trying to get a provision for a Continue button which would exit the modal dialog and would lead me to the current view/favorites view. However, I was stuck up with its coding. Please check.<br>
<br><a href="http://paste.ubuntu.com/496530/" target="_blank">http://paste.ubuntu.com/496530/</a><br><br>3. Next thing, what I wanted to implement was to give a small alert/notification instead of the modal dialog indicating the % free memory or a warning. <br>
<br>I am also attaching the screenshots.The image 1 is the output when I make the changes listed in 1 while 2 is the output for Point No. 2.<br><br>Waiting for your valuable inputs,<br><br>Regards,<br><font color="#888888"><br>
Mukul Gupta<br>
Research Engineer, SEETA<br><br>
<div style="display: inline;"></div>
</font></div><br>