changeset 4085:008708425c83

make filter field in jtf dialog always grab focus on appearance.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Sun, 16 Dec 2007 18:44:56 +0900
parents 6c1e6582aa5d
children 96d8114f0b89
files src/audacious/ui_jumptotrack.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_jumptotrack.c	Sat Dec 15 16:39:50 2007 +0900
+++ b/src/audacious/ui_jumptotrack.c	Sun Dec 16 18:44:56 2007 +0900
@@ -510,7 +510,8 @@
     GtkWidget *vbox, *bbox, *sep;
     GtkWidget *toggle;
     GtkWidget *jump, *queue, *close;
-    GtkWidget *rescan, *edit;
+    GtkWidget *rescan;
+    static GtkWidget *edit;
     GtkWidget *search_label, *hbox;
 
     GtkWidget *treeview = NULL;
@@ -523,6 +524,7 @@
 
     if (jump_to_track_win) {
         gtk_window_present(GTK_WINDOW(jump_to_track_win));
+        gtk_widget_grab_focus(edit);
         return;
     }
 
@@ -658,9 +660,6 @@
 
     close = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
     gtk_box_pack_start(GTK_BOX(bbox), close, FALSE, FALSE, 0);
-/*     g_signal_connect_swapped(close, "clicked", */
-/*                              G_CALLBACK(gtk_widget_destroy), */
-/*                              jump_to_track_win); */
     g_signal_connect_swapped(close, "clicked",
                              G_CALLBACK(gtk_widget_hide),
                              jump_to_track_win); // just hide --yaz
@@ -672,4 +671,3 @@
     gtk_widget_show_all(jump_to_track_win);
     gtk_widget_grab_focus(edit);
 }
-