Hi all, this is regarding the bug in the control panel in the moblin
environment.

 

________________________________

From: Brandt, Todd E 
Sent: Wednesday, August 15, 2007 11:58 PM
To: Han, Jian; Spencer, Bob; Li, Horace; Li, Frank; Xu, Bo B;
'[EMAIL PROTECTED]'
Subject: RE: Patch for ControlPanel

 

Jian, I found an easier way to produce the same results your patch
provided. First, for those on the list unfamiliar with the bug, here's
an intro:

 

When running the hildon-desktop environment either in Xephyr or on a
Samsung device the hildon-control-panel can be accessed by double
clicking the control panel icon. The control panel window will appear
but looks empty because it's not being properly allocated. So even if
you have cp applets installed, they won't appear and are unusable.
Applying this patch fixes the problem. To create a fixed version of
hildon-control-panel perform the following steps in a moblin project
root environment:

 

%> cp <downloadlocation>/hcp-fix.patch .

%> apt-get source hildon-control-panel

%> cd hildon-control-panel-1.9.5

%> cat ../hcp-fix.patch | patch -p1

%> ./autogen.sh

%> ./configure prefix=/usr

%> make

%> make DESTDIR=/targets/<yourtarget>/fs install

 

Now you should be able to run the GUI in your target root and the
control panel should now function properly.

 

The issue seems to be in src/hcp-grid.c where the size_request member
function of the control panel's window widget is overwritten from its
default. The default for this member function is GTK's
gtk_icon_view_size_request, but is redirected to the custom function
hcp_grid_size_request. The purpose of this function seems to be to
calculate the height and width needed for the widget and write it to the
requisition variable as output. hcp_grid_size_request seems to try to
optimize how much space is taken but misses the mark, where the default
gtk_icon_view_size_request just gives the caller exactly what they asked
for. So the fix is just to revert back to the GTK's default function,
and voila, the entire control panel window displays normally.

 

________________________________

From: Han, Jian 
Sent: Monday, August 13, 2007 11:37 PM
To: Spencer, Bob; Brandt, Todd E; Li, Horace; Li, Frank; Xu, Bo B
Subject: Patch for ControlPanel

 

Hi, All

    

     I have created a patch for control panel. Fix the problem of
conflict between control panel and gtk 2.11.

     This patch follows the thought of Frank which avoid the implement
of one line in gtk_icon_view. 

     For the method I use in the patch is something like a hacker, I am
not sure whether I should push it into moblin.org. 

     I hope someone help me to check the code before I submit the patch.

 

     The attachment contains three objects: patch , the whole project
tar ball and the compiled control panel. 

     I have test the code with Bo's sampleapplet and nokia's hello world
applet. It seems work well. 

     Any problem, Please let me know!

 

Thanks

Han Jian

       

Attachment: hcp-fix.patch
Description: hcp-fix.patch

-- 
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

Reply via email to