changeset 4115:e99284bb7936

Reset the text entry box to nothing when the jump to track window is requested. Closes Bugzilla #21.
author William Pitcock <nenolod@atheme.org>
date Tue, 25 Dec 2007 01:53:55 -0600
parents 3218e86beed7
children 5853d43e539a
files src/audacious/ui_jumptotrack.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_jumptotrack.c	Tue Dec 25 01:16:26 2007 -0600
+++ b/src/audacious/ui_jumptotrack.c	Tue Dec 25 01:53:55 2007 -0600
@@ -95,7 +95,7 @@
 void
 ui_jump_to_track_hide(void)
 {
-    g_return_if_fail(jump_to_track_win);
+    g_return_if_fail(jump_to_track_win != NULL);
     gtk_widget_hide(jump_to_track_win);
 }
 
@@ -511,8 +511,8 @@
     GtkWidget *toggle;
     GtkWidget *jump, *queue, *close;
     GtkWidget *rescan;
+    GtkWidget *search_label, *hbox;
     static GtkWidget *edit;
-    GtkWidget *search_label, *hbox;
 
     GtkWidget *treeview = NULL;
     GtkListStore *jtf_store;
@@ -524,6 +524,7 @@
 
     if (jump_to_track_win) {
         gtk_window_present(GTK_WINDOW(jump_to_track_win));
+        gtk_entry_set_text(edit, "");
         gtk_widget_grab_focus(edit);
         return;
     }