Mercurial > audlegacy
comparison src/audacious/ui_main.c @ 3000:bbca1e0e054a trunk
don't call gtk_widget_show/hide from func that's called every now and then
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sun, 08 Jul 2007 10:23:16 +0200 |
parents | e6340ab753a1 |
children | 6d4b7b739232 |
comparison
equal
deleted
inserted
replaced
2999:e6340ab753a1 | 3000:bbca1e0e054a |
---|---|
784 if (bmp_active_skin->properties.mainwin_text_visible) | 784 if (bmp_active_skin->properties.mainwin_text_visible) |
785 gtk_widget_show(mainwin_info); | 785 gtk_widget_show(mainwin_info); |
786 else | 786 else |
787 gtk_widget_hide(mainwin_info); | 787 gtk_widget_hide(mainwin_info); |
788 | 788 |
789 if (bmp_active_skin->properties.mainwin_othertext_visible) | |
790 gtk_widget_show(mainwin_othertext); | |
791 else | |
792 gtk_widget_hide(mainwin_othertext); | |
793 | |
794 if (bmp_active_skin->properties.mainwin_vis_visible) | 789 if (bmp_active_skin->properties.mainwin_vis_visible) |
795 widget_show(WIDGET(mainwin_vis)); | 790 widget_show(WIDGET(mainwin_vis)); |
796 else | 791 else |
797 widget_hide(WIDGET(mainwin_vis)); | 792 widget_hide(WIDGET(mainwin_vis)); |
798 | 793 |
869 text = g_strdup_printf("%2d", frequency / 1000); | 864 text = g_strdup_printf("%2d", frequency / 1000); |
870 ui_skinned_textbox_set_text(mainwin_freq_text, text); | 865 ui_skinned_textbox_set_text(mainwin_freq_text, text); |
871 | 866 |
872 monostereo_set_num_channels(mainwin_monostereo, n_channels); | 867 monostereo_set_num_channels(mainwin_monostereo, n_channels); |
873 | 868 |
874 if (cfg.player_shaded) | |
875 { | |
876 gtk_widget_show(mainwin_stime_min); | |
877 gtk_widget_show(mainwin_stime_sec); | |
878 } | |
879 | |
880 widget_show(WIDGET(mainwin_minus_num)); | 869 widget_show(WIDGET(mainwin_minus_num)); |
881 widget_show(WIDGET(mainwin_10min_num)); | 870 widget_show(WIDGET(mainwin_10min_num)); |
882 widget_show(WIDGET(mainwin_min_num)); | 871 widget_show(WIDGET(mainwin_min_num)); |
883 widget_show(WIDGET(mainwin_10sec_num)); | 872 widget_show(WIDGET(mainwin_10sec_num)); |
884 widget_show(WIDGET(mainwin_sec_num)); | 873 widget_show(WIDGET(mainwin_sec_num)); |
910 (gfloat) frequency / 1000, | 899 (gfloat) frequency / 1000, |
911 (n_channels > 1) ? _("stereo") : _("mono")); | 900 (n_channels > 1) ? _("stereo") : _("mono")); |
912 | 901 |
913 ui_skinned_textbox_set_text(mainwin_othertext, text); | 902 ui_skinned_textbox_set_text(mainwin_othertext, text); |
914 | 903 |
915 gtk_widget_hide(mainwin_rate_text); | |
916 gtk_widget_hide(mainwin_freq_text); | |
917 widget_hide(WIDGET(mainwin_monostereo)); | 904 widget_hide(WIDGET(mainwin_monostereo)); |
918 | |
919 if (bmp_active_skin->properties.mainwin_othertext_visible) | |
920 gtk_widget_show(mainwin_othertext); | |
921 } | 905 } |
922 else | 906 else |
923 { | 907 { |
924 gtk_widget_show(mainwin_rate_text); | |
925 gtk_widget_show(mainwin_freq_text); | |
926 widget_show(WIDGET(mainwin_monostereo)); | 908 widget_show(WIDGET(mainwin_monostereo)); |
927 gtk_widget_hide(mainwin_othertext); | |
928 } | 909 } |
929 | 910 |
930 title = playlist_get_info_text(playlist); | 911 title = playlist_get_info_text(playlist); |
931 mainwin_set_song_title(title); | 912 mainwin_set_song_title(title); |
932 g_free(title); | 913 g_free(title); |