changeset 822:c5eb4b762977 trunk

[svn] - only show the SVN revision if we know what it is
author nenolod
date Sun, 12 Mar 2006 10:27:25 -0800
parents a17888ed66a8
children d2234cb542b3
files audacious/prefswin.c
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/prefswin.c	Sat Mar 11 21:06:47 2006 -0800
+++ b/audacious/prefswin.c	Sun Mar 12 10:27:25 2006 -0800
@@ -1836,8 +1836,18 @@
    /* audacious version label */
    widget = glade_xml_get_widget(xml, "audversionlabel");
    aud_version_string = g_string_new( "" );
-   g_string_printf( aud_version_string , "%s (r%s) (%s@%s)" , "Audacious " PACKAGE_VERSION ,
-                    svn_stamp , g_get_user_name() , g_get_host_name() );
+
+   if (strncasecmp(svn_stamp, "exported"))
+   {
+       g_string_printf( aud_version_string , "%s (r%s) (%s@%s)" , "Audacious " PACKAGE_VERSION ,
+                        svn_stamp , g_get_user_name() , g_get_host_name() );
+   }
+   else
+   {
+       g_string_printf( aud_version_string , "%s (%s@%s)" , "Audacious " PACKAGE_VERSION ,
+                        g_get_user_name() , g_get_host_name() );
+   }
+
    gtk_label_set_text( GTK_LABEL(widget) , aud_version_string->str );
    g_string_free( aud_version_string , TRUE );
 }