# HG changeset patch # User giacomo # Date 1142125010 28800 # Node ID 8073d83005020644920a5aaa212b441b15dee5a2 # Parent c2ddf4dda767df5712a62eda58e3b3543d871050 [svn] display audacious version and revision in the prefs window diff -r c2ddf4dda767 -r 8073d8300502 audacious/glade/prefswin.glade --- a/audacious/glade/prefswin.glade Sat Mar 11 14:20:40 2006 -0800 +++ b/audacious/glade/prefswin.glade Sat Mar 11 16:56:50 2006 -0800 @@ -2998,22 +2998,60 @@ - + True - GTK_BUTTONBOX_END + False 0 - + True - True - True - gtk-close - True - GTK_RELIEF_NORMAL - True - + + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + 0 + False + False + + + + + + True + GTK_BUTTONBOX_END + 0 + + + + True + True + True + gtk-close + True + GTK_RELIEF_NORMAL + True + + + + + + 0 + True + True + diff -r c2ddf4dda767 -r 8073d8300502 audacious/prefswin.c --- a/audacious/prefswin.c Sat Mar 11 14:20:40 2006 -0800 +++ b/audacious/prefswin.c Sat Mar 11 16:56:50 2006 -0800 @@ -47,6 +47,7 @@ #include "ui_playlist.h" #include "skinwin.h" #include "playlist_list.h" +#include "build_stamp.h" enum CategoryViewCols { @@ -1643,6 +1644,7 @@ GladeXML *xml; GtkWidget *widget, *widget2; + GString *aud_version_string; GtkWidget *titlestring_tag_menu, *menu_item; guint i; @@ -1830,6 +1832,13 @@ g_signal_connect(widget, "clicked", G_CALLBACK(on_titlestring_help_button_clicked), titlestring_tag_menu); + + /* 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)" , "Audacious " PACKAGE_VERSION , svn_stamp ); + gtk_label_set_text( GTK_LABEL(widget) , aud_version_string->str ); + g_string_free( aud_version_string , TRUE ); } void