Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv9422/src
Modified Files:
prefs_window.c
Log Message:
hide Last.FM tab when not built with curl libs
Index: prefs_window.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/prefs_window.c,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -d -r1.192 -r1.193
--- prefs_window.c 24 Feb 2007 06:24:10 -0000 1.192
+++ prefs_window.c 11 Mar 2007 18:22:34 -0000 1.193
@@ -519,6 +519,7 @@
prefs_get_int("autoimport"));
/* last.fm */
+#if HAVE_CURL
int x = prefs_get_int("lastfm_active");
GtkWidget *u = gtkpod_xml_get_widget (prefs_window_xml, "lastfm_username");
GtkWidget *p = gtkpod_xml_get_widget (prefs_window_xml, "lastfm_password");
@@ -529,6 +530,12 @@
gtk_entry_set_text(GTK_ENTRY(p), prefs_get_string("lastfm_password"));
gtk_widget_set_sensitive (u, x);
gtk_widget_set_sensitive (p, x);
+# else
+ w = gtkpod_xml_get_widget (prefs_window_xml, "labelfm");
+ gtk_widget_hide(w);
+ w = gtkpod_xml_get_widget (prefs_window_xml, "vboxfm");
+ gtk_widget_hide(w);
+#endif
w = gtkpod_xml_get_widget (prefs_window_xml, "autoselect_hbox");
for (i=0; i<SORT_TAB_MAX; ++i)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2