diff src/audacious/util.c @ 2635:9b763f1f4e6a trunk

[svn] tweak UI behaviors: - pressing ctrl-p raises preferences window if it has been opened. - pressing Esc closes preferences window. - centering "Save Playlist" dialog and the replace confirmation dialog.
author yaz
date Wed, 21 Mar 2007 01:59:48 -0700
parents fe33bdd3d5ad
children 8d0b89db56e5
line wrap: on
line diff
--- a/src/audacious/util.c	Tue Mar 20 23:58:31 2007 -0700
+++ b/src/audacious/util.c	Wed Mar 21 01:59:48 2007 -0700
@@ -795,6 +795,7 @@
 
     gtk_button_set_use_stock(GTK_BUTTON(button), TRUE);
     gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT);
+    gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); /* centering */
 
     return dialog;
 }