f-spot r4625 - in trunk: . src



Author: sdelcroix
Date: Wed Nov 26 08:58:19 2008
New Revision: 4625
URL: http://svn.gnome.org/viewvc/f-spot?rev=4625&view=rev

Log:
hide the search bar

2008-11-26  Stephane Delcroix  <sdelcroix novell com>

	* src/MainWindow.cs: fix code style.

	* src/QueryWidget.cs: hide the search bar

Modified:
   trunk/ChangeLog
   trunk/src/MainWindow.cs
   trunk/src/QueryWidget.cs

Modified: trunk/src/MainWindow.cs
==============================================================================
--- trunk/src/MainWindow.cs	(original)
+++ trunk/src/MainWindow.cs	Wed Nov 26 08:58:19 2008
@@ -236,9 +236,9 @@
 		get { return selection; }
 	}
 
-    public MenuItem FindByTag {
-        get { return find_by_tag; }
-    }
+	public MenuItem FindByTag {
+		get { return find_by_tag; }
+	}
 
 	public InfoBox InfoBox {
 		get { return info_box; }
@@ -1622,7 +1622,7 @@
 	
 	public void HandleRequireTag (object sender, EventArgs args)
  	{
-        ShowQueryWidget ();
+		ShowQueryWidget ();
 		query_widget.Require (tag_selection_widget.TagHighlight);
  	}
  
@@ -2502,8 +2502,8 @@
 		case Gdk.Key.space:
 		case Gdk.Key.Return:
 		case Gdk.Key.KP_Enter:
-            ShowQueryWidget ();
-            query_widget.Include (tag_selection_widget.TagHighlight);
+			ShowQueryWidget ();
+			query_widget.Include (tag_selection_widget.TagHighlight);
 			break;
 
 		case Gdk.Key.F2:
@@ -3276,7 +3276,8 @@
 		return mimes.ToArray (typeof (string)) as string [];
 	}
 
-	private void ShowQueryWidget () {
+	private void ShowQueryWidget ()
+	{
 		if (find_bar.Visible) {
 			find_bar.Entry.Text = String.Empty;
 			find_bar.Hide ();

Modified: trunk/src/QueryWidget.cs
==============================================================================
--- trunk/src/QueryWidget.cs	(original)
+++ trunk/src/QueryWidget.cs	Wed Nov 26 08:58:19 2008
@@ -1,3 +1,12 @@
+/*
+ * FSpot.QueryWidget.cs
+ *
+ * Author(s):
+ *	Gabriel Burt
+ *
+ * This is free software. See COPYING for details.
+ */
+
 using FSpot.Query;
 using FSpot.Widgets;
 using Mono.Unix;
@@ -21,9 +30,7 @@
 		Gtk.Tooltips tips = new Gtk.Tooltips ();
 
 		public LogicWidget Logic {
-			get {
-				return logic_widget;
-			}
+			get { return logic_widget; }
 		}
 
 		public QueryWidget (PhotoQuery query, Db db, TagSelectionWidget selector) : base(new HBox())
@@ -120,6 +127,7 @@
 			query.RatingRange = null;
 			logic_widget.Clear = true;
 			logic_widget.UpdateQuery ();
+			HideBar ();
 		}
 
 		public void ShowBar ()



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