changeset 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 704437e446d2
children 517d13842fe7
files ChangeLog src/audacious/build_stamp.c src/audacious/glade/prefswin.glade src/audacious/ui_playlist.c src/audacious/ui_preferences.c src/audacious/util.c
diffstat 6 files changed, 14 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Mar 20 23:58:31 2007 -0700
+++ b/ChangeLog	Wed Mar 21 01:59:48 2007 -0700
@@ -1,3 +1,11 @@
+2007-03-21 06:58:31 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [4286]
+  - fixes for mowgli pre-GIT.
+  
+  trunk/src/audacious/playlist.h |    9 +++++++++
+  1 file changed, 9 insertions(+)
+
+
 2007-03-21 05:00:11 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [4284]
   - use a managed heap for playlist entry node allocation.
--- a/src/audacious/build_stamp.c	Tue Mar 20 23:58:31 2007 -0700
+++ b/src/audacious/build_stamp.c	Wed Mar 21 01:59:48 2007 -0700
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070321-4284";
+const gchar *svn_stamp = "20070321-4286";
--- a/src/audacious/glade/prefswin.glade	Tue Mar 20 23:58:31 2007 -0700
+++ b/src/audacious/glade/prefswin.glade	Wed Mar 21 01:59:48 2007 -0700
@@ -4628,6 +4628,7 @@
 		  <property name="relief">GTK_RELIEF_NORMAL</property>
 		  <property name="focus_on_click">True</property>
 		  <signal name="clicked" handler="gtk_widget_hide" object="prefswin" last_modification_time="Fri, 16 Mar 2007 02:05:32 GMT"/>
+		  <accelerator key="Escape" modifiers="0" signal="clicked"/>
 		</widget>
 	      </child>
 	    </widget>
--- a/src/audacious/ui_playlist.c	Tue Mar 20 23:58:31 2007 -0700
+++ b/src/audacious/ui_playlist.c	Wed Mar 21 01:59:48 2007 -0700
@@ -798,6 +798,7 @@
                                     _("%s already exist. Continue?"),
                                     filename);
 
+    gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); /* centering */
     result = gtk_dialog_run(GTK_DIALOG(dialog));
     gtk_widget_destroy(dialog);
 
--- a/src/audacious/ui_preferences.c	Tue Mar 20 23:58:31 2007 -0700
+++ b/src/audacious/ui_preferences.c	Wed Mar 21 01:59:48 2007 -0700
@@ -2468,8 +2468,6 @@
 
     prefswin = glade_xml_get_widget(xml, "prefswin");
     g_object_set_data(G_OBJECT(prefswin), "glade-xml", xml);
-    /* this will hide only mainwin. it's annoying! yaz */
-//    gtk_window_set_transient_for(GTK_WINDOW(prefswin), GTK_WINDOW(mainwin));
 
     /* create category view */
     widget = glade_xml_get_widget(xml, "category_view");
@@ -2671,7 +2669,7 @@
 		G_CALLBACK(on_recurse_for_cover_toggled),
 		widget);
 
-	/* Create window for filepopup settings */
+	/* Create window for color adjustment settings */
 	colorize_settings = glade_xml_get_widget(xml, "colorize_popup");
 	gtk_window_set_transient_for(GTK_WINDOW(colorize_settings), GTK_WINDOW(prefswin));
 	gtk_widget_hide(colorize_settings);
@@ -2682,7 +2680,7 @@
 {
     static gboolean skinlist_filled = FALSE;
 
-    gtk_widget_show(prefswin);
+    gtk_window_present(GTK_WINDOW(prefswin)); /* show or raise prefs window */
 
     if ( !skinlist_filled )
     {
--- 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;
 }