[banshee: 43/61] [InternetArchive] Enter in entry activates search
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee: 43/61] [InternetArchive] Enter in entry activates search
- Date: Tue, 3 Nov 2009 06:31:27 +0000 (UTC)
commit fa7782211200d5a20c68cdf7d4f1563850d55422
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Oct 13 16:24:49 2009 -0700
[InternetArchive] Enter in entry activates search
.../Banshee.InternetArchive/HeaderFilters.cs | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/HeaderFilters.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/HeaderFilters.cs
index 0fbb657..9a3d7a4 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/HeaderFilters.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/HeaderFilters.cs
@@ -44,6 +44,11 @@ namespace Banshee.InternetArchive
private ComboBox sort_combo, media_type_combo;
private TreeStore media_type_store;
private Banshee.Widgets.SearchEntry search_entry;
+ private Button search_button;
+
+ public Widget SearchEntry {
+ get { return search_entry; }
+ }
public HeaderFilters (SearchSource source)
{
@@ -97,6 +102,8 @@ namespace Banshee.InternetArchive
EmptyMessage = String.Format (Catalog.GetString ("Optional Query"))
};
+ entry.Activated += (o, a) => { search_button.Activate (); };
+
// Add 'filter' items
var filter_fields = new List<IA.Field> ();
int i = 0;
@@ -145,7 +152,7 @@ namespace Banshee.InternetArchive
private void BuildSearchButton ()
{
- var button = new Hyena.Widgets.ImageButton (Catalog.GetString ("_Search"), Stock.Find);
+ var button = search_button = new Hyena.Widgets.ImageButton (Catalog.GetString ("_Search"), Stock.Find);
button.Clicked += (o, a) => {
UpdateSearch ();
source.Reload ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]