[prev in list] [next in list] [prev in thread] [next in thread] 

List:       olpc-sugar
Subject:    Re: [Sugar-devel] Browse: improve autocomplete list
From:       James Cameron <quozl () laptop ! org>
Date:       2016-02-28 23:19:03
Message-ID: 20160228231903.GD15380 () us ! netrek ! org
[Download RAW message or body]

On Sun, Feb 28, 2016 at 08:36:26PM +0530, Utkarsh Tiwari wrote:
> I would like to work on this bug ->
> https://bugs.sugarlabs.org/ticket/4081

Modify ticket, in the Action box click on accept, then Submit
changes.  As a result, the Bug Status should change.

Later, if you stop work on the bug, set the Bug Status to something
other than Assigned or Accepted.

> I went through the webtoolbar.py code and found that it uses cairo
> to draw the url suggestion dropdown list below the URL bar.

Please use terminology consistent with the code; this is the
SearchWindow you are talking about, right?  Assuming yes.

> Could anyone here provide some details about to integrate
> gtk.scrolledwindow or hints on how to get about it ?

It looks like point 2 of the ticket is half done.  SearchWindow is
already a Gtk.TreeView inside a Gtk.ScrolledWindow inside a
Gtk.Window.  So you don't need to integrate Gtk.ScrolledWindow.

Looking at point 1, "put the URL below the title", _search_create_view
in webtoolbar.py uses two standard Gtk.CellRendererText to build the
TreeView cells.  I agree with Manuq-three-years-ago that a custom
renderer may be needed.

Look at our other custom renderers, e.g. src/sugar3/graphics/icon.py
and PreviewRenderer in src/jarabe/journal/iconview.py.

Start Epiphany and use the feature.  Review the C code used in
Epiphany.

Write a custom renderer.

-- 
James Cameron
http://quozl.netrek.org/
_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic