rhythmbox r6135 - in trunk: . plugins/audioscrobbler



Author: jmatthew
Date: Wed Jan 21 23:50:54 2009
New Revision: 6135
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=6135&view=rev

Log:
2009-01-22  Jonathan Matthew  <jonathan d14n org>

	patch by:  Pascal Terjan  <pascal terjan free fr>

	* plugins/audioscrobbler/rb-lastfm-source.c:
	(rb_lastfm_source_constructor): Create the station when the text box
	is activated, as well as when the 'add' button is pressed.
	Fixes #568232.


Modified:
   trunk/ChangeLog
   trunk/plugins/audioscrobbler/rb-lastfm-source.c

Modified: trunk/plugins/audioscrobbler/rb-lastfm-source.c
==============================================================================
--- trunk/plugins/audioscrobbler/rb-lastfm-source.c	(original)
+++ trunk/plugins/audioscrobbler/rb-lastfm-source.c	Wed Jan 21 23:50:54 2009
@@ -526,6 +526,10 @@
 	gtk_combo_box_set_active (GTK_COMBO_BOX (source->priv->typecombo), 0);
 
 	source->priv->txtbox = gtk_entry_new ();
+	g_signal_connect_object (G_OBJECT (source->priv->txtbox),
+				 "activate",
+				 G_CALLBACK (rb_lastfm_source_add_station_cb),
+				 source, 0);
 
 	gtk_box_pack_end (GTK_BOX (editor_box), add_button, TRUE, TRUE, 0);
 	gtk_box_pack_end (GTK_BOX (editor_box), source->priv->txtbox, TRUE, TRUE, 0);



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