Re: [Tracker] [Patch] First tracker gui patch



Jaime Frutos Morales wrote:
2006/9/12, Edward Duffy <eduffy gmail com>:
> "Search" word is dancing at the top of the window :-)
> An icon like the one in Rhythmbox should be added in the search field,
> it also bring an easy way to clear the field.
>

To add the clear button:
  (1) Install libsexy [1]
  (2) Replace the GtkEntry widget, with a custom widget (The 'C' icon
under GTK+ Additional)
  (3) Set the "Create Function" property to "sexy_icon_entry_new"
(4) In your C code, call "sexy_icon_entry_add_clear_button (search_entry);"
     This will automatically add the Clear icon and will clear the
text when you click it.

[1] http://www.chipx86.com/wiki/Libsexy
>
> Laurent.

Libsexy is not part of the official gnome libreries, so if we plan to
include tracker in the next release cycle, including libsexy
dependencies won't help (unless you get libsexy included too).

I like libsexy but we can inline the widgets code if we use them so there wont be a dependency as such. As its in Ubuntu the debs can include the dependency.

--
Mr Jamie McCracken
http://jamiemcc.livejournal.com/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]