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



On Tue, 2006-09-12 at 21:14 +0200, 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).

Yeah, deskbar-applet uses an inlined copy of epiphany's entry code to
get the icon-entry functionality (atleast I think it is epi's). If we
are merely talking about inlining icon-entry code there's prolly no
point in making an optional dependency on libsexy.

Cheers,
Mikkel




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