Mercurial > audlegacy
comparison src/audacious/ui_preferences.c @ 2467:af0518a11dbf trunk
[svn] - more tweaks
author | nenolod |
---|---|
date | Thu, 01 Feb 2007 11:11:52 -0800 |
parents | 57cdc3d9b056 |
children | 5206f4ef02f7 |
comparison
equal
deleted
inserted
replaced
2466:57cdc3d9b056 | 2467:af0518a11dbf |
---|---|
2337 { | 2337 { |
2338 const gchar *glade_file = DATA_DIR "/glade/prefswin.glade"; | 2338 const gchar *glade_file = DATA_DIR "/glade/prefswin.glade"; |
2339 | 2339 |
2340 GladeXML *xml; | 2340 GladeXML *xml; |
2341 GtkWidget *widget, *widget2; | 2341 GtkWidget *widget, *widget2; |
2342 GString *aud_version_string; | 2342 gchar *aud_version_string; |
2343 | 2343 |
2344 GtkWidget *titlestring_tag_menu, *menu_item; | 2344 GtkWidget *titlestring_tag_menu, *menu_item; |
2345 guint i; | 2345 guint i; |
2346 | 2346 |
2347 /* load the interface */ | 2347 /* load the interface */ |
2537 G_CALLBACK(on_titlestring_help_button_clicked), | 2537 G_CALLBACK(on_titlestring_help_button_clicked), |
2538 titlestring_tag_menu); | 2538 titlestring_tag_menu); |
2539 | 2539 |
2540 /* audacious version label */ | 2540 /* audacious version label */ |
2541 widget = glade_xml_get_widget(xml, "audversionlabel"); | 2541 widget = glade_xml_get_widget(xml, "audversionlabel"); |
2542 aud_version_string = g_string_new( "" ); | 2542 |
2543 | 2543 aud_version_string = g_strdup_printf("<span size='small'>%s (r%s) (%s@%s)</span>", |
2544 g_string_printf( aud_version_string , "<span size='small'>%s (r%s) (%s@%s)</span>" , "Audacious " PACKAGE_VERSION , | 2544 "Audacious " PACKAGE_VERSION , |
2545 svn_stamp , g_get_user_name() , g_get_host_name() ); | 2545 svn_stamp , g_get_user_name() , g_get_host_name() ); |
2546 | 2546 |
2547 gtk_label_set_markup( GTK_LABEL(widget) , aud_version_string->str ); | 2547 gtk_label_set_markup( GTK_LABEL(widget) , aud_version_string ); |
2548 g_string_free( aud_version_string , TRUE ); | 2548 g_free(aud_version_string); |
2549 | 2549 |
2550 /* Create window for filepopup settings */ | 2550 /* Create window for filepopup settings */ |
2551 filepopup_settings = glade_xml_get_widget(xml, "filepopup_for_tuple_settings"); | 2551 filepopup_settings = glade_xml_get_widget(xml, "filepopup_for_tuple_settings"); |
2552 gtk_window_set_transient_for(GTK_WINDOW(filepopup_settings), GTK_WINDOW(prefswin)); | 2552 gtk_window_set_transient_for(GTK_WINDOW(filepopup_settings), GTK_WINDOW(prefswin)); |
2553 | 2553 |